13 #ifndef mitkPlanarRectangle_h
14 #define mitkPlanarRectangle_h
41 itkFactorylessNewMacro(Self);
81 void PrintSelf(std::ostream &os, itk::Indent indent)
const override;
Implementation of PlanarFigure representing an axis-aligned rectangle.
void GeneratePolyLine() override
Generates the poly-line representation of the planar figure.
void PlaceFigure(const Point2D &point) override
Places the rectangle at the given point, initializing all four corners.
unsigned int GetMinimumNumberOfControlPoints() const override
Returns 4 – a rectangle requires exactly four control points.
const unsigned int FEATURE_ID_AREA
bool Equals(const mitk::PlanarFigure &other) const override
Compares this PlanarFigure with another for equality.
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
Sets a control point and updates adjacent corners to maintain the rectangle.
PlanarRectangle(const Self &other)
unsigned int GetMaximumNumberOfControlPoints() const override
Returns 4 – a rectangle requires exactly four control points.
Find image slices visible on a given plane.