mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-02-25 06:19:02 -06:00
Enable querying for Renderables in query.h
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user