Blender V2.61 - r43446
Public Member Functions | Public Attributes

ShaderNode Class Reference

#include <graph.h>

Inheritance diagram for ShaderNode:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 ShaderNode (const char *name)
virtual ~ShaderNode ()
ShaderInputinput (const char *name)
ShaderOutputoutput (const char *name)
ShaderInputadd_input (const char *name, ShaderSocketType type, float value=0.0f)
ShaderInputadd_input (const char *name, ShaderSocketType type, float3 value)
ShaderInputadd_input (const char *name, ShaderSocketType type, ShaderInput::DefaultValue value, bool osl_only=false)
ShaderOutputadd_output (const char *name, ShaderSocketType type)
virtual ShaderNodeclone () const =0
virtual void attributes (AttributeRequestSet *attributes)
virtual void compile (SVMCompiler &compiler)=0
virtual void compile (OSLCompiler &compiler)=0

Public Attributes

vector< ShaderInput * > inputs
vector< ShaderOutput * > outputs
ustring name
int id
ShaderBump bump

Detailed Description

Definition at line 146 of file graph.h.


Constructor & Destructor Documentation

ShaderNode::ShaderNode ( const char *  name)

Definition at line 53 of file graph.cpp.

References bump, name, and SHADER_BUMP_NONE.

ShaderNode::~ShaderNode ( ) [virtual]

Definition at line 60 of file graph.cpp.

References inputs, and outputs.


Member Function Documentation

ShaderInput * ShaderNode::add_input ( const char *  name,
ShaderSocketType  type,
float  value = 0.0f 
)

Definition at line 87 of file graph.cpp.

References input(), inputs, ShaderInput::value, and float3::x.

Referenced by add_input(), ConvertNode::ConvertNode(), and ProxyNode::ProxyNode().

ShaderInput * ShaderNode::add_input ( const char *  name,
ShaderSocketType  type,
float3  value 
)

Definition at line 95 of file graph.cpp.

References input(), inputs, and ShaderInput::value.

ShaderInput * ShaderNode::add_input ( const char *  name,
ShaderSocketType  type,
ShaderInput::DefaultValue  value,
bool  osl_only = false 
)

Definition at line 103 of file graph.cpp.

References add_input(), ShaderInput::default_value, input(), and ShaderInput::osl_only.

ShaderOutput * ShaderNode::add_output ( const char *  name,
ShaderSocketType  type 
)

Definition at line 111 of file graph.cpp.

References output(), and outputs.

Referenced by ConvertNode::ConvertNode(), and ProxyNode::ProxyNode().

void ShaderNode::attributes ( AttributeRequestSet attributes) [virtual]
virtual ShaderNode* ShaderNode::clone ( ) const [pure virtual]
virtual void ShaderNode::compile ( OSLCompiler compiler) [pure virtual]
virtual void ShaderNode::compile ( SVMCompiler compiler) [pure virtual]
ShaderInput * ShaderNode::input ( const char *  name)
ShaderOutput * ShaderNode::output ( const char *  name)

Member Data Documentation

Definition at line 169 of file graph.h.

Referenced by ShaderNode().


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