Medical Imaging Interaction Toolkit  2016.11.0
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,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 
17 #ifndef _MITK_PLANAR_ANGLE_H_
18 #define _MITK_PLANAR_ANGLE_H_
19 
20 #include "mitkPlanarFigure.h"
22 
23 namespace mitk
24 {
25  class PlaneGeometry;
26 
32  {
33  public:
35 
36  itkFactorylessNewMacro(Self) itkCloneMacro(Self) public :
37  // Feature identifiers
38  const unsigned int FEATURE_ID_ANGLE;
39 
45  // virtual void Initialize();
46 
48  unsigned int GetMinimumNumberOfControlPoints() const override { return 3; }
50  unsigned int GetMaximumNumberOfControlPoints() const override { return 3; }
51  virtual bool Equals(const mitk::PlanarFigure &other) const override;
52 
53  protected:
54  PlanarAngle();
55 
56  mitkCloneMacro(Self);
57 
59  virtual void GeneratePolyLine() override;
60 
62  virtual void GenerateHelperPolyLine(double mmPerDisplayUnit, unsigned int displayHeight) override;
63 
65  virtual void EvaluateFeaturesInternal() override;
66 
67  virtual void PrintSelf(std::ostream &os, itk::Indent indent) const override;
68 
69  private:
70  };
71 
72 } // namespace mitk
73 
74 #endif //_MITK_PLANAR_ANGLE_H_
Base of all data objects.
Definition: mitkBaseData.h:39
Implementation of PlanarFigure to display an angle through three control points.
DataCollection - Class to facilitate loading/accessing structured data.
unsigned int GetMinimumNumberOfControlPoints() const override
Place figure in its minimal configuration (a point at least) onto the given 2D geometry.
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:44
#define mitkCloneMacro(classname)
Definition: mitkCommon.h:162
#define MITKPLANARFIGURE_EXPORT
Base-class for geometric planar (2D) figures, such as lines, circles, rectangles, polygons...
const unsigned int FEATURE_ID_ANGLE
unsigned int GetMaximumNumberOfControlPoints() const override
Angle has 3 control points per definition.