Medical Imaging Interaction Toolkit  2024.06.99-60d9b802
Medical Imaging Interaction Toolkit
mitk::ROIMapperHelper Namespace Reference

Functions

void ApplyIndividualProperties (const ROI::Element &roi, TimeStepType t, vtkActor *actor)
 Apply ROI properties at a certain time step to the given actor. More...
 
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 properties. More...
 
std::string ParseCaption (const std::string &captionTemplate, const ROI::Element &roi, TimeStepType t=0)
 Substitute all placeholders in a caption with corresponding property values. More...
 
void SetDefaultProperties (DataNode *node, BaseRenderer *renderer, bool override)
 Set common default properties for both 2-d and 3-d ROI mappers. More...
 
template<class T >
const T * GetConstProperty (const std::string &propertyKey, const ROI::Element &roi, TimeStepType t)
 Syntactic sugar for getting ROI properties. More...
 

Function Documentation

◆ ApplyIndividualProperties()

void mitk::ROIMapperHelper::ApplyIndividualProperties ( const ROI::Element roi,
TimeStepType  t,
vtkActor *  actor 
)

Apply ROI properties at a certain time step to the given actor.

◆ CreateCaptionActor()

vtkSmartPointer<vtkCaptionActor2D> mitk::ROIMapperHelper::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 properties.

◆ GetConstProperty()

template<class T >
const T* mitk::ROIMapperHelper::GetConstProperty ( const std::string &  propertyKey,
const ROI::Element roi,
TimeStepType  t 
)

Syntactic sugar for getting ROI properties.

Definition at line 48 of file mitkROIMapperHelper.h.

References mitk::ROI::Element::GetConstProperty().

◆ ParseCaption()

std::string mitk::ROIMapperHelper::ParseCaption ( const std::string &  captionTemplate,
const ROI::Element roi,
TimeStepType  t = 0 
)

Substitute all placeholders in a caption with corresponding property values.

See also
ROI

◆ SetDefaultProperties()

void mitk::ROIMapperHelper::SetDefaultProperties ( DataNode node,
BaseRenderer renderer,
bool  override 
)

Set common default properties for both 2-d and 3-d ROI mappers.