13 #ifndef mitkSceneReaderHelpers_h
14 #define mitkSceneReaderHelpers_h
47 std::vector<std::string> transientKeys;
48 for (
const auto &property : *propertyList.
GetMap())
50 if (transience->IsTransient(data, property.first))
51 transientKeys.push_back(property.first);
54 for (
const auto &key : transientKeys)
74 if (geometry ==
nullptr)
78 if (properties ==
nullptr)
82 if (properties->GetFloatProperty(
"ProportionalTimeGeometry.FirstTimePoint", value))
84 if (value == -std::numeric_limits<float>::infinity())
85 value = std::numeric_limits<float>::lowest();
86 geometry->SetFirstTimePoint(value);
88 if (properties->GetFloatProperty(
"ProportionalTimeGeometry.StepDuration", value))
89 geometry->SetStepDuration(value);
Base class of all data objects.
mitk::PropertyList::Pointer GetPropertyList() const
Get the data's property list.
const mitk::TimeGeometry * GetTimeGeometry() const
Return the TimeGeometry of the data as const pointer.
RAII wrapper for core service objects.
static IPropertyTransience * GetPropertyTransience(us::ModuleContext *context=us::GetModuleContext())
Get an IPropertyTransience instance.
Key-value list holding instances of BaseProperty.
bool DeleteProperty(const std::string &propertyKey)
Remove a property from the list/map by key.
const PropertyMap * GetMap() const
Get a read-only pointer to the internal property map.
void ApplyProportionalTimeGeometryProperties(BaseData *data)
Reconstruct a proportional time geometry from properties on a BaseData's property list.
void StripTransientProperties(PropertyList &propertyList, const BaseData *data)
Remove transient properties (e.g. the "selected" UI flag) from a freshly read property list.