|
Medical Imaging Interaction Toolkit
2026.06.00
Medical Imaging Interaction Toolkit
|
Version 1 implementation of the MITK scene reader. More...
#include <mitkSceneReaderV1.h>


Public Member Functions | |
| mitkClassMacro (SceneReaderV1, SceneReader) | |
| Pointer | Clone () const |
| bool | LoadScene (tinyxml2::XMLDocument &document, const std::string &workingDirectory, DataStorage *storage) override |
| Load a scene from an XML document into the given DataStorage. More... | |
Public Member Functions inherited from mitk::SceneReader | |
| mitkClassMacroItkParent (SceneReader, itk::Object) | |
| Pointer | Clone () const |
Static Public Member Functions | |
| static Pointer | New () |
Static Public Member Functions inherited from mitk::SceneReader | |
| static Pointer | New () |
Protected Types | |
| typedef std::pair< DataNode::Pointer, std::list< std::string > > | NodesAndParentsPair |
| typedef std::list< NodesAndParentsPair > | OrderedNodesList |
| typedef std::map< std::string, DataNode * > | IDToNodeMappingType |
| typedef std::map< DataNode *, std::string > | NodeToIDMappingType |
Protected Member Functions | |
| DataNode::Pointer | LoadBaseDataFromDataTag (const tinyxml2::XMLElement *dataElement, const PropertyList *properties, const std::string &workingDirectory, bool &error) |
| tries to create one DataNode from a given XML <node> element More... | |
| bool | DecorateNodeWithProperties (DataNode *node, const tinyxml2::XMLElement *nodeElement, const std::string &workingDirectory) |
| reads all the properties from the XML document and recreates them in node More... | |
| void | ClearNodePropertyListWithExceptions (DataNode &node, PropertyList &propertyList) |
| Clear a default property list and handle some exceptions. More... | |
Protected Attributes | |
| OrderedNodesList | m_OrderedNodePairs |
| IDToNodeMappingType | m_NodeForID |
| NodeToIDMappingType | m_IDForNode |
| UIDGenerator | m_UIDGen |
Version 1 implementation of the MITK scene reader.
Reads MITK scene files (version 1 format) from an XML document and populates a DataStorage with the deserialized nodes, data, and properties.
Definition at line 32 of file mitkSceneReaderV1.h.
|
protected |
Definition at line 80 of file mitkSceneReaderV1.h.
|
protected |
Definition at line 78 of file mitkSceneReaderV1.h.
|
protected |
Definition at line 81 of file mitkSceneReaderV1.h.
|
protected |
Definition at line 79 of file mitkSceneReaderV1.h.
|
protected |
Clear a default property list and handle some exceptions.
Called after assigning a BaseData object to a fresh DataNode via SetData(). This call to SetData() would create default properties that have not been there when saving the scene. Since they can produce problems, we clear the list and use only those properties that we read from the scene file.
This method also handles some exceptions for backwards compatibility. Those exceptions are documented directly in the code of the method.
| Pointer mitk::SceneReaderV1::Clone | ( | ) | const |
|
protected |
reads all the properties from the XML document and recreates them in node
|
protected |
tries to create one DataNode from a given XML <node> element
|
overridevirtual |
Load a scene from an XML document into the given DataStorage.
| document | The XML document containing the scene definition. |
| workingDirectory | The directory containing serialized data files. |
| storage | The DataStorage to populate with loaded nodes. |
Reimplemented from mitk::SceneReader.
| mitk::SceneReaderV1::mitkClassMacro | ( | SceneReaderV1 | , |
| SceneReader | |||
| ) |
|
static |
|
protected |
Definition at line 85 of file mitkSceneReaderV1.h.
|
protected |
Definition at line 84 of file mitkSceneReaderV1.h.
|
protected |
Definition at line 83 of file mitkSceneReaderV1.h.
|
protected |
Definition at line 87 of file mitkSceneReaderV1.h.