Medical Imaging Interaction Toolkit  2024.06.00
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 mitkPlaneOrientationProperty_h
14 #define mitkPlaneOrientationProperty_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
mitk::BaseProperty
Abstract base class for properties.
Definition: mitkBaseProperty.h:36
mitk::PlaneOrientationProperty
Definition: mitkPlaneOrientationProperty.h:38
mitk::EnumerationProperty
Definition: mitkEnumerationProperty.h:43
mitkNewMacro1Param
#define mitkNewMacro1Param(classname, type)
Definition: mitkCommon.h:68
mitk::PlaneOrientationProperty::PLANE_DECORATION_POSITIVE_ORIENTATION
@ PLANE_DECORATION_POSITIVE_ORIENTATION
Definition: mitkPlaneOrientationProperty.h:54
mitk
Find image slices visible on a given plane.
Definition: RenderingTests.dox:1
mitk::EnumerationProperty::IdType
unsigned int IdType
Definition: mitkEnumerationProperty.h:48
mitkEnumerationProperty.h
mitkClassMacro
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:36
mitk::PlaneOrientationProperty::PLANE_DECORATION_NONE
@ PLANE_DECORATION_NONE
Definition: mitkPlaneOrientationProperty.h:53
MITKCORE_EXPORT
#define MITKCORE_EXPORT
Definition: MitkCoreExports.h:15