Class ScenePartVars#

Inheritance Relationships#

Base Type#

Derived Type#

Class Documentation#

class ScenePartVars : public Karana::Scene::SceneNodeVars#

The Vars for the ScenePart class.

Subclassed by Karana::Scene::ProxyScenePartVars

Public Functions

ScenePartVars(const kc::ks_ptr<ScenePart> &sp)#

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

Parameters:

sp – The ScenePart associated with this ScenePartVars.

~ScenePartVars()#

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>> layers#

The layers for the ScenePart.

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

Readable string representation of the layers for the ScenePart.

kc::ks_ptr<Karana::Core::Var_T<km::Vec3>> intrinsic_scale#

The intrinsic (possibly non-uniform) scale for the geometry.

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

The geometry type.

kc::ks_ptr<Karana::Core::Var_T<km::SpatialVector>> aabb#

The bounding box.

Public Static Functions

static kc::ks_ptr<ScenePartVars> create(const kc::ks_ptr<ScenePart> &sp)#

Create an instance of the ScenePartVars.

Parameters:

sp – The ScenePart associated with this ScenePartVars.

Returns:

A pointer to the newly created instance of ScenePartVars.