Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
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 
36  {
37  public:
39 
40  itkFactorylessNewMacro(Self);
41 
42  itkCloneMacro(Self) public :
44  const unsigned int FEATURE_ID_ANGLE;
45 
47  unsigned int GetMinimumNumberOfControlPoints() const override { return 4; }
49  unsigned int GetMaximumNumberOfControlPoints() const override { return 4; }
50 
56  bool Equals(const mitk::PlanarFigure &other) const override;
57 
58  protected:
60  PlanarFourPointAngle(const Self& other);
61 
63 
65  void GeneratePolyLine() override;
66 
68  void GenerateHelperPolyLine(double mmPerDisplayUnit, unsigned int displayHeight) override;
69 
71  void EvaluateFeaturesInternal() override;
72 
73  void PrintSelf(std::ostream &os, itk::Indent indent) const override;
74 
75  private:
76  };
77 
78 } // namespace mitk
79 
80 #endif
#define MITKPLANARFIGURE_EXPORT
Base-class for geometric planar (2D) figures, such as lines, circles, rectangles, polygons,...
Implementation of PlanarFigure representing a four-point angle measurement.
mitkClassMacro(PlanarFourPointAngle, PlanarFigure)
bool Equals(const mitk::PlanarFigure &other) const override
Compares this PlanarFourPointAngle with another PlanarFigure for equality.
void GeneratePolyLine() override
Generates the poly-line representation of the planar figure.
unsigned int GetMaximumNumberOfControlPoints() const override
Returns 4 – a four-point angle requires exactly four control points.
void GenerateHelperPolyLine(double mmPerDisplayUnit, unsigned int displayHeight) override
Generates the poly-lines that should be drawn the same size regardless of zoom.
unsigned int GetMinimumNumberOfControlPoints() const override
Returns 4 – a four-point angle requires exactly four control points.
void PrintSelf(std::ostream &os, itk::Indent indent) const override
void EvaluateFeaturesInternal() override
Calculates feature quantities of the planar figure.
PlanarFourPointAngle(const Self &other)
const unsigned int FEATURE_ID_ANGLE
Feature identifier for the angle measurement (in degrees).
Find image slices visible on a given plane.