13 #ifndef mitkPlanarSubdivisionPolygon_h
14 #define mitkPlanarSubdivisionPolygon_h
33 itkFactorylessNewMacro(Self);
Implementation of PlanarFigure representing a polygon with two or more control points.
Implementation of PlanarFigure representing a polygon with two or more control points.
mitkClassMacro(PlanarSubdivisionPolygon, PlanarFigure)
int GetControlPointForPolylinePoint(int indexOfPolylinePoint, int polyLineIndex) const override
Returns the id of the control-point that corresponds to the given polyline-point.
void SetTensionParameter(float tensionParameter)
void DecreaseSubdivisions()
bool Equals(const mitk::PlanarFigure &other) const override
Compare two PlanarFigure objects Note: all subclasses have to implement the method on their own.
unsigned int GetMaximumNumberOfControlPoints() const override
Polygon maximum number of control points is principally not limited.
unsigned int GetMinimumNumberOfControlPoints() const override
Subdivision Polygon has 3 control points per definition.
unsigned int GetSubdivisionRounds() const
How many times should we generate a round of subdivisions?
void IncreaseSubdivisions()
void SetSubdivisionRounds(int subdivisionRounds)
std::vector< mitk::Point2D > CheckForLineIntersection(const Point2D &p1, const Point2D &p2) const
float GetTensionParameter() const
Parameter w_tension defines the tension. the higher w_tension, the lower the "tension" on points....
void GeneratePolyLine() override
Generates the poly-line representation of the planar figure.
PlanarSubdivisionPolygon()
Find image slices visible on a given plane.