Class SceneNodeVars#

Inheritance Relationships#

Base Type#

Derived Type#

Class Documentation#

class SceneNodeVars : public Karana::Core::BaseVars#

The Vars for the SceneNode class.

Subclassed by Karana::Scene::ScenePartVars

Public Functions

SceneNodeVars(const kc::ks_ptr<SceneNode> &snode)#

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

Parameters:

snode – The scene node associated with this SceneNodeVars.

~SceneNodeVars()#

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<double>> scale#

The local scale of the SceneNode.

kc::ks_ptr<Karana::Core::Var_T<double>> world_scale#

The world scale of the SceneNode.

kc::ks_ptr<Karana::Core::Var_T<km::HomTran>> transform#

The local transform of the SceneNode.

kc::ks_ptr<Karana::Core::Var_T<km::HomTran>> world_transform#

The world transform of the SceneNode.

kc::ks_ptr<Karana::Core::Var_T<std::string>> parent_node#

The name of the parent SceneNode.

kc::ks_ptr<Karana::Core::Var_T<std::vector<std::string>>> children_nodes#

The names of the children SceneNode instances.

Public Static Functions

static kc::ks_ptr<SceneNodeVars> create(const kc::ks_ptr<SceneNode> &snode)#

Create an instance of the SceneNodeVars.

Parameters:

snode – The scene node associated with this SceneNodeVars.

Returns:

A pointer to the newly created instance of SceneNodeVars.