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

#include <BRAY_Interface.h>

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 BRAY_ShaderGraph * graphPtr () const

Detailed Description

Definition at line 1084 of file BRAY_Interface.h.

Constructor & Destructor Documentation

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

Definition at line 1087 of file BRAY_Interface.h.

BRAY::ShaderGraphPtr::~ShaderGraphPtr ( )

Definition at line 1090 of file BRAY_Interface.h.

Member Function Documentation

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.

const BRAY_ShaderGraph* BRAY::ShaderGraphPtr::graphPtr ( ) const

Access to the underlying object

Definition at line 1094 of file BRAY_Interface.h.

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.

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