Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
mitk::LabelSetImageVtkMapper2D::LocalStorage Class Reference

Internal class holding the mapper, actor, etc. for each of the 3 2D render windows. More...

#include <mitkLabelSetImageVtkMapper2D.h>

Inheritance diagram for mitk::LabelSetImageVtkMapper2D::LocalStorage:
Collaboration diagram for mitk::LabelSetImageVtkMapper2D::LocalStorage:

Public Member Functions

 LocalStorage ()
 Default constructor of the local storage. More...
 
 ~LocalStorage () override
 Default destructor of the local storage. More...
 
- Public Member Functions inherited from mitk::Mapper::BaseLocalStorage
 BaseLocalStorage ()=default
 
virtual ~BaseLocalStorage ()=default
 
 BaseLocalStorage (const BaseLocalStorage &)=delete
 
BaseLocalStorage & operator= (const BaseLocalStorage &)=delete
 
bool IsGenerateDataRequired (mitk::BaseRenderer *renderer, mitk::Mapper *mapper, mitk::DataNode *dataNode) const
 Check whether GenerateDataForRenderer() needs to be called. More...
 
void UpdateGenerateDataTime ()
 Mark the stored data as up-to-date. More...
 
itk::TimeStamp & GetLastGenerateDataTime ()
 Get a reference to the last-generate-data timestamp. More...
 

Public Attributes

vtkSmartPointer< vtkPropAssembly > m_Actors
 Assembly of all VTK actors used for rendering. More...
 
std::vector< const Image * > m_GroupImageIDs
 Vector containing the pointer of the currently used group images. More...
 
std::vector< vtkSmartPointer< vtkActor > > m_LayerActorVector
 Vector of actors for each label group layer. More...
 
std::vector< vtkSmartPointer< vtkPolyDataMapper > > m_LayerMapperVector
 Vector of mappers for each label group layer. More...
 
std::vector< vtkSmartPointer< vtkImageData > > m_ReslicedImageVector
 Vector of resliced image data for each label group layer. More...
 
std::vector< vtkSmartPointer< vtkImageMapToColors > > m_LayerImageMapToColors
 Vector of image-to-color mappers for each label group layer. More...
 
std::vector< vtkSmartPointer< vtkNeverTranslucentTexture > > m_LayerTextureVector
 Vector of textures for each label group layer. More...
 
vtkSmartPointer< vtkPolyData > m_EmptyPolyData
 Empty poly data used as a placeholder. More...
 
vtkSmartPointer< vtkPlaneSource > m_Plane
 The plane source used for texture mapping. More...
 
std::vector< mitk::ExtractSliceFilter::Pointer > m_ReslicerVector
 Vector of reslice filters for each label group layer. More...
 
vtkSmartPointer< vtkPolyData > m_OutlinePolyData
 Poly data for the label outline. More...
 
vtkSmartPointer< vtkActor > m_OutlineActor
 An actor for the outline. More...
 
vtkSmartPointer< vtkActor > m_OutlineShadowActor
 An actor for the outline shadow. More...
 
vtkSmartPointer< vtkPolyDataMapper > m_OutlineMapper
 A mapper for the outline. More...
 
itk::TimeStamp m_LastDataUpdateTime
 Timestamp of last update of stored data. More...
 
itk::TimeStamp m_LastPropertyUpdateTime
 Timestamp of last update of a property. More...
 
itk::TimeStamp m_LastActiveLabelUpdateTime
 Timestamp of last update of the active label. More...
 
mitk::ScalarType * m_mmPerPixel
 mmPerPixel relation between pixel and mm. (World spacing). More...
 
mitk::LookupTable::Pointer m_LabelLookupTable
 Look up table for label colors. More...
 
mitk::PlaneGeometry::Pointer m_WorldPlane
 The current world plane geometry. More...
 
bool m_HasValidContent
 Flag indicating whether the local storage contains valid content. More...
 
mitk::TimeStepType m_LastTimeStep
 The last time step that was rendered. More...
 
unsigned int m_NumberOfLayers
 The number of label group layers. More...
 
MultiLabelSegmentation::LabelValueType m_LastActiveLabelValue
 The label value of the last active label. More...
 
float m_LastOpacityFactor
 The "opacity factor" preference value baked into the current LUT. More...
 

