17 #ifndef _MITK_PLANAR_ELLIPSE_H_
18 #define _MITK_PLANAR_ELLIPSE_H_
36 itkFactorylessNewMacro(
Self) itkCloneMacro(
Self)
43 virtual void PlaceFigure(
const Point2D &point)
override;
45 bool SetControlPoint(
unsigned int index,
const Point2D &point,
bool createIfDoesNotExist =
true)
override;
79 virtual void GeneratePolyLine()
override;
82 virtual void GenerateHelperPolyLine(
double mmPerDisplayUnit,
unsigned int displayHeight)
override;
85 virtual Point2D ApplyControlPointConstraints(
unsigned int index,
const Point2D &point)
override;
88 virtual void EvaluateFeaturesInternal()
override;
90 virtual void PrintSelf(std::ostream &os, itk::Indent indent)
const override;
103 #endif //_MITK_PLANAR_ELLIPSE_H_
unsigned int GetMinimumNumberOfControlPoints() const override
Ellipse has 3 control points per definition.
void ActivateMinMaxRadiusContstraints(bool active)
const unsigned int FEATURE_ID_MAJOR_AXIS
double GetMaximumRadius()
Gets the minimum radius.
Implementation of PlanarFigure representing a circle through two control points.
Base of all data objects.
double GetMinimumRadius()
Gets the minimum radius.
DataCollection - Class to facilitate loading/accessing structured data.
void SetMaximumRadius(double radius)
Sets the maximum radius.
unsigned int GetMaximumNumberOfControlPoints() const override
Ellipse has 3 control points per definition.
#define mitkClassMacro(className, SuperClassName)
bool m_MinMaxRadiusContraintsActive
const unsigned int FEATURE_ID_AREA
const unsigned int FEATURE_ID_MINOR_AXIS
#define mitkCloneMacro(classname)
void SetMinimumRadius(double radius)
Sets the minimum radius.
void SetTreatAsCircle(bool active)
Treat ellipse as circle (equal radii)