13 #ifndef mitkPlanarRectangle_h
14 #define mitkPlanarRectangle_h
32 itkFactorylessNewMacro(Self);
64 void PrintSelf(std::ostream &os, itk::Indent indent)
const override;
Implementation of PlanarFigure representing a polygon with two or more control points.
void GeneratePolyLine() override
Generates the poly-line representation of the planar figure.
void PlaceFigure(const Point2D &point) override
Place figure in its minimal configuration (a point at least) onto the given 2D geometry.
unsigned int GetMinimumNumberOfControlPoints() const override
Polygon has 2 control points per definition.
const unsigned int FEATURE_ID_AREA
bool Equals(const mitk::PlanarFigure &other) const override
Compare two PlanarFigure objects Note: all subclasses have to implement the method on their own.
void EvaluateFeaturesInternal() override
Calculates feature quantities of the planar figure.
void PrintSelf(std::ostream &os, itk::Indent indent) const override
void GenerateHelperPolyLine(double mmPerDisplayUnit, unsigned int displayHeight) override
Generates the poly-lines that should be drawn the same size regardless of zoom.
mitkClassMacro(PlanarRectangle, PlanarFigure)
const unsigned int FEATURE_ID_CIRCUMFERENCE
bool SetControlPoint(unsigned int index, const Point2D &point, bool createIfDoesNotExist=false) override
unsigned int GetMaximumNumberOfControlPoints() const override
Polygon maximum number of control points is principally not limited.
Find image slices visible on a given plane.