Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #include "mitkSceneReader.h"
00019
00020 namespace mitk
00021 {
00022
00023 class SceneReaderV1 : public SceneReader
00024 {
00025 public:
00026
00027 mitkClassMacro( SceneReaderV1, SceneReader);
00028 itkNewMacro( Self );
00029
00030 virtual bool LoadScene( TiXmlDocument& document, const std::string& workingDirectory, DataStorage* storage );
00031
00032 protected:
00033
00037 DataNode::Pointer LoadBaseDataFromDataTag( TiXmlElement* dataElement,
00038 const std::string& workingDirectory,
00039 bool& error );
00040
00044 bool DecorateNodeWithProperties(DataNode* node, TiXmlElement* nodeElement, const std::string& workingDirectory);
00045
00046 typedef std::map<DataNode::Pointer, std::list<std::string> > NodesAndParentsMapType;
00047 typedef std::map<std::string, DataNode*> IDToNodeMappingType;
00048 typedef std::map<DataNode*, std::string> NodeToIDMappingType;
00049
00050 NodesAndParentsMapType m_Nodes;
00051 IDToNodeMappingType m_NodeForID;
00052 NodeToIDMappingType m_IDForNode;
00053
00054 UIDGenerator m_UIDGen;
00055 };
00056
00057 }
00058