Clarisse 5.0 SP8 SDK  5.0.5.8.0
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Classes | Public Member Functions | Static Public Member Functions | List of all members
ShadingVariableManager Class Reference

Defines a manager scanning all shading variables and providing helpers to read/edit them. More...

Public Member Functions

 ShadingVariableManager ()
 Constructor.
 
void init (const CoreBasicArray< OfObjectHandle > &objects)
 Scan all shading variables in a list of objects and create accessors to read/edit them.
 
void bake () const
 Save back all shading variables into objects.
 
void clear ()
 Clear the whole structure.
 
const CoreVector
< ShadingVariableManagerAccessor > & 
get_variable_accessors (const CoreString &variable_name) const
 Accessors to all possible values of a particular shading variable.
 

Static Public Member Functions

static CoreString solve_variables (const CoreString &raw_value, const OfObjectFactory &factory)
 Helper contextually solving variables inside a string value.
 

Detailed Description

Defines a manager scanning all shading variables and providing helpers to read/edit them.

Member Function Documentation

const CoreVector< ShadingVariableManagerAccessor > & ShadingVariableManager::get_variable_accessors ( const CoreString variable_name) const

Accessors to all possible values of a particular shading variable.

Parameters
[in]variable_nameThe name of the shading variable.
void ShadingVariableManager::init ( const CoreBasicArray< OfObjectHandle > &  objects)

Scan all shading variables in a list of objects and create accessors to read/edit them.

Parameters
[in]objectsA list of objects to scan to gather shading variables.
CoreString ShadingVariableManager::solve_variables ( const CoreString raw_value,
const OfObjectFactory factory 
)
static

Helper contextually solving variables inside a string value.

Parameters
[out]Theraw value with variable solved if any.
[in]raw_valueThe string to solve.
[in]factoryThe application factory.