MCPcopy Create free account
hub / github.com/MITK/MITK / ApplyPropertyMap

Function ApplyPropertyMap

Modules/SceneSerialization/src/mitkSceneJsonReader.cpp:380–394  ·  view source on GitHub ↗

* \brief Apply a property map to \p targetList. * * Honors `_loadstyle` (Replace clears the list first; Modify merges on top * of whatever is already in the list), resolves `_file` references, and * skips / warns about other `_`-meta keys. */

Source from the content-addressed store, hash-verified

378 * skips / warns about other `_`-meta keys.
379 */
380 void ApplyPropertyMap(mitk::PropertyList &targetList,
381 const json &mapJson,
382 const fs::path &basePath,
383 const std::string &context)
384 {
385 const json resolved = ResolvePropertyMap(mapJson, basePath, context);
386 const LoadStyle style = ParseLoadStyle(resolved, context);
387
388 if (style == LoadStyle::Replace)
389 {
390 targetList.Clear();
391 }
392
393 ApplyResolvedPropertyMap(targetList, resolved, context);
394 }
395
396 /**
397 * \brief Extract the integer `layer` property value from a node JSON object

Callers 1

LoadSceneMethod · 0.85

Calls 4

ResolvePropertyMapFunction · 0.85
ParseLoadStyleFunction · 0.85
ApplyResolvedPropertyMapFunction · 0.85
ClearMethod · 0.45

Tested by

no test coverage detected