13 #ifndef mitkPlanarEllipse_h
14 #define mitkPlanarEllipse_h
42 itkFactorylessNewMacro(Self);
131 void PrintSelf(std::ostream &os, itk::Indent indent)
const override;
Implementation of PlanarFigure representing an ellipse.
unsigned int GetMinimumNumberOfControlPoints() const override
Returns 4 – an ellipse requires exactly four control points.
void ActivateMinMaxRadiusContstraints(bool active)
Activates or deactivates minimum/maximum radius constraints.
void PrintSelf(std::ostream &os, itk::Indent indent) const override
void PlaceFigure(const Point2D &point) override
Places the figure at the given point and initializes all four control points.
void GeneratePolyLine() override
Generates the poly-line representation of the planar figure.
mitkClassMacro(PlanarEllipse, PlanarFigure)
const unsigned int FEATURE_ID_MAJOR_AXIS
Feature identifier for the major axis length.
bool Equals(const mitk::PlanarFigure &other) const override
Compares this PlanarEllipse with another PlanarFigure for equality.
bool SetControlPoint(unsigned int index, const Point2D &point, bool createIfDoesNotExist=true) override
Sets a control point position, enforcing ellipse constraints.
unsigned int GetMaximumNumberOfControlPoints() const override
Returns 4 – an ellipse requires exactly four control points.
void SetMinimumRadius(double radius)
Sets the minimum allowed radius.
void SetMaximumRadius(double radius)
Sets the maximum allowed radius.
void EvaluateFeaturesInternal() override
Calculates feature quantities of the planar figure.
void SetTreatAsCircle(bool active)
Sets whether the ellipse should be constrained to a circle (equal radii).
Point2D ApplyControlPointConstraints(unsigned int index, const Point2D &point) override
Spatially constrain control points of second (orthogonal) line.
const unsigned int FEATURE_ID_MINOR_AXIS
Feature identifier for the minor axis length.
double GetMinimumRadius()
Returns the minimum allowed radius.
bool m_MinMaxRadiusContraintsActive
PlanarEllipse(const Self &other)
double GetMaximumRadius()
Returns the maximum allowed radius.
const unsigned int FEATURE_ID_AREA
Feature identifier for the ellipse area.
void GenerateHelperPolyLine(double mmPerDisplayUnit, unsigned int displayHeight) override
Generates the poly-lines that should be drawn the same size regardless of zoom.
Find image slices visible on a given plane.