Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitkVtkRepresentationProperty.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_VTK_REPRESENTATION_PROPERTY__H_
18 #define _MITK_VTK_REPRESENTATION_PROPERTY__H_
19 
21 
22 namespace mitk
23 {
24 #ifdef _MSC_VER
25 #pragma warning(push)
26 #pragma warning(disable : 4522)
27 #endif
28 
36  {
37  public:
39 
40  itkFactorylessNewMacro(Self) itkCloneMacro(Self)
41 
43 
44  mitkNewMacro1Param(VtkRepresentationProperty, const std::string &);
45 
50  virtual int GetVtkRepresentation();
51 
55  virtual void SetRepresentationToPoints();
56 
60  virtual void SetRepresentationToWireframe();
61 
65  virtual void SetRepresentationToSurface();
66 
67  using BaseProperty::operator=;
68 
69  protected:
73  VtkRepresentationProperty();
74 
80  VtkRepresentationProperty(const IdType &value);
81 
87  VtkRepresentationProperty(const std::string &value);
88 
93  virtual bool AddEnum(const std::string &name, const IdType &id) override;
94 
99  virtual void AddRepresentationTypes();
100 
101  private:
102  // purposely not implemented
103  VtkRepresentationProperty &operator=(const VtkRepresentationProperty &);
104 
105  virtual itk::LightObject::Pointer InternalClone() const override;
106  };
107 
108 #ifdef _MSC_VER
109 #pragma warning(pop)
110 #endif
111 
112 } // end of namespace mitk
113 #endif
#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