Medical Imaging Interaction Toolkit  2024.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 
28  {
29  public:
31 
32  itkFactorylessNewMacro(Self);
33 
34  itkCloneMacro(Self) public :
35  // Feature identifiers
36  const unsigned int FEATURE_ID_ANGLE;
37 
43  // virtual void Initialize();
44 
46  unsigned int GetMinimumNumberOfControlPoints() const override { return 3; }
48  unsigned int GetMaximumNumberOfControlPoints() const override { return 3; }
49  bool Equals(const mitk::PlanarFigure &other) const override;
50 
51  protected:
52  PlanarAngle();
53 
54  mitkCloneMacro(Self);
55 
57  void GeneratePolyLine() override;
58 
60  void GenerateHelperPolyLine(double mmPerDisplayUnit, unsigned int displayHeight) override;
61 
63  void EvaluateFeaturesInternal() override;
64 
65  void PrintSelf(std::ostream &os, itk::Indent indent) const override;
66 
67  private:
68  };
69 
70 } // namespace mitk
71 
72 #endif
mitk::PlanarAngle::GetMinimumNumberOfControlPoints
unsigned int GetMinimumNumberOfControlPoints() const override
Place figure in its minimal configuration (a point at least) onto the given 2D geometry.
Definition: mitkPlanarAngle.h:46
MitkPlanarFigureExports.h
mitk::PlanarFigure
Base-class for geometric planar (2D) figures, such as lines, circles, rectangles, polygons,...
Definition: mitkPlanarFigure.h:50
MITKPLANARFIGURE_EXPORT
#define MITKPLANARFIGURE_EXPORT
Definition: MitkPlanarFigureExports.h:15
mitk::PlanarAngle::FEATURE_ID_ANGLE
const unsigned int FEATURE_ID_ANGLE
Definition: mitkPlanarAngle.h:36
mitkPlanarFigure.h
mitk
Find image slices visible on a given plane.
Definition: RenderingTests.dox:1
mitk::PlanarAngle::GetMaximumNumberOfControlPoints
unsigned int GetMaximumNumberOfControlPoints() const override
Angle has 3 control points per definition.
Definition: mitkPlanarAngle.h:48
mitk::BaseData
Base of all data objects.
Definition: mitkBaseData.h:42
mitkCloneMacro
#define mitkCloneMacro(classname)
Definition: mitkCommon.h:154
mitkClassMacro
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:36
mitk::PlanarAngle
Implementation of PlanarFigure to display an angle through three control points.
Definition: mitkPlanarAngle.h:27