Exemplo n.º 1
0
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();
}
Exemplo n.º 2
0
SceneGraph::~SceneGraph()
{
	// Make sure the scene graph is properly uninstantiated
	if (root())
	{
        flushActionBuffer();
		setRoot(IMapRootNodePtr());
	}
}