13 #ifndef mitkPlanarCircle_h
14 #define mitkPlanarCircle_h
33 itkFactorylessNewMacro(Self);
86 void PrintSelf(std::ostream &os, itk::Indent indent)
const override;
Implementation of PlanarFigure representing a circle either through two control points or by one cont...
void PrintSelf(std::ostream &os, itk::Indent indent) const override
const unsigned int FEATURE_ID_RADIUS
void EvaluateFeaturesInternal() override
Calculates feature quantities of the planar figure.
mitkClassMacro(PlanarCircle, PlanarFigure)
double GetMinimumRadius()
Gets the minimum radius.
bool m_MinMaxRadiusContraintsActive
bool Equals(const mitk::PlanarFigure &other) const override
Compare two PlanarFigure objects Note: all subclasses have to implement the method on their own.
unsigned int GetMaximumNumberOfControlPoints() const override
Circle has 2 control points per definition.
const unsigned int FEATURE_ID_AREA
unsigned int GetMinimumNumberOfControlPoints() const override
Circle has 2 control points per definition.
void ActivateMinMaxRadiusContstraints(bool active)
void GeneratePolyLine() override
Generates the poly-line representation of the planar figure.
double GetMaximumRadius()
Gets the minimum radius.
void GenerateHelperPolyLine(double mmPerDisplayUnit, unsigned int displayHeight) override
Generates the poly-lines that should be drawn the same size regardless of zoom.
PlanarCircle(double fixedRadius)
const unsigned int FEATURE_ID_DIAMETER
void SetMaximumRadius(double radius)
Sets the maximum radius.
bool SetCurrentControlPoint(const Point2D &point) override
mitkNewMacro1Param(PlanarCircle, double)
bool SetControlPoint(unsigned int index, const Point2D &point, bool createIfDoesNotExist=false) override
Place figure in its minimal configuration (a point at least) onto the given 2D geometry.
void SetMinimumRadius(double radius)
Sets the minimum radius.
Point2D ApplyControlPointConstraints(unsigned int index, const Point2D &point) override
Spatially constrain control points of second (orthogonal) line.
Find image slices visible on a given plane.