13 #ifndef mitkVtkRepresentationProperty_h
14 #define mitkVtkRepresentationProperty_h
32 itkFactorylessNewMacro(Self);
55 using BaseProperty::operator=;
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.