Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitkPointSetShapeProperty.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_POINTSET_SHAPE_PROPERTY__H_
18 #define _MITK_POINTSET_SHAPE_PROPERTY__H_
19 
21 
22 namespace mitk
23 {
24 #ifdef _MSC_VER
25 #pragma warning(push)
26 #pragma warning(disable : 4522)
27 #endif
28 
49  {
50  public:
52 
53  itkFactorylessNewMacro(Self) itkCloneMacro(Self)
54 
56 
57  mitkNewMacro1Param(PointSetShapeProperty, const std::string &);
58 
60  {
61  NONE = 0,
62  VERTEX = 1,
63  DASH = 2,
64  CROSS = 3,
65  THICK_CROSS = 4,
66  TRIANGLE = 5,
67  SQUARE = 6,
68  CIRCLE = 7,
69  DIAMOND = 8,
70  ARROW = 9,
71  THICK_ARROW = 10,
72  HOOKED_ARROW = 11
73  // Default = CROSS;
74  };
75 
79  virtual int GetPointSetShape() const;
80 
81  using BaseProperty::operator=;
82 
83  protected:
87 
91  PointSetShapeProperty(const IdType &value);
92 
96  PointSetShapeProperty(const std::string &value);
97 
102  virtual bool AddEnum(const std::string &name, const IdType &id) override;
103 
107  virtual void AddPointSetShapes();
108 
109  private:
110  // purposely not implemented
111  PointSetShapeProperty &operator=(const PointSetShapeProperty &);
112 
113  virtual itk::LightObject::Pointer InternalClone() const override;
114  };
115 
116 #ifdef _MSC_VER
117 #pragma warning(pop)
118 #endif
119 
120 } // end of namespace mitk
121 
122 #endif
itk::SmartPointer< Self > Pointer
#define MITKCORE_EXPORT
#define mitkNewMacro1Param(classname, type)
Definition: mitkCommon.h:76
STL namespace.
DataCollection - Class to facilitate loading/accessing structured data.
Abstract base class for properties.
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:44