HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
BRAY::ShaderGraphPtr Class Reference

#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 NodeDeclfindNode (const UT_StringRef &name)
 

Friends

class MaterialPtr
 
class LightPtr
 

Detailed Description

Definition at line 1142 of file BRAY_Interface.h.

Constructor & Destructor Documentation

BRAY::ShaderGraphPtr::ShaderGraphPtr ( UT_SharedPtr< BRAY_ShaderGraph >  graph)
inline

Definition at line 1145 of file BRAY_Interface.h.

BRAY::ShaderGraphPtr::~ShaderGraphPtr ( )
inline

Definition at line 1148 of file BRAY_Interface.h.

Member Function Documentation

static const UT_Array<const NodeDecl *>& BRAY::ShaderGraphPtr::allNodes ( )
static
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 NodeDecl* BRAY::ShaderGraphPtr::findNode ( const UT_StringRef name)
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.

Friends And Related Function Documentation

friend class LightPtr
friend

Definition at line 1248 of file BRAY_Interface.h.

friend class MaterialPtr
friend

Definition at line 1247 of file BRAY_Interface.h.


The documentation for this class was generated from the following file: