13 #ifndef mitkPlanarCross_h
14 #define mitkPlanarCross_h
55 itkFactorylessNewMacro(Self);
69 itkBooleanMacro(SingleLineMode);
101 void PrintSelf(std::ostream &os, itk::Indent indent)
const override;
109 virtual Point2D InternalApplyControlPointConstraints(
unsigned int index,
const Point2D &point);
Implementation of PlanarFigure modeling a cross with two orthogonal lines on a plane.
void PrintSelf(std::ostream &os, itk::Indent indent) const override
void SetSingleLineMode(bool singleLineMode)
Indicates whether the PlanarFigure shall represent only a single line instead of an orthogonal cross.
Point2D ApplyControlPointConstraints(unsigned int index, const Point2D &point) override
Spatially constrain control points of second (orthogonal) line.
bool GetSingleLineMode() const
Indicates whether the PlanarFigure shall represent only a single line instead of an orthogonal cross.
void GenerateHelperPolyLine(double mmPerDisplayUnit, unsigned int displayHeight) override
Generates the poly-lines that should be drawn the same size regardless of zoom.
const unsigned int FEATURE_ID_SHORTAXISDIAMETER
const unsigned int FEATURE_ID_LONGESTDIAMETER
unsigned int GetNumberOfFeatures() const override
Returns the number of features available for this PlanarCross (1 or 2).
unsigned int GetMinimumNumberOfControlPoints() const override
PlanarCross has either two or four control points, depending on the operation mode.
void GeneratePolyLine() override
Generates the poly-line representation of the planar figure.
mitkClassMacro(PlanarCross, PlanarFigure)
bool ResetOnPointSelectNeeded() const override
unsigned int GetMaximumNumberOfControlPoints() const override
PlanarCross has either two or four control points, depending on the operation mode.
void EvaluateFeaturesInternal() override
Calculates feature quantities of the planar figure.
bool ResetOnPointSelect() override
The cross shall be reset to a single line when a control point is selected.
bool Equals(const mitk::PlanarFigure &other) const override
Compare two PlanarFigure objects Note: all subclasses have to implement the method on their own.
Find image slices visible on a given plane.