Additional Inherited Members

- Protected Attributes inherited from mitk::Mapper::BaseLocalStorage
itk::TimeStamp m_LastGenerateDataTime
 Timestamp of last update of stored data. More...
 

Detailed Description

Internal class holding the mapper, actor, etc. for each of the 3 2D render windows.

To render axial, coronal, and sagittal, the mapper is called three times. For performance reasons, the corresponding data for each view is saved in the internal helper class LocalStorage. This allows rendering n views with just 1 mitkMapper using n vtkMapper.

Definition at line 88 of file mitkLabelSetImageVtkMapper2D.h.

Constructor & Destructor Documentation

◆ LocalStorage()

mitk::LabelSetImageVtkMapper2D::LocalStorage::LocalStorage ( )

Default constructor of the local storage.

◆ ~LocalStorage()

mitk::LabelSetImageVtkMapper2D::LocalStorage::~LocalStorage ( )
override

Default destructor of the local storage.

Member Data Documentation

◆ m_Actors

vtkSmartPointer<vtkPropAssembly> mitk::LabelSetImageVtkMapper2D::LocalStorage::m_Actors

Assembly of all VTK actors used for rendering.

Definition at line 92 of file mitkLabelSetImageVtkMapper2D.h.

◆ m_EmptyPolyData

vtkSmartPointer<vtkPolyData> mitk::LabelSetImageVtkMapper2D::LocalStorage::m_EmptyPolyData

Empty poly data used as a placeholder.

Definition at line 114 of file mitkLabelSetImageVtkMapper2D.h.

◆ m_GroupImageIDs

std::vector<const Image*> mitk::LabelSetImageVtkMapper2D::LocalStorage::m_GroupImageIDs

Vector containing the pointer of the currently used group images.

IMPORTANT: This member must not be used to access any data. Its purpose is to allow checking if the order of the groups has changed in order to adapt the pipeline accordingly.

Definition at line 100 of file mitkLabelSetImageVtkMapper2D.h.

◆ m_HasValidContent

bool mitk::LabelSetImageVtkMapper2D::LocalStorage::m_HasValidContent

Flag indicating whether the local storage contains valid content.

Definition at line 146 of file mitkLabelSetImageVtkMapper2D.h.

◆ m_LabelLookupTable

mitk::LookupTable::Pointer mitk::LabelSetImageVtkMapper2D::LocalStorage::m_LabelLookupTable

Look up table for label colors.

Definition at line 141 of file mitkLabelSetImageVtkMapper2D.h.

◆ m_LastActiveLabelUpdateTime

itk::TimeStamp mitk::LabelSetImageVtkMapper2D::LocalStorage::m_LastActiveLabelUpdateTime

Timestamp of last update of the active label.

Definition at line 135 of file mitkLabelSetImageVtkMapper2D.h.

◆ m_LastActiveLabelValue

MultiLabelSegmentation::LabelValueType mitk::LabelSetImageVtkMapper2D::LocalStorage::m_LastActiveLabelValue

The label value of the last active label.

Definition at line 155 of file mitkLabelSetImageVtkMapper2D.h.

◆ m_LastDataUpdateTime

itk::TimeStamp mitk::LabelSetImageVtkMapper2D::LocalStorage::m_LastDataUpdateTime

Timestamp of last update of stored data.

Definition at line 131 of file mitkLabelSetImageVtkMapper2D.h.

◆ m_LastOpacityFactor

float mitk::LabelSetImageVtkMapper2D::LocalStorage::m_LastOpacityFactor

The "opacity factor" preference value baked into the current LUT.

The factor is a global preference (no MTime), so a change is detected by comparing against this cached value to trigger a LUT rebuild.

Definition at line 161 of file mitkLabelSetImageVtkMapper2D.h.

◆ m_LastPropertyUpdateTime

itk::TimeStamp mitk::LabelSetImageVtkMapper2D::LocalStorage::m_LastPropertyUpdateTime

Timestamp of last update of a property.

Definition at line 133 of file mitkLabelSetImageVtkMapper2D.h.

◆ m_LastTimeStep

mitk::TimeStepType mitk::LabelSetImageVtkMapper2D::LocalStorage::m_LastTimeStep

The last time step that was rendered.

Definition at line 149 of file mitkLabelSetImageVtkMapper2D.h.

◆ m_LayerActorVector

std::vector<vtkSmartPointer<vtkActor> > mitk::LabelSetImageVtkMapper2D::LocalStorage::m_LayerActorVector

Vector of actors for each label group layer.

Definition at line 103 of file mitkLabelSetImageVtkMapper2D.h.

◆ m_LayerImageMapToColors

std::vector<vtkSmartPointer<vtkImageMapToColors> > mitk::LabelSetImageVtkMapper2D::LocalStorage::m_LayerImageMapToColors

Vector of image-to-color mappers for each label group layer.

Definition at line 109 of file mitkLabelSetImageVtkMapper2D.h.

◆ m_LayerMapperVector

std::vector<vtkSmartPointer<vtkPolyDataMapper> > mitk::LabelSetImageVtkMapper2D::LocalStorage::m_LayerMapperVector

Vector of mappers for each label group layer.

Definition at line 105 of file mitkLabelSetImageVtkMapper2D.h.

◆ m_LayerTextureVector

std::vector<vtkSmartPointer<vtkNeverTranslucentTexture> > mitk::LabelSetImageVtkMapper2D::LocalStorage::m_LayerTextureVector

Vector of textures for each label group layer.

Definition at line 111 of file mitkLabelSetImageVtkMapper2D.h.

◆ m_mmPerPixel

mitk::ScalarType* mitk::LabelSetImageVtkMapper2D::LocalStorage::m_mmPerPixel

mmPerPixel relation between pixel and mm. (World spacing).

Definition at line 138 of file mitkLabelSetImageVtkMapper2D.h.

◆ m_NumberOfLayers

unsigned int mitk::LabelSetImageVtkMapper2D::LocalStorage::m_NumberOfLayers

The number of label group layers.

Definition at line 152 of file mitkLabelSetImageVtkMapper2D.h.

◆ m_OutlineActor

vtkSmartPointer<vtkActor> mitk::LabelSetImageVtkMapper2D::LocalStorage::m_OutlineActor

An actor for the outline.

Definition at line 124 of file mitkLabelSetImageVtkMapper2D.h.

◆ m_OutlineMapper

vtkSmartPointer<vtkPolyDataMapper> mitk::LabelSetImageVtkMapper2D::LocalStorage::m_OutlineMapper

A mapper for the outline.

Definition at line 128 of file mitkLabelSetImageVtkMapper2D.h.

◆ m_OutlinePolyData

vtkSmartPointer<vtkPolyData> mitk::LabelSetImageVtkMapper2D::LocalStorage::m_OutlinePolyData

Poly data for the label outline.

Definition at line 122 of file mitkLabelSetImageVtkMapper2D.h.

◆ m_OutlineShadowActor

vtkSmartPointer<vtkActor> mitk::LabelSetImageVtkMapper2D::LocalStorage::m_OutlineShadowActor

An actor for the outline shadow.

Definition at line 126 of file mitkLabelSetImageVtkMapper2D.h.

◆ m_Plane

vtkSmartPointer<vtkPlaneSource> mitk::LabelSetImageVtkMapper2D::LocalStorage::m_Plane

The plane source used for texture mapping.

Definition at line 116 of file mitkLabelSetImageVtkMapper2D.h.

◆ m_ReslicedImageVector

std::vector<vtkSmartPointer<vtkImageData> > mitk::LabelSetImageVtkMapper2D::LocalStorage::m_ReslicedImageVector

Vector of resliced image data for each label group layer.

Definition at line 107 of file mitkLabelSetImageVtkMapper2D.h.

◆ m_ReslicerVector

std::vector<mitk::ExtractSliceFilter::Pointer> mitk::LabelSetImageVtkMapper2D::LocalStorage::m_ReslicerVector

Vector of reslice filters for each label group layer.

Definition at line 119 of file mitkLabelSetImageVtkMapper2D.h.

◆ m_WorldPlane

mitk::PlaneGeometry::Pointer mitk::LabelSetImageVtkMapper2D::LocalStorage::m_WorldPlane

The current world plane geometry.

Definition at line 144 of file mitkLabelSetImageVtkMapper2D.h.


The documentation for this class was generated from the following file: