00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef QVDEFINES_H
00022 #define QVDEFINES_H
00023
00024
00025 #include <QMetaType>
00026 #include <QList>
00027 #include <QVector>
00028 #include <QPoint>
00029 #include <QPointF>
00030 #include <QRect>
00031 #include <QPair>
00032 #include <ipp.h>
00033
00034 typedef unsigned char uChar;
00035 typedef unsigned short uShort;
00036 typedef unsigned int uInt;
00037 typedef signed char sChar;
00038 typedef signed short sShort;
00039 typedef signed int sInt;
00040
00041
00042 typedef float sFloat;
00043 typedef double sDouble;
00044
00045
00046 typedef QPair<QPointF, QPointF> QPointFMatching;
00047
00048
00049
00050 Q_DECLARE_METATYPE(QVector<sFloat>);
00051 Q_DECLARE_METATYPE(QVector<sDouble>);
00052 Q_DECLARE_METATYPE(QList<sInt>);
00053 Q_DECLARE_METATYPE(QList<sFloat>);
00054 Q_DECLARE_METATYPE(QList<sDouble>);
00055 Q_DECLARE_METATYPE(QList<QPoint>);
00056 Q_DECLARE_METATYPE(QList<QPointF>);
00057 Q_DECLARE_METATYPE(QList<QRect>);
00058 Q_DECLARE_METATYPE(QList< QList< QPoint > >);
00059 Q_DECLARE_METATYPE(QList< QList< QPointF > >);
00060 Q_DECLARE_METATYPE(IppiMaskSize);
00061 Q_DECLARE_METATYPE(IppCmpOp);
00062 Q_DECLARE_METATYPE(IppRoundMode);
00063 Q_DECLARE_METATYPE(QPointFMatching);
00064 Q_DECLARE_METATYPE(QList<QPointFMatching>);
00065
00066 #include <QColor>
00067 const QColor qvColors[] = {
00068 Qt::red,
00069 Qt::green,
00070 Qt::blue,
00071 Qt::cyan,
00072 Qt::magenta,
00073 Qt::darkRed,
00074 Qt::darkGreen,
00075 Qt::darkBlue,
00076 Qt::darkCyan,
00077 Qt::darkMagenta
00078 };
00079
00081 std::ostream& operator << (std::ostream &os, const QPointF &point);
00082 std::ostream& operator << (std::ostream &os, const QPoint &point);
00083 std::ostream& operator << (std::ostream &os, const QPointFMatching &matching);
00084
00085 #endif
00086
00087