Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitkPlanarArrow.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_ARROW_H_
18 #define _MITK_PLANAR_ARROW_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  void SetArrowTipScaleFactor(float scale);
54 
55  virtual bool Equals(const mitk::PlanarFigure &other) const override;
56 
57  protected:
58  PlanarArrow();
59 
60  mitkCloneMacro(Self);
61 
63  virtual void GeneratePolyLine() override;
64 
66  virtual void GenerateHelperPolyLine(double mmPerDisplayUnit, unsigned int displayHeight) override;
67 
69  virtual void EvaluateFeaturesInternal() override;
70 
71  virtual void PrintSelf(std::ostream &os, itk::Indent indent) const override;
72 
73  // Feature identifiers
74  const unsigned int FEATURE_ID_LENGTH;
75 
76  // ScaleFactor defining size of helper-lines in relation to display size
78 
79  private:
80  };
81 
82 } // namespace mitk
83 
84 #endif //_MITK_PLANAR_ARROW_H_
unsigned int GetMaximumNumberOfControlPoints() const override
Line has 2 control points per definition.
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
Base-class for geometric planar (2D) figures, such as lines, circles, rectangles, polygons...
Implementation of PlanarFigure representing an arrow through two control points.