Enable querying for Renderables in query.h

This commit is contained in:
Alexander Bock
2014-12-03 17:19:18 +01:00
parent 14051455a5
commit 8c2dfb13bb
2 changed files with 8 additions and 1 deletions

View File

@@ -32,11 +32,13 @@ namespace openspace {
namespace properties {
class Property;
}
class Renderable;
class SceneGraph;
class SceneGraphNode;
SceneGraph* sceneGraph();
SceneGraphNode* sceneGraphNode(const std::string& name);
Renderable* renderable(const std::string& name);
properties::Property* property(const std::string& uri);
} // namespace

View File

@@ -45,7 +45,12 @@ SceneGraphNode* sceneGraphNode(const std::string& name)
const SceneGraph* graph = sceneGraph();
return graph->sceneGraphNode(name);
}
Renderable* renderable(const std::string& name) {
SceneGraphNode* node = sceneGraphNode(name);
return node->renderable();
}
properties::Property* property(const std::string& uri)
{
// The URI consists of the following form at this stage: