Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
mitk::SceneReaderHelpers Namespace Reference

Functions

void StripTransientProperties (PropertyList &propertyList, const BaseData *data)
 Remove transient properties (e.g. the "selected" UI flag) from a freshly read property list. More...
 
void ApplyProportionalTimeGeometryProperties (BaseData *data)
 Reconstruct a proportional time geometry from properties on a BaseData's property list. More...
 

Function Documentation

◆ ApplyProportionalTimeGeometryProperties()

void mitk::SceneReaderHelpers::ApplyProportionalTimeGeometryProperties ( BaseData *  data)
inline

Reconstruct a proportional time geometry from properties on a BaseData's property list.

Workaround for file formats (notably Surfaces) that cannot persist time-geometry information. If data carries a ProportionalTimeGeometry and its property list contains ProportionalTimeGeometry.FirstTimePoint and/or ProportionalTimeGeometry.StepDuration, those values are applied back to the geometry.

Shared between SceneReaderV1 (XML) and SceneJsonReader so both scene readers agree on the behavior.

Definition at line 71 of file mitkSceneReaderHelpers.h.

References mitk::BaseData::GetPropertyList(), and mitk::BaseData::GetTimeGeometry().

◆ StripTransientProperties()

void mitk::SceneReaderHelpers::StripTransientProperties ( PropertyList &  propertyList,
const BaseData *  data 
)
inline

Remove transient properties (e.g. the "selected" UI flag) from a freshly read property list.

Older scene files may carry transient keys that the save path now excludes; stripping them on load keeps a reloaded scene from resurrecting runtime or UI state. Transience is decided per the node's BaseData type. data may be null for a data-less node, in which case rules registered for mitk::BaseData still apply.

Shared between SceneReaderV1 (XML) and SceneJsonReader so both scene readers agree on the behavior.

Definition at line 41 of file mitkSceneReaderHelpers.h.

References mitk::PropertyList::DeleteProperty(), mitk::PropertyList::GetMap(), and mitk::CoreServices::GetPropertyTransience().