HDK
|
#include <BRAY_Interface.h>
Public Member Functions | |
LightPtr (const UT_SharedPtr< BRAY_Light > &lp=UT_SharedPtr< BRAY_Light >()) | |
~LightPtr () override | |
bool | isValid () const |
Test validity. More... | |
BRAY_LightType | type () const |
Return the type of light. More... | |
const UT_StringHolder & | name () const |
Return the name of the light. More... | |
SpacePtr | transform () const |
Return the transform of the light. More... | |
void | setTransform (const SpacePtr &xforms) |
Set the transform of the light. More... | |
void | setShader (const ScenePtr &scene, const UT_StringArray &args) |
Set the shader for the light. More... | |
OptionSet | objectProperties () |
Get the current object properties for modification. More... | |
void | setObjectProperties (const OptionSet &oprops) |
Set the object properties. More... | |
OptionSet | lightProperties () |
Get the current light properties for modification. More... | |
void | setLightProperties (const OptionSet &lprops) |
Set the light properties. More... | |
void | commitOptions (ScenePtr &scene) |
After changing any options, must lock prior to rendering. More... | |
void | updateShaderGraph (const ScenePtr &scene, const ShaderGraphPtr &graphptr, const UT_Array< ShaderGraphPtr > &light_filters) |
Update the light shader graph. More... | |
void | updateFilters (const ScenePtr &scene, const UT_Array< ShaderGraphPtr > &filters) |
void | eraseFilter (const ScenePtr &scene, const UT_StringRef &shader_graph_name) |
Notify the light that a filter has been deleted. More... | |
SYS_SAFE_BOOL | operator bool () const |
const BRAY_Light * | lightPtr () const |
BRAY_Light * | lightPtr () |
Public Member Functions inherited from BRAY::InstancablePtr | |
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< BRAY_Light > | myLight |
Friends | |
class | LightInstancer |
Definition at line 870 of file BRAY_Interface.h.
|
inline |
Definition at line 873 of file BRAY_Interface.h.
|
override |
|
inlinestatic |
Test if Instancable is of this type.
Definition at line 881 of file BRAY_Interface.h.
After changing any options, must lock prior to rendering.
void BRAY::LightPtr::eraseFilter | ( | const ScenePtr & | scene, |
const UT_StringRef & | shader_graph_name | ||
) |
Notify the light that a filter has been deleted.
|
inline |
Test validity.
Definition at line 887 of file BRAY_Interface.h.
OptionSet BRAY::LightPtr::lightProperties | ( | ) |
Get the current light properties for modification.
|
inline |
Access to the underlying object
Definition at line 892 of file BRAY_Interface.h.
|
inline |
Access to the underlying object
Definition at line 893 of file BRAY_Interface.h.
const UT_StringHolder& BRAY::LightPtr::name | ( | ) | const |
Return the name of the light.
OptionSet BRAY::LightPtr::objectProperties | ( | ) |
Get the current object properties for modification.
|
inline |
Access to the underlying object
Definition at line 891 of file BRAY_Interface.h.
void BRAY::LightPtr::setShader | ( | const ScenePtr & | scene, |
const UT_StringArray & | args | ||
) |
Set the shader for the light.
SpacePtr BRAY::LightPtr::transform | ( | ) | const |
Return the transform of the light.
BRAY_LightType BRAY::LightPtr::type | ( | ) | const |
Return the type of light.
void BRAY::LightPtr::updateFilters | ( | const ScenePtr & | scene, |
const UT_Array< ShaderGraphPtr > & | filters | ||
) |
If a light filter has been modified, this method should be called to notify the light. The set should contain the names of the dirty light filter shader graphs.
void BRAY::LightPtr::updateShaderGraph | ( | const ScenePtr & | scene, |
const ShaderGraphPtr & | graphptr, | ||
const UT_Array< ShaderGraphPtr > & | light_filters | ||
) |
Update the light shader graph.
|
friend |
Definition at line 944 of file BRAY_Interface.h.
|
protected |
Definition at line 942 of file BRAY_Interface.h.