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

Public Member Functions

void init (bool is_translation_varying, bool is_rotation_varying, bool is_scale_varying)
 
void set_translation (const GMathVec3d &translation, unsigned int index=0)
 
void set_translation (const GMathVec3f &translation, unsigned int index=0)
 
void set_translations (const CoreBasicArray< GMathVec3d > &translations)
 
void set_translations (const CoreBasicArray< GMathVec3f > &translations)
 
void set_rotation (const GMathQuath &rotation, unsigned int index=0)
 
void set_rotation (const GMathQuatf &rotation, unsigned int index=0)
 
void set_rotation (const GMathQuatd &rotation, unsigned int index=0)
 
void set_rotation (const GMathMatrix3x3f &rotation, unsigned int index=0)
 
void set_rotation (const GMathMatrix3x3d &rotation, unsigned int index=0)
 
void set_rotations (const CoreBasicArray< GMathQuath > &rotations)
 
void set_rotations (const CoreBasicArray< GMathQuatf > &rotations)
 
void set_rotations (const CoreBasicArray< GMathQuatd > &rotations)
 
void set_rotations (const CoreBasicArray< GMathMatrix3x3f > &rotations)
 
void set_rotations (const CoreBasicArray< GMathMatrix3x3d > &rotations)
 
void set_scale (const GMathVec3d &scale, unsigned int index=0)
 
void set_scale (const GMathVec3f &scale, unsigned int index=0)
 
void set_scales (const CoreBasicArray< GMathVec3d > &scales)
 
void set_scales (const CoreBasicArray< GMathVec3f > &scales)
 

Friends

class ModuleSceneObjectTree
 

Detailed Description

Thin wrapper used to set the instances' transforms in ModuleSceneObjectTreeCallbacks::cb_get_instances_transforms and ModuleSceneObjectTreeCallbacks::cb_get_instances_transforms_at

Member Function Documentation

void ModuleSceneObjectTreeTransforms::init ( bool  is_translation_varying,
bool  is_rotation_varying,
bool  is_scale_varying 
)

Initiliaze the transforms data. This must be called before setting the actual data.

Parameters
is_translation_varyingIf true, we have 1 translation per decimated instance otherwise we only have 1 optional translation.
is_rotation_varyingIf true, we have 1 rotation per decimated instance otherwise we only have 1 optional rotation.
is_scale_varyingIf true, we have 1 scale per decimated instance otherwise we only have 1 optional scale.
void ModuleSceneObjectTreeTransforms::set_rotation ( const GMathQuath &  rotation,
unsigned int  index = 0 
)

Set a single rotation in case of uniform or varying rotations. index is ignored and should be omitted in case of uniform rotations, otherwise it must be a valid instance index.

void ModuleSceneObjectTreeTransforms::set_rotation ( const GMathQuatf &  rotation,
unsigned int  index = 0 
)

Set a single rotation in case of uniform or varying rotations. index is ignored and should be omitted in case of uniform rotations, otherwise it must be a valid instance index.

void ModuleSceneObjectTreeTransforms::set_rotation ( const GMathQuatd &  rotation,
unsigned int  index = 0 
)

Set a single rotation in case of uniform or varying rotations. index is ignored and should be omitted in case of uniform rotations, otherwise it must be a valid instance index.

void ModuleSceneObjectTreeTransforms::set_rotation ( const GMathMatrix3x3f &  rotation,
unsigned int  index = 0 
)

Set a single rotation in case of uniform or varying rotations. index is ignored and should be omitted in case of uniform rotations, otherwise it must be a valid instance index.

void ModuleSceneObjectTreeTransforms::set_rotation ( const GMathMatrix3x3d &  rotation,
unsigned int  index = 0 
)

Set a single rotation in case of uniform or varying rotations. index is ignored and should be omitted in case of uniform rotations, otherwise it must be a valid instance index.

void ModuleSceneObjectTreeTransforms::set_rotations ( const CoreBasicArray< GMathQuath > &  rotations)

Set all rotations, in case of varying rotations. The number of rotations must match either the number of raw instances (before decimation) or instances (after decimation).

void ModuleSceneObjectTreeTransforms::set_rotations ( const CoreBasicArray< GMathQuatf > &  rotations)

Set all rotations, in case of varying rotations. The number of rotations must match either the number of raw instances (before decimation) or instances (after decimation).

void ModuleSceneObjectTreeTransforms::set_rotations ( const CoreBasicArray< GMathQuatd > &  rotations)

Set all rotations, in case of varying rotations. The number of rotations must match either the number of raw instances (before decimation) or instances (after decimation).

void ModuleSceneObjectTreeTransforms::set_rotations ( const CoreBasicArray< GMathMatrix3x3f > &  rotations)

Set all rotations, in case of varying rotations. The number of rotations must match either the number of raw instances (before decimation) or instances (after decimation).

void ModuleSceneObjectTreeTransforms::set_rotations ( const CoreBasicArray< GMathMatrix3x3d > &  rotations)

Set all rotations, in case of varying rotations. The number of rotations must match either the number of raw instances (before decimation) or instances (after decimation).

void ModuleSceneObjectTreeTransforms::set_scale ( const GMathVec3d &  scale,
unsigned int  index = 0 
)

Set a single scale in case of uniform or varying scales. index is ignored and should be omitted in case of uniform scales, otherwise it must be a valid instance index.

void ModuleSceneObjectTreeTransforms::set_scale ( const GMathVec3f &  scale,
unsigned int  index = 0 
)

Set a single scale in case of uniform or varying scales. index is ignored and should be omitted in case of uniform scales, otherwise it must be a valid instance index.

void ModuleSceneObjectTreeTransforms::set_scales ( const CoreBasicArray< GMathVec3d > &  scales)

Set all scales, in case of varying scales. The number of scales must match either the number of raw instances (before decimation) or instances (after decimation).

void ModuleSceneObjectTreeTransforms::set_scales ( const CoreBasicArray< GMathVec3f > &  scales)

Set all scales, in case of varying scales. The number of scales must match either the number of raw instances (before decimation) or instances (after decimation).

void ModuleSceneObjectTreeTransforms::set_translation ( const GMathVec3d &  translation,
unsigned int  index = 0 
)

Set a single translation in case of uniform or varying translations. index is ignored and should be omitted in case of uniform translations, otherwise it must be a valid instance index.

void ModuleSceneObjectTreeTransforms::set_translation ( const GMathVec3f &  translation,
unsigned int  index = 0 
)

Set a single translation in case of uniform or varying translations. index is ignored and should be omitted in case of uniform translations, otherwise it must be a valid instance index.

void ModuleSceneObjectTreeTransforms::set_translations ( const CoreBasicArray< GMathVec3d > &  translations)

Set all translations, in case of varying translations. The number of translations must match either the number of raw instances (before decimation) or instances (after decimation).

void ModuleSceneObjectTreeTransforms::set_translations ( const CoreBasicArray< GMathVec3f > &  translations)

Set all translations, in case of varying translations. The number of translations must match either the number of raw instances (before decimation) or instances (after decimation).