Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
mitkPlanarAngle.h
Go to the documentation of this file.
1 /*============================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 
13 #ifndef mitkPlanarAngle_h
14 #define mitkPlanarAngle_h
15 
16 #include <mitkPlanarFigure.h>
18 
19 namespace mitk
20 {
21  class PlaneGeometry;
22 
35  {
36  public:
38 
39  itkFactorylessNewMacro(Self);
40 
41  itkCloneMacro(Self) public :
43  const unsigned int FEATURE_ID_ANGLE;
44 
46  unsigned int GetMinimumNumberOfControlPoints() const override { return 3; }
48  unsigned int GetMaximumNumberOfControlPoints() const override { return 3; }
49 
55  bool Equals(const mitk::PlanarFigure &other) const override;
56 
57  protected:
59  PlanarAngle(const Self& other);
60 
62 
64  void GeneratePolyLine() override;
65 
67  void GenerateHelperPolyLine(double mmPerDisplayUnit, unsigned int displayHeight) override;
68 
70  void EvaluateFeaturesInternal() override;
71 
72  void PrintSelf(std::ostream &os, itk::Indent indent) const override;
73 
74  private:
75  };
76 
77 } // namespace mitk
78 
79 #endif
#define MITKPLANARFIGURE_EXPORT
Implementation of PlanarFigure representing an angle measurement.
PlanarAngle(const Self &other)
void EvaluateFeaturesInternal() override
Calculates feature quantities of the planar figure.
unsigned int GetMaximumNumberOfControlPoints() const override
Returns 3 – an angle requires exactly three control points.
void PrintSelf(std::ostream &os, itk::Indent indent) const override
unsigned int GetMinimumNumberOfControlPoints() const override
Returns 3 – an angle requires exactly three control points.
mitkClassMacro(PlanarAngle, PlanarFigure)
void GenerateHelperPolyLine(double mmPerDisplayUnit, unsigned int displayHeight) override
Generates the poly-lines that should be drawn the same size regardless of zoom.
bool Equals(const mitk::PlanarFigure &other) const override
Compares this PlanarAngle with another PlanarFigure for equality.
void GeneratePolyLine() override
Generates the poly-line representation of the planar figure.
const unsigned int FEATURE_ID_ANGLE
Feature identifier for the angle measurement (in degrees).
Base-class for geometric planar (2D) figures, such as lines, circles, rectangles, polygons,...
Find image slices visible on a given plane.