dispmap/svcurve.h

34 lines
657 B
C
Raw Normal View History

2014-07-22 20:37:29 +04:00
#ifndef SVCURVE_H
#define SVCURVE_H
2014-07-23 20:50:12 +04:00
#include "svdefs.h"
2014-07-22 20:37:29 +04:00
#include "svpoint.h"
2014-07-23 20:50:12 +04:00
#include "svsimplepoint.h"
2014-07-22 20:37:29 +04:00
class SvPoint;
2014-07-25 18:44:11 +04:00
class SvFigure;
2014-07-22 20:37:29 +04:00
class SvCurve
{
protected:
2014-07-25 18:44:11 +04:00
SvFigure *m_inner;
SvFigure *m_outer;
QList<SvPoint*> m_points;
2014-07-22 20:37:29 +04:00
SvSimplePoint *m_keyPoints;
2014-07-23 20:50:12 +04:00
2014-07-25 18:44:11 +04:00
private:
SvCurve();
2014-07-22 20:37:29 +04:00
public:
2014-07-25 18:44:11 +04:00
SvPoint* head() {return m_points.first(); }
SvPoint* tail() {return m_points.last(); }
SvPoint* tail() {return m_points.last(); }
void setInner(SvFigure *figure) {m_inner = figure; }
void setOuter(SvFigure *figure) {m_outer = figure; }
void addPoint(SvPoint *point);
SvCurve *cut(SvPoint *point);
2014-07-22 20:37:29 +04:00
};
#endif // SVCURVE_H