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-25 18:44:11 +04:00
|
|
|
QColor m_color;
|
|
|
|
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-28 00:04:18 +04:00
|
|
|
void addCurve(SvCurve *curve){m_curves.push_back(curve); }
|
|
|
|
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
|