dispmap/svcurve.h
Andrey Tkachenko 9316eff244 Fixed OpenGL
2014-07-28 00:04:18 +04:00

34 lines
645 B
C++

#ifndef SVCURVE_H
#define SVCURVE_H
#include "svdefs.h"
#include "svpoint.h"
#include "svsimplepoint.h"
class SvPoint;
class SvFigure;
class SvCurve
{
protected:
SvFigure *m_inner;
SvFigure *m_outer;
QList<SvPoint*> m_points;
SvSimplePoint *m_keyPoints;
private:
SvCurve();
public:
SvPoint* head() {return m_points.first(); }
SvPoint* tail() {return m_points.last(); }
void setInner(SvFigure *figure) {m_inner = figure; }
void setOuter(SvFigure *figure) {m_outer = figure; }
void addPoint(SvPoint *point);
bool hasPoint(SvPoint *point);
SvCurve *cut(SvPoint *point);
};
#endif // SVCURVE_H