Class ScenePartSpecVars#

Inheritance Relationships#

Base Type#

Class Documentation#

class ScenePartSpecVars : public Karana::Core::BaseVars#

The Vars for the ScenePartSpec class.

Public Functions

ScenePartSpecVars(const ScenePartSpec &sps)#

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

Parameters:

sps – The ScenePartSpec associated with this ScenePartSpecVars.

~ScenePartSpecVars()#

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>> 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::HomTran>> transform#

The transform.

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

The material type.

Public Static Functions

static kc::ks_ptr<ScenePartSpecVars> create(const ScenePartSpec &sps)#

Create an instance of the ScenePartSpecVars.

Parameters:

sps – The ScenePartSpec associated with this ScenePartSpecVars.

Returns:

A pointer to the newly created instance of ScenePartSpecVars.