Medical Imaging Interaction Toolkit
2024.06.99-60d9b802
Medical Imaging Interaction Toolkit
|
Go to the documentation of this file.
13 #ifndef mitkROIMapperHelper_h
14 #define mitkROIMapperHelper_h
19 #include <vtkCaptionActor2D.h>
20 #include <vtkProperty.h>
21 #include <vtkSmartPointer.h>
25 namespace ROIMapperHelper
52 if (property.IsNotNull())
53 return dynamic_cast<const T*
>(
property.GetPointer());
vtkSmartPointer< vtkCaptionActor2D > CreateCaptionActor(const std::string &caption, const Point3D &attachmentPoint, vtkProperty *property, const DataNode *dataNode, const BaseRenderer *renderer)
Create an actor for the ROI caption located at a certain attachment point considering several propert...
void ApplyIndividualProperties(const ROI::Element &roi, TimeStepType t, vtkActor *actor)
Apply ROI properties at a certain time step to the given actor.
Find image slices visible on a given plane.
const T * GetConstProperty(const std::string &propertyKey, const ROI::Element &roi, TimeStepType t)
Syntactic sugar for getting ROI properties.
BaseProperty::ConstPointer GetConstProperty(const std::string &propertyKey, const std::string &contextName="", bool fallBackOnDefaultContext=true) const override
Get a const property.
std::string ParseCaption(const std::string &captionTemplate, const ROI::Element &roi, TimeStepType t=0)
Substitute all placeholders in a caption with corresponding property values.
Class for nodes of the DataTree.
Encapsulates a single (possibly time-resolved) ROI.
void SetDefaultProperties(DataNode *node, BaseRenderer *renderer, bool override)
Set common default properties for both 2-d and 3-d ROI mappers.