dispmap/svfigure.h

27 lines
501 B
C
Raw Normal View History

2014-07-22 20:37:29 +04:00
#ifndef SVFIGURE_H
#define SVFIGURE_H
2014-07-28 00:04:18 +04:00
#include <QColor>
2014-07-22 20:37:29 +04:00
#include "svpoint.h"
#include "svcurve.h"
class SvFigure
{
protected:
2014-07-30 14:42:29 +04:00
QRgb m_color;
2014-07-25 18:44:11 +04:00
QList<SvCurve*> m_curves;
2014-07-22 20:37:29 +04:00
public:
2014-07-28 00:04:18 +04:00
SvFigure();
2014-07-25 18:44:11 +04:00
SvFigure(SvCurve *curve);
2014-07-30 14:42:29 +04:00
QRgb color() {return m_color;}
2014-07-28 00:04:18 +04:00
void addCurve(SvCurve *curve){m_curves.push_back(curve); }
2014-07-30 14:42:29 +04:00
QList<SvCurve*> &curves() { return m_curves; }
2014-07-28 00:04:18 +04:00
SvCurve *findCurveByPoint(SvPoint *point);
2014-07-25 18:44:11 +04:00
SvFigure split(SvPoint *point);
2014-07-22 20:37:29 +04:00
};
#endif // SVFIGURE_H