13 #ifndef mitkPlanarBezierCurve_h
14 #define mitkPlanarBezierCurve_h
25 itkFactorylessNewMacro(Self);
57 std::vector<mitk::Point2D> m_DeCasteljauPoints;
58 unsigned int m_NumberOfSegments;
void SetNumberOfSegments(unsigned int numSegments)
void EvaluateFeaturesInternal() override
Calculates quantities of all features of this planar figure. Must be implemented in sub-classes.
void GenerateHelperPolyLine(double, unsigned int) override
Generates the poly-lines that should be drawn the same size regardless of zoom. Must be implemented i...
unsigned int GetMaximumNumberOfControlPoints() const override
Returns the maximum number of control points allowed for this figure (e.g. 3 for triangles).
int GetControlPointForPolylinePoint(int indexOfPolylinePoint, int polyLineIndex) const override
Returns the id of the control-point that corresponds to the given polyline-point.
unsigned int GetMinimumNumberOfControlPoints() const override
Returns the minimum number of control points needed to represent this figure.
const unsigned int FEATURE_ID_LENGTH
bool Equals(const mitk::PlanarFigure &other) const override
Compare two PlanarFigure objects Note: all subclasses have to implement the method on their own.
mitkClassMacro(PlanarBezierCurve, PlanarFigure)
unsigned int GetNumberOfSegments() const
bool IsHelperToBePainted(unsigned int index) const override
Returns whether a helper polyline should be painted or not.
void GeneratePolyLine() override
Generates the poly-line representation of the planar figure. Must be implemented in sub-classes.
Find image slices visible on a given plane.