Medical Imaging Interaction Toolkit  2018.04.99-aba3194f
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 (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_POINTSET_SHAPE_PROPERTY__H_
14 #define _MITK_POINTSET_SHAPE_PROPERTY__H_
15 
17 
18 namespace mitk
19 {
20 #ifdef _MSC_VER
21 #pragma warning(push)
22 #pragma warning(disable : 4522)
23 #endif
24 
45  {
46  public:
48 
49  itkFactorylessNewMacro(Self);
50 
51  itkCloneMacro(Self);
52 
54 
56 
58  {
59  NONE = 0,
60  VERTEX = 1,
61  DASH = 2,
62  CROSS = 3,
63  THICK_CROSS = 4,
64  TRIANGLE = 5,
65  SQUARE = 6,
66  CIRCLE = 7,
67  DIAMOND = 8,
68  ARROW = 9,
69  THICK_ARROW = 10,
70  HOOKED_ARROW = 11
71  // Default = CROSS;
72  };
73 
77  virtual int GetPointSetShape() const;
78 
79  using BaseProperty::operator=;
80 
81  protected:
85 
89  PointSetShapeProperty(const IdType &value);
90 
94  PointSetShapeProperty(const std::string &value);
95 
100  bool AddEnum(const std::string &name, const IdType &id) override;
101 
105  virtual void AddPointSetShapes();
106 
107  private:
108  // purposely not implemented
109  PointSetShapeProperty &operator=(const PointSetShapeProperty &);
110 
111  itk::LightObject::Pointer InternalClone() const override;
112  };
113 
114 #ifdef _MSC_VER
115 #pragma warning(pop)
116 #endif
117 
118 } // end of namespace mitk
119 
120 #endif
#define MITKCORE_EXPORT
#define mitkNewMacro1Param(classname, type)
Definition: mitkCommon.h:72
DataCollection - Class to facilitate loading/accessing structured data.
Abstract base class for properties.
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:40