Medical Imaging Interaction Toolkit  2018.4.99-b7f3afaa
Medical Imaging Interaction Toolkit
mitkGridRepresentationProperty.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_GRID_REPRESENTATION_PROPERTY__H_
14 #define _MITK_GRID_REPRESENTATION_PROPERTY__H_
15 
18 
19 namespace mitk
20 {
33  {
34  public:
36  {
37  POINTS = 0,
38  WIREFRAME = 1,
39  SURFACE = 2
40  }; //, WIREFRAME_SURFACE = 3};
41 
43 
44  itkFactorylessNewMacro(Self);
45 
46  itkCloneMacro(Self);
47 
49 
50  mitkNewMacro1Param(GridRepresentationProperty, const std::string &);
51 
55  virtual void SetRepresentationToPoints();
56 
60  virtual void SetRepresentationToWireframe();
61 
65  virtual void SetRepresentationToSurface();
66 
70  virtual void SetRepresentationToWireframeSurface();
71 
72  protected:
77 
79 
85  GridRepresentationProperty(const IdType &value);
86 
92  GridRepresentationProperty(const std::string &value);
93 
98  bool AddEnum(const std::string &name, const IdType &id) override;
99 
104  virtual void AddRepresentationTypes();
105 
106  private:
107  itk::LightObject::Pointer InternalClone() const override;
108  };
109 } // end of namespace mitk
110 #endif // _MITK_GRID_REPRESENTATION_PROPERTY__H_
#define mitkNewMacro1Param(classname, type)
Definition: mitkCommon.h:72
#define MITKDATATYPESEXT_EXPORT
DataCollection - Class to facilitate loading/accessing structured data.
Abstract base class for properties.
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:40