IMapRootNodePtr Map::getRoot() { if (m_resource != NULL) { // Try to cast the node onto a root node and return return boost::dynamic_pointer_cast<IMapRootNode>(m_resource->getNode()); } return IMapRootNodePtr(); }
SceneGraph::~SceneGraph() { // Make sure the scene graph is properly uninstantiated if (root()) { flushActionBuffer(); setRoot(IMapRootNodePtr()); } }