Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
mitkPlanarLine.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_LINE_H_
18 #define _MITK_PLANAR_LINE_H_
19 
20 #include "mitkPlanarFigure.h"
22 
23 namespace mitk
24 {
25  class PlaneGeometry;
26 
32  {
33  public:
35 
36  itkFactorylessNewMacro(Self) itkCloneMacro(Self)
37 
38 
43  // virtual void Initialize();
44 
45 
46  unsigned int GetMinimumNumberOfControlPoints() const override
47  {
48  return 2;
49  }
50 
52  unsigned int GetMaximumNumberOfControlPoints() const override { return 2; }
53  virtual bool Equals(const mitk::PlanarFigure &other) const override;
54 
55  protected:
56  PlanarLine();
57 
58  mitkCloneMacro(Self);
59 
61  virtual void GeneratePolyLine() override;
62 
64  virtual void GenerateHelperPolyLine(double mmPerDisplayUnit, unsigned int displayHeight) override;
65 
67  virtual void EvaluateFeaturesInternal() override;
68 
69  virtual void PrintSelf(std::ostream &os, itk::Indent indent) const override;
70 
71  // Feature identifiers
72  const unsigned int FEATURE_ID_LENGTH;
73 
74  private:
75  };
76 
77 } // namespace mitk
78 
79 #endif //_MITK_PLANAR_LINE_H_
Base of all data objects.
Definition: mitkBaseData.h:39
DataCollection - Class to facilitate loading/accessing structured data.
const unsigned int FEATURE_ID_LENGTH
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:44
#define mitkCloneMacro(classname)
Definition: mitkCommon.h:162
#define MITKPLANARFIGURE_EXPORT
Implementation of PlanarFigure representing a line through two control points.
Base-class for geometric planar (2D) figures, such as lines, circles, rectangles, polygons...
unsigned int GetMaximumNumberOfControlPoints() const override
Line has 2 control points per definition.