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