HDK
|
#include <BRAY_Interface.h>
Public Member Functions | |
LightInstancerPtr (UT_SharedPtr< LightInstancer > p=nullptr) | |
~LightInstancerPtr () override | |
bool | isValid () const |
SYS_SAFE_BOOL | operator bool () const |
Convenient validity testing. More... | |
const UT_StringHolder & | name () const |
Return the name of the instancer. More... | |
void | setInstanceTransforms (ScenePtr &scene, const UT_Array< SpacePtr > &xforms) |
Set the instance transforms. More... | |
void | setInstanceProperties (ScenePtr &scene, const GT_AttributeListHandle &alist) |
Set the instance properties. More... | |
void | addPrototype (ScenePtr &scene, const LightPtr &light) |
void | addPrototype (ScenePtr &scene, const LightInstancerPtr &inst) |
void | commit (ScenePtr &scene) |
Commit the current prototypes to the scene. More... | |
void | clear (ScenePtr &scene) |
Clear all instances from the Scene. More... | |
![]() | |
InstancablePtr (InstancableType type) | |
virtual | ~InstancablePtr ()=0 |
InstancableType | instancableType () const |
Static Public Member Functions | |
static SYS_FORCE_INLINE bool | classof (const InstancablePtr *o) |
Test if Instancable is of this type. More... | |
Protected Attributes | |
UT_SharedPtr< LightInstancer > | myInstancer |
Friends | |
class | LightInstancer |
Definition at line 947 of file BRAY_Interface.h.
|
inline |
Definition at line 950 of file BRAY_Interface.h.
|
override |
Add a light prototype for instancing If a light prototype with the same name exists, the new prototype is not added, but the instances belonging to that name are updated on the next commit
void BRAY::LightInstancerPtr::addPrototype | ( | ScenePtr & | scene, |
const LightInstancerPtr & | inst | ||
) |
Add a light instancer prototype for instancing If a light prototype with the same name exists, the new prototype is not added, but the instances belonging to that name are updated on the next commit
|
inlinestatic |
Test if Instancable is of this type.
Definition at line 958 of file BRAY_Interface.h.
Commit the current prototypes to the scene.
|
inline |
Definition at line 964 of file BRAY_Interface.h.
const UT_StringHolder& BRAY::LightInstancerPtr::name | ( | ) | const |
Return the name of the instancer.
|
inline |
Convenient validity testing.
Definition at line 967 of file BRAY_Interface.h.
void BRAY::LightInstancerPtr::setInstanceProperties | ( | ScenePtr & | scene, |
const GT_AttributeListHandle & | alist | ||
) |
Set the instance properties.
void BRAY::LightInstancerPtr::setInstanceTransforms | ( | ScenePtr & | scene, |
const UT_Array< SpacePtr > & | xforms | ||
) |
Set the instance transforms.
|
friend |
Definition at line 1003 of file BRAY_Interface.h.
|
protected |
Definition at line 1001 of file BRAY_Interface.h.