Scene. Basic Container for SceneElements.
More...
#include <SurgSim/Framework/Scene.h>
Scene. Basic Container for SceneElements.
SurgSim::Framework::Scene::Scene |
( |
std::weak_ptr< Runtime > |
runtime | ) |
|
|
explicit |
Constructor.
- Parameters
-
runtime | The runtime to be used. |
SurgSim::Framework::Scene::~Scene |
( |
| ) |
|
void SurgSim::Framework::Scene::addSceneElement |
( |
std::shared_ptr< SceneElement > |
element | ) |
|
Adds a scene element to the Scene, the SceneElement will have its initialize() function called.
- Parameters
-
bool SurgSim::Framework::Scene::decode |
( |
const YAML::Node & |
node | ) |
|
Pull data from a YAML::Node.
- Parameters
-
- Returns
- true if the decoding succeeded and the node was formatted correctly, false otherwise
YAML::Node SurgSim::Framework::Scene::encode |
( |
| ) |
const |
Convert to a YAML::Node.
- Returns
- A node with all the public data of this instance
std::shared_ptr< Runtime > SurgSim::Framework::Scene::getRuntime |
( |
| ) |
|
Gets the runtime.
- Returns
- runtime The runtime for this scene.
const std::vector< std::shared_ptr< SceneElement > > & SurgSim::Framework::Scene::getSceneElements |
( |
| ) |
const |
Gets all the scene elements in the scene.
- Returns
- The scene elements.
std::shared_ptr< Scene > SurgSim::Framework::Scene::getSharedPtr |
( |
| ) |
|
|
private |
Get a shared pointer to Scene.
- Returns
- The shared pointer.
std::vector<std::shared_ptr<SceneElement> > SurgSim::Framework::Scene::m_elements |
|
private |
std::weak_ptr<Runtime> SurgSim::Framework::Scene::m_runtime |
|
private |
boost::mutex SurgSim::Framework::Scene::m_sceneElementsMutex |
|
mutableprivate |
The documentation for this class was generated from the following files: