Medical Imaging Interaction Toolkit  2026.06.00
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 (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 mitkVtkRepresentationProperty_h
14 #define mitkVtkRepresentationProperty_h
15 
17 
18 namespace mitk
19 {
28  {
29  public:
31 
32  itkFactorylessNewMacro(Self);
33 
34  itkCloneMacro(Self);
35 
37 
39 
44  virtual int GetVtkRepresentation();
45 
47  virtual void SetRepresentationToPoints();
48 
51 
54 
55  using BaseProperty::operator=;
56 
57  protected:
60 
69 
77  VtkRepresentationProperty(const std::string &value);
78 
80 
84  bool AddEnum(const std::string &name, const IdType &id) override;
85 
89  virtual void AddRepresentationTypes();
90 
92 
93  private:
94  // purposely not implemented
96  };
97 
98 
99 } // end of namespace mitk
100 #endif
#define MITKCORE_EXPORT
Property for storing enumeration-like values identified by id and name.
unsigned int IdType
Unsigned integer type used as unique enumeration value identifier.
Encapsulates the VTK representation enumeration as an EnumerationProperty.
mitkCloneMacro(VtkRepresentationProperty)
virtual void SetRepresentationToPoints()
Set the representation type to VTK_POINTS.
VtkRepresentationProperty(const std::string &value)
Constructor. Sets the representation to the given value.
VtkRepresentationProperty(const VtkRepresentationProperty &other)
virtual void SetRepresentationToSurface()
Set the representation type to VTK_SURFACE.
mitkNewMacro1Param(VtkRepresentationProperty, const std::string &)
mitkNewMacro1Param(VtkRepresentationProperty, const IdType &)
virtual void SetRepresentationToWireframe()
Set the representation type to VTK_WIREFRAME.
VtkRepresentationProperty(const IdType &value)
Constructor. Sets the representation to the given value.
bool AddEnum(const std::string &name, const IdType &id) override
Overridden as protected to prevent adding invalid representation types.
virtual int GetVtkRepresentation()
Return the current representation value as defined by VTK constants.
VtkRepresentationProperty()
Constructor. Sets the representation to a default value of Surface(2).
mitkClassMacro(VtkRepresentationProperty, EnumerationProperty)
virtual void AddRepresentationTypes()
Add the VTK-defined representation types to the enumeration.
Find image slices visible on a given plane.