Medical Imaging Interaction Toolkit  2026.06.00
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 mitkGridRepresentationProperty_h
14 #define mitkGridRepresentationProperty_h
15 
18 
19 namespace mitk
20 {
33  {
34  public:
39  {
40  POINTS = 0,
41  WIREFRAME = 1,
42  SURFACE = 2
43  };
44 
46 
47  itkFactorylessNewMacro(Self);
48 
49  itkCloneMacro(Self);
50 
52 
54 
56  virtual void SetRepresentationToPoints();
57 
60 
63 
66 
67  protected:
72 
74 
81 
87  GridRepresentationProperty(const std::string &value);
88 
93  bool AddEnum(const std::string &name, const IdType &id) override;
94 
99  virtual void AddRepresentationTypes();
100 
102  };
103 } // end of namespace mitk
104 #endif
#define MITKDATATYPESEXT_EXPORT
Property for storing enumeration-like values identified by id and name.
unsigned int IdType
Unsigned integer type used as unique enumeration value identifier.
Enumeration property for grid representation types.
mitkNewMacro1Param(GridRepresentationProperty, const IdType &)
bool AddEnum(const std::string &name, const IdType &id) override
mitkCloneMacro(GridRepresentationProperty)
mitkClassMacro(GridRepresentationProperty, EnumerationProperty)
virtual void SetRepresentationToPoints()
Set the representation type to POINTS.
GridRepresentationProperty(const IdType &value)
virtual void SetRepresentationToSurface()
Set the representation type to SURFACE.
GridRepresentationProperty(const std::string &value)
GridRepresentationProperty(const GridRepresentationProperty &other)
RepresentationType
Available representation types for unstructured grids.
virtual void SetRepresentationToWireframeSurface()
Set the representation type to WIREFRAME_SURFACE (combined).
virtual void SetRepresentationToWireframe()
Set the representation type to WIREFRAME.
mitkNewMacro1Param(GridRepresentationProperty, const std::string &)
Find image slices visible on a given plane.