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 #include <limits>
00037
00038 typedef unsigned char uChar;
00039 typedef unsigned short uShort;
00040 typedef unsigned int uInt;
00041 typedef signed char sChar;
00042 typedef signed short sShort;
00043 typedef signed int sInt;
00044
00045
00046 typedef float sFloat;
00047 typedef double sDouble;
00048
00049
00050 typedef QPair<QPointF, QPointF> QPointFMatching;
00051
00052
00053
00054 Q_DECLARE_METATYPE(sChar);
00055 Q_DECLARE_METATYPE(QVector<sFloat>);
00056 Q_DECLARE_METATYPE(QVector<sDouble>);
00057 Q_DECLARE_METATYPE(QList<sInt>);
00058 Q_DECLARE_METATYPE(QList<sFloat>);
00059 Q_DECLARE_METATYPE(QList<sDouble>);
00060 Q_DECLARE_METATYPE(QList<QPoint>);
00061 Q_DECLARE_METATYPE(QList<QPointF>);
00062 Q_DECLARE_METATYPE(QList<QRect>);
00063 Q_DECLARE_METATYPE(QList< QList< QPoint > >);
00064 Q_DECLARE_METATYPE(QList< QList< QPointF > >);
00065
00066 Q_DECLARE_METATYPE(QPointFMatching);
00067 Q_DECLARE_METATYPE(QList<QPointFMatching>);
00068
00069 #include <QColor>
00070 const QColor qvColors[] = {
00071 Qt::red,
00072 Qt::green,
00073 Qt::blue,
00074 Qt::cyan,
00075 Qt::magenta,
00076 Qt::darkRed,
00077 Qt::darkGreen,
00078 Qt::darkBlue,
00079 Qt::darkCyan,
00080 Qt::darkMagenta
00081 };
00082
00083 std::ostream& operator << (std::ostream &os, const QPointF &point);
00084 std::ostream& operator << (std::ostream &os, const QPoint &point);
00085 std::ostream& operator << (std::ostream &os, const QPointFMatching &matching);
00086
00087 uint qHash(const double &value);
00088 uint qHash(const QPointF &point);
00089 uint qHash(const QPoint &point);
00090
00091 #ifdef QVIPP
00092 #include <ipp.h>
00093 Q_DECLARE_METATYPE(IppiMaskSize);
00094 Q_DECLARE_METATYPE(IppCmpOp);
00095 Q_DECLARE_METATYPE(IppRoundMode);
00096 #endif
00097
00098 #endif
00099
00100