Medical Imaging Interaction Toolkit  2024.06.00
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 mitkPointSetShapeProperty_h
14 #define mitkPointSetShapeProperty_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
mitk::BaseProperty
Abstract base class for properties.
Definition: mitkBaseProperty.h:36
mitk::EnumerationProperty
Definition: mitkEnumerationProperty.h:43
mitkNewMacro1Param
#define mitkNewMacro1Param(classname, type)
Definition: mitkCommon.h:68
mitk::PointSetShapeProperty
Definition: mitkPointSetShapeProperty.h:44
mitk
Find image slices visible on a given plane.
Definition: RenderingTests.dox:1
mitk::PointSetShapeProperty::PointSetShape
PointSetShape
Definition: mitkPointSetShapeProperty.h:57
mitk::EnumerationProperty::IdType
unsigned int IdType
Definition: mitkEnumerationProperty.h:48
mitkEnumerationProperty.h
mitkClassMacro
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:36
MITKCORE_EXPORT
#define MITKCORE_EXPORT
Definition: MitkCoreExports.h:15