Medical Imaging Interaction Toolkit  2024.06.00
Medical Imaging Interaction Toolkit
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
mitkPlanarFourPointAngle.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 mitkPlanarFourPointAngle_h
14 #define mitkPlanarFourPointAngle_h
15 
16 #include "mitkPlanarFigure.h"
18 
19 namespace mitk
20 {
21  class PlaneGeometry;
22 
29  {
30  public:
32 
33  itkFactorylessNewMacro(Self);
34 
35  itkCloneMacro(Self) public :
36  // Feature identifiers
37  const unsigned int FEATURE_ID_ANGLE;
38 
44  // virtual void Initialize();
45 
47  unsigned int GetMinimumNumberOfControlPoints() const override { return 4; }
49  unsigned int GetMaximumNumberOfControlPoints() const override { return 4; }
50  bool Equals(const mitk::PlanarFigure &other) const override;
51 
52  protected:
54 
55  mitkCloneMacro(Self);
56 
58  void GeneratePolyLine() override;
59 
61  void GenerateHelperPolyLine(double mmPerDisplayUnit, unsigned int displayHeight) override;
62 
64  void EvaluateFeaturesInternal() override;
65 
66  void PrintSelf(std::ostream &os, itk::Indent indent) const override;
67 
68  private:
69  };
70 
71 } // namespace mitk
72 
73 #endif
mitk::PlanarFourPointAngle::FEATURE_ID_ANGLE
const unsigned int FEATURE_ID_ANGLE
Definition: mitkPlanarFourPointAngle.h:37
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::PlanarFourPointAngle
Implementation of PlanarFigure representing a four point angle, which is defined by two non-intersect...
Definition: mitkPlanarFourPointAngle.h:28
mitkPlanarFigure.h
mitk::PlanarFourPointAngle::GetMinimumNumberOfControlPoints
unsigned int GetMinimumNumberOfControlPoints() const override
Place figure in its minimal configuration (a point at least) onto the given 2D geometry.
Definition: mitkPlanarFourPointAngle.h:47
mitk
Find image slices visible on a given plane.
Definition: RenderingTests.dox:1
mitk::PlanarFourPointAngle::GetMaximumNumberOfControlPoints
unsigned int GetMaximumNumberOfControlPoints() const override
Four point angle has 4 control points per definition.
Definition: mitkPlanarFourPointAngle.h:49
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