Medical Imaging Interaction Toolkit  2018.4.99-1640525a
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 _MITK_PLANAR_FOURPOINTANGLE_H_
14 #define _MITK_PLANAR_FOURPOINTANGLE_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 
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_PLANAR_FOURPOINTANGLE_H_
Implementation of PlanarFigure representing a four point angle, which is defined by two non-intersect...
Base of all data objects.
Definition: mitkBaseData.h:42
DataCollection - Class to facilitate loading/accessing structured data.
unsigned int GetMaximumNumberOfControlPoints() const override
Four point angle has 4 control points per definition.
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:40
#define mitkCloneMacro(classname)
Definition: mitkCommon.h:158
#define MITKPLANARFIGURE_EXPORT
Base-class for geometric planar (2D) figures, such as lines, circles, rectangles, polygons...
unsigned int GetMinimumNumberOfControlPoints() const override
Place figure in its minimal configuration (a point at least) onto the given 2D geometry.