Class SceneVars#

Inheritance Relationships#

Base Type#

Derived Type#

Class Documentation#

class SceneVars : public Karana::Core::BaseVars#

The Vars for the Scene class.

Subclassed by Karana::Scene::ProxySceneVars

Public Functions

SceneVars(const kc::ks_ptr<Scene> &scene)#

SceneVars constructor. The constructor is not meant to be called directly. Please use the create(…) method instead to create an instance.

Parameters:

scene – The Scene associated with this SceneVars.

~SceneVars()#

Destructor.

virtual kc::NestedVars getAllVars() const override#

Get all the Vars that this VarHolder has.

Returns:

A map of Vars, where the Var name is the key and the Var is the value.

Public Members

kc::ks_ptr<Karana::Core::Var_T<int>> num_nodes#

The number of scene nodes.

Public Static Functions

static kc::ks_ptr<SceneVars> create(const kc::ks_ptr<Scene> &scene)#

Create an instance of the SceneVars.

Parameters:

scene – The Scene associated with this SceneVars.

Returns:

A pointer to the newly created instance of SceneVars.