13 #ifndef mitkPlanarEllipse_h
14 #define mitkPlanarEllipse_h
31 itkFactorylessNewMacro(Self);
86 void PrintSelf(std::ostream &os, itk::Indent indent)
const override;
Implementation of PlanarFigure representing a circle through two control points.
unsigned int GetMinimumNumberOfControlPoints() const override
Ellipse has 3 control points per definition.
void ActivateMinMaxRadiusContstraints(bool active)
void PrintSelf(std::ostream &os, itk::Indent indent) const override
void PlaceFigure(const Point2D &point) override
Place figure in its minimal configuration (a point at least) onto the given 2D geometry.
void GeneratePolyLine() override
Generates the poly-line representation of the planar figure.
mitkClassMacro(PlanarEllipse, PlanarFigure)
const unsigned int FEATURE_ID_MAJOR_AXIS
bool Equals(const mitk::PlanarFigure &other) const override
Compare two PlanarFigure objects Note: all subclasses have to implement the method on their own.
bool SetControlPoint(unsigned int index, const Point2D &point, bool createIfDoesNotExist=true) override
unsigned int GetMaximumNumberOfControlPoints() const override
Ellipse has 3 control points per definition.
void SetMinimumRadius(double radius)
Sets the minimum radius.
void SetMaximumRadius(double radius)
Sets the maximum radius.
void EvaluateFeaturesInternal() override
Calculates feature quantities of the planar figure.
void SetTreatAsCircle(bool active)
Treat ellipse as 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
double GetMinimumRadius()
Gets the minimum radius.
bool m_MinMaxRadiusContraintsActive
double GetMaximumRadius()
Gets the minimum radius.
const unsigned int FEATURE_ID_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.