Medical Imaging Interaction Toolkit  2016.11.0
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,
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_GRID_REPRESENTATION_PROPERTY__H_
18 #define _MITK_GRID_REPRESENTATION_PROPERTY__H_
19 
22 
23 namespace mitk
24 {
37  {
38  public:
40  {
41  POINTS = 0,
42  WIREFRAME = 1,
43  SURFACE = 2
44  }; //, WIREFRAME_SURFACE = 3};
45 
47 
48  itkFactorylessNewMacro(Self) itkCloneMacro(Self)
49 
51 
52  mitkNewMacro1Param(GridRepresentationProperty, const std::string &);
53 
57  virtual void SetRepresentationToPoints();
58 
62  virtual void SetRepresentationToWireframe();
63 
67  virtual void SetRepresentationToSurface();
68 
72  virtual void SetRepresentationToWireframeSurface();
73 
74  protected:
78  GridRepresentationProperty();
79 
80  GridRepresentationProperty(const GridRepresentationProperty &other);
81 
87  GridRepresentationProperty(const IdType &value);
88 
94  GridRepresentationProperty(const std::string &value);
95 
100  virtual bool AddEnum(const std::string &name, const IdType &id) override;
101 
106  virtual void AddRepresentationTypes();
107 
108  private:
109  virtual itk::LightObject::Pointer InternalClone() const override;
110  };
111 } // end of namespace mitk
112 #endif // _MITK_GRID_REPRESENTATION_PROPERTY__H_
#define mitkNewMacro1Param(classname, type)
Definition: mitkCommon.h:76
#define MITKDATATYPESEXT_EXPORT
STL namespace.
DataCollection - Class to facilitate loading/accessing structured data.
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:44