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

ShaderInput Class Reference

#include <graph.h>

List of all members.

Public Types

enum  DefaultValue {
  TEXTURE_GENERATED, TEXTURE_UV, INCOMING, NORMAL,
  POSITION, NONE
}

Public Member Functions

 ShaderInput (ShaderNode *parent, const char *name, ShaderSocketType type)
void set (const float3 &v)
void set (float f)

Public Attributes

const char * name
ShaderSocketType type
ShaderNodeparent
ShaderOutputlink
DefaultValue default_value
float3 value
int stack_offset
bool osl_only

Detailed Description

Definition at line 96 of file graph.h.


Member Enumeration Documentation

Enumerator:
TEXTURE_GENERATED 
TEXTURE_UV 
INCOMING 
NORMAL 
POSITION 
NONE 

Definition at line 98 of file graph.h.


Constructor & Destructor Documentation

CCL_NAMESPACE_BEGIN ShaderInput::ShaderInput ( ShaderNode parent,
const char *  name,
ShaderSocketType  type 
)

Definition at line 31 of file graph.cpp.

References default_value, link, make_float3(), name, NONE, NULL, osl_only, parent, stack_offset, SVM_STACK_INVALID, type, and value.


Member Function Documentation

void ShaderInput::set ( const float3 v) [inline]

Definition at line 108 of file graph.h.

References value.

Referenced by ShaderGraph::remove_proxy_nodes(), and set_default_value().

void ShaderInput::set ( float  f) [inline]

Definition at line 109 of file graph.h.

References make_float3(), and value.


Member Data Documentation

const char* ShaderInput::name

Definition at line 111 of file graph.h.

Referenced by ShaderGraph::copy_nodes(), ShaderNode::input(), and ShaderInput().

Definition at line 121 of file graph.h.

Referenced by ShaderNode::add_input(), ShaderGraph::default_inputs(), and ShaderInput().

Definition at line 114 of file graph.h.

Referenced by ShaderGraph::copy_nodes(), and ShaderInput().


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