HDK
|
#include <BRAY_Interface.h>
Public Member Functions | |
LightPtr (const UT_SharedPtr< BRAY_Light > &lp=UT_SharedPtr< BRAY_Light >()) | |
~LightPtr () | |
bool | isValid () const |
Test validity. More... | |
BRAY_LightType | type () const |
Return the type of light. More... | |
void | setTransform (const SpacePtr &xforms) |
Set the transform on the instance. 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... | |
OptionSet | lightProperties () |
Get the current light properties for modification. 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 () |
Protected Attributes | |
UT_SharedPtr< BRAY_Light > | myLight |
Definition at line 740 of file BRAY_Interface.h.
|
inline |
Definition at line 743 of file BRAY_Interface.h.
BRAY::LightPtr::~LightPtr | ( | ) |
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 750 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 755 of file BRAY_Interface.h.
|
inline |
Access to the underlying object
Definition at line 756 of file BRAY_Interface.h.
OptionSet BRAY::LightPtr::objectProperties | ( | ) |
Get the current object properties for modification.
|
inline |
Access to the underlying object
Definition at line 754 of file BRAY_Interface.h.
void BRAY::LightPtr::setShader | ( | const ScenePtr & | scene, |
const UT_StringArray & | args | ||
) |
Set the shader for 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.
|
protected |
Definition at line 793 of file BRAY_Interface.h.