dispmap/svpoint.h

42 lines
859 B
C
Raw Normal View History

2014-07-22 20:37:29 +04:00
#ifndef SVPOINT_H
#define SVPOINT_H
#include "svsimplepoint.h"
2014-07-23 20:50:12 +04:00
#include "svdefs.h"
2014-07-22 20:37:29 +04:00
class SvCurve;
class SvPoint: public SvSimplePoint
{
2014-07-25 18:44:11 +04:00
2014-07-22 20:37:29 +04:00
public:
2014-07-30 14:42:29 +04:00
enum DiffType {
LEFT = 0,
LEFT_TOP = 1,
TOP = 2,
RIGHT_TOP = 3
2014-07-22 20:37:29 +04:00
};
protected:
2014-07-25 18:44:11 +04:00
uint m_id;
uint m_curveCount;
SvCurve *m_curves[8];
2014-07-30 14:42:29 +04:00
int m_diff[4];
QRgb m_colors[4];
2014-07-22 20:37:29 +04:00
public:
SvPoint();
2014-07-25 18:44:11 +04:00
SvPoint(SvPoint &point);
void addCurve(SvCurve *curve);
uint curveCount() {return m_curveCount; }
2014-07-30 14:42:29 +04:00
SvCurve *curve(uint index) { return m_curves[index]; }
int parallelism(SvPoint *p, DiffType type);
int diff(DiffType index) { return m_diff[index]; }
void setDiff(int lDiff, int ltDiff, int tDiff, int rtDiff);
void setColors(QRgb left, QRgb top, QRgb right, QRgb bottom);
2014-07-22 20:37:29 +04:00
};
#endif // SVPOINT_H