17 #ifndef _MITK_PLANAR_CROSS_H_
18 #define _MITK_PLANAR_CROSS_H_
59 itkFactorylessNewMacro(
Self) itkCloneMacro(
Self)
63 void SetSingleLineMode(
bool singleLineMode);
67 bool GetSingleLineMode()
const;
71 itkBooleanMacro(SingleLineMode);
78 virtual bool ResetOnPointSelect()
override;
80 virtual bool ResetOnPointSelectNeeded()
const override;
83 virtual unsigned int GetNumberOfFeatures()
const override;
92 virtual Point2D ApplyControlPointConstraints(
unsigned int index,
const Point2D &point)
override;
95 virtual void GeneratePolyLine()
override;
98 virtual void GenerateHelperPolyLine(
double mmPerDisplayUnit,
unsigned int displayHeight)
override;
101 virtual void EvaluateFeaturesInternal()
override;
103 virtual void PrintSelf(std::ostream &os, itk::Indent indent)
const override;
111 virtual Point2D InternalApplyControlPointConstraints(
unsigned int index,
const Point2D &point);
116 #endif //_MITK_PLANAR_CROSS_H_
Base of all data objects.
const unsigned int FEATURE_ID_LONGESTDIAMETER
DataCollection - Class to facilitate loading/accessing structured data.
#define mitkClassMacro(className, SuperClassName)
unsigned int GetMaximumNumberOfControlPoints() const override
PlanarCross has either two or four control points, depending on the operation mode.
unsigned int GetMinimumNumberOfControlPoints() const override
PlanarCross has either two or four control points, depending on the operation mode.
#define mitkCloneMacro(classname)
Implementation of PlanarFigure modeling a cross with two orthogonal lines on a plane.
const unsigned int FEATURE_ID_SHORTAXISDIAMETER