|
HDK
|
#include <BRAY_Interface.h>
Classes | |
| class | NodeDecl |
Public Member Functions | |
| ShaderGraphPtr (UT_SharedPtr< BRAY_ShaderGraph > graph) | |
| ~ShaderGraphPtr () | |
| BRAY_ShaderInstance * | createNode (const UT_StringHolder &type, const UT_StringHolder &name) |
| OptionSet | nodeParams (BRAY_ShaderInstance *node) |
| bool | wireNodes (const UT_StringHolder &srcnode, const UT_StringHolder &srcoutput, const UT_StringHolder &dstnode, const UT_StringHolder &dstinput) |
| Make connection between two nodes. More... | |
| const OptionSet | getObjectProperties () const |
| OptionSet | createObjectProperties (const BRAY::ScenePtr &scene) |
| Create object properties for read/write. More... | |
| void | clearObjectProperties () |
| Clear any existing object properties. More... | |
Static Public Member Functions | |
| static const UT_StringHolder & | nodeName (const BRAY_ShaderInstance *n) |
| Return the name of the shader instance. More... | |
| static const UT_StringHolder & | nodeType (const BRAY_ShaderInstance *n) |
| Return the type of the shader instance. More... | |
| static const UT_Array< const NodeDecl * > & | allNodes () |
| static const NodeDecl * | findNode (const UT_StringRef &name) |
Friends | |
| class | MaterialPtr |
| class | LightPtr |
Definition at line 1403 of file BRAY_Interface.h.
|
inline |
Definition at line 1406 of file BRAY_Interface.h.
|
inline |
Definition at line 1409 of file BRAY_Interface.h.
| void BRAY::ShaderGraphPtr::clearObjectProperties | ( | ) |
Clear any existing object properties.
| BRAY_ShaderInstance* BRAY::ShaderGraphPtr::createNode | ( | const UT_StringHolder & | type, |
| const UT_StringHolder & | name | ||
| ) |
Make new node based on type and add to list of nodes in the current graph. Returns NULL if unknown type. Note that the root node (ie with surface/displace output) must be the first node added to the graph.
| OptionSet BRAY::ShaderGraphPtr::createObjectProperties | ( | const BRAY::ScenePtr & | scene | ) |
Create object properties for read/write.
|
static |
| const OptionSet BRAY::ShaderGraphPtr::getObjectProperties | ( | ) | const |
Access the object properties on the shader graph. It's possible the shader graph has no options, so please check isValid()
|
static |
Return the name of the shader instance.
| OptionSet BRAY::ShaderGraphPtr::nodeParams | ( | BRAY_ShaderInstance * | node | ) |
Returns OptionSet that contains input parameters for given shader node. Can be used to read and write values.
|
static |
Return the type of the shader instance.
| bool BRAY::ShaderGraphPtr::wireNodes | ( | const UT_StringHolder & | srcnode, |
| const UT_StringHolder & | srcoutput, | ||
| const UT_StringHolder & | dstnode, | ||
| const UT_StringHolder & | dstinput | ||
| ) |
Make connection between two nodes.
Definition at line 1515 of file BRAY_Interface.h.
|
friend |
Definition at line 1514 of file BRAY_Interface.h.