Medical Imaging Interaction Toolkit  2021.02.99-b1c7fb9e
Medical Imaging Interaction Toolkit
mitkPlaneOrientationProperty.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_PLANE_DECORATION_PROPERTY__H
14 #define MITK_PLANE_DECORATION_PROPERTY__H
15 
17 
18 namespace mitk
19 {
20 #ifdef _MSC_VER
21 #pragma warning(push)
22 #pragma warning(disable : 4522)
23 #endif
24 
39  {
40  public:
42 
43  itkFactorylessNewMacro(Self);
44 
45  itkCloneMacro(Self);
46 
48 
50 
51  enum
52  {
55  PLANE_DECORATION_NEGATIVE_ORIENTATION
56  };
57 
61  virtual int GetPlaneDecoration();
62 
66  virtual void SetPlaneDecorationToNone();
67 
71  virtual void SetPlaneDecorationToPositiveOrientation();
72 
76  virtual void SetPlaneDecorationToNegativeOrientation();
77 
78  using BaseProperty::operator=;
79 
80  protected:
85 
90  PlaneOrientationProperty(const IdType &value);
91 
96  PlaneOrientationProperty(const std::string &value);
97 
102  bool AddEnum(const std::string &name, const IdType &id) override;
103 
107  virtual void AddDecorationTypes();
108 
109  private:
110  // purposely not implemented
112 
113  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
#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