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_Array< const NodeDecl * > & | allNodes () |
static const NodeDecl * | findNode (const UT_StringRef &name) |
Friends | |
class | MaterialPtr |
class | LightPtr |
Definition at line 1350 of file BRAY_Interface.h.
|
inline |
Definition at line 1353 of file BRAY_Interface.h.
|
inline |
Definition at line 1356 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()
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.
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 1456 of file BRAY_Interface.h.
|
friend |
Definition at line 1455 of file BRAY_Interface.h.