Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
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,
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_PLANE_DECORATION_PROPERTY__H
18 #define MITK_PLANE_DECORATION_PROPERTY__H
19 
21 
22 namespace mitk
23 {
24 #ifdef _MSC_VER
25 #pragma warning(push)
26 #pragma warning(disable : 4522)
27 #endif
28 
43  {
44  public:
46 
47  itkFactorylessNewMacro(Self) itkCloneMacro(Self)
48 
50 
51  mitkNewMacro1Param(PlaneOrientationProperty, const std::string &);
52 
53  enum
54  {
57  PLANE_DECORATION_NEGATIVE_ORIENTATION
58  };
59 
63  virtual int GetPlaneDecoration();
64 
68  virtual void SetPlaneDecorationToNone();
69 
73  virtual void SetPlaneDecorationToPositiveOrientation();
74 
78  virtual void SetPlaneDecorationToNegativeOrientation();
79 
80  using BaseProperty::operator=;
81 
82  protected:
87 
92  PlaneOrientationProperty(const IdType &value);
93 
98  PlaneOrientationProperty(const std::string &value);
99 
104  virtual bool AddEnum(const std::string &name, const IdType &id) override;
105 
109  virtual void AddDecorationTypes();
110 
111  private:
112  // purposely not implemented
114 
115  virtual itk::LightObject::Pointer InternalClone() const override;
116  };
117 
118 #ifdef _MSC_VER
119 #pragma warning(pop)
120 #endif
121 
122 } // end of namespace mitk
123 
124 #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