13 #ifndef mitkROIMapperHelper_h
14 #define mitkROIMapperHelper_h
19 #include <vtkCaptionActor2D.h>
20 #include <vtkProperty.h>
21 #include <vtkSmartPointer.h>
34 namespace ROIMapperHelper
110 if (property.IsNotNull())
111 return dynamic_cast<const T*
>(
property.GetPointer());
Organizes the rendering process.
Central node class of the MITK data tree, associating a data object with properties and mappers.
Encapsulates a single (possibly time-resolved) ROI.
BaseProperty::ConstPointer GetConstProperty(const std::string &propertyKey, const std::string &contextName="", bool fallBackOnDefaultContext=true) const override
Get a const property by key and optional context.
void ApplyIndividualProperties(const ROI::Element &roi, TimeStepType t, vtkActor *actor)
Apply individual ROI properties at a certain time step to the given actor.
const T * GetConstProperty(const std::string &propertyKey, const ROI::Element &roi, TimeStepType t)
Retrieve a typed const property from an ROI element.
std::string ParseCaption(const std::string &captionTemplate, const ROI::Element &roi, TimeStepType t=0)
Substitute all placeholders in a caption template with corresponding property values.
void SetDefaultProperties(DataNode *node, BaseRenderer *renderer, bool override)
Set common default properties for both 2D and 3D ROI mappers.
vtkSmartPointer< vtkCaptionActor2D > CreateCaptionActor(const std::string &caption, const Point3D &attachmentPoint, vtkProperty *property, const DataNode *dataNode, const BaseRenderer *renderer)
Create a VTK caption actor for an ROI label.
Find image slices visible on a given plane.
std::size_t TimeStepType
Type for time step indices (non-negative integers starting from 0).