dispmap/svpoint.h

43 lines
655 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:
enum Sides {
TOP,
BOTTOM,
RIGHT,
LEFT
};
enum FlowType {
HORIZONTAL,
VERTICAL,
SLASH,
BACK_SLASH
};
protected:
2014-07-25 18:44:11 +04:00
uint m_id;
uint m_curveCount;
SvCurve *m_curves[8];
FlowType m_type;
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; }
SvCurve *curve(uint index) {return m_curves[index]; }
2014-07-22 20:37:29 +04:00
};
#endif // SVPOINT_H