HDK
|
#include <ShaderNode.h>
Public Member Functions | |
ShaderPort (ShaderNode *node, const TypeDesc *type, const string &name, ValuePtr value=nullptr) | |
Constructor. More... | |
ShaderPortPtr | getSelf () |
Return a shared pointer instance of this object. More... | |
ShaderNode * | getNode () |
Return the node this port belongs to. More... | |
const ShaderNode * | getNode () const |
Return the node this port belongs to. More... | |
void | setType (const TypeDesc *type) |
Set the data type for this port. More... | |
const TypeDesc * | getType () const |
Return the data type for this port. More... | |
void | setName (const string &name) |
Set the name of this port. More... | |
const string & | getName () const |
Return the name of this port. More... | |
string | getFullName () const |
Return the name of this port. More... | |
void | setVariable (const string &name) |
Set the variable name of this port. More... | |
const string & | getVariable () const |
Return the variable name of this port. More... | |
void | setSemantic (const string &semantic) |
Set the variable semantic of this port. More... | |
const string & | getSemantic () const |
Return the variable semantic of this port. More... | |
void | setValue (ValuePtr value) |
Set a value on this port. More... | |
ValuePtr | getValue () const |
Return the value set on this port. More... | |
void | setColorSpace (const string &colorspace) |
Set a source color space for the value on this port. More... | |
const string & | getColorSpace () const |
Return the source color space for the value on this port. More... | |
void | setUnit (const string &unit) |
Set a unit type for the value on this port. More... | |
const string & | getUnit () const |
Return the unit type for the value on this port. More... | |
void | setGeomProp (const string &geomprop) |
const string & | getGeomProp () const |
Get geomprop name. More... | |
void | setPath (const string &path) |
Set the path to this port. More... | |
const string & | getPath () const |
Return the path to this port. More... | |
void | setFlags (uint32_t flags) |
Set flags on this port. More... | |
uint32_t | getFlags () const |
Return flags set on this port. More... | |
void | setFlag (uint32_t flag, bool value) |
Set the on|off state of a given flag. More... | |
bool | getFlag (uint32_t flag) const |
Return the on|off state of a given flag. More... | |
void | setUniform () |
Set the uniform flag this port to true. More... | |
bool | isUniform () const |
Return the uniform flag on this port. More... | |
void | setEmitted () |
Set the emitted state on this port to true. More... | |
bool | isEmitted () const |
Return the emitted state of this port. More... | |
void | setBindInput () |
Set the bind input state on this port to true. More... | |
bool | isBindInput () const |
Return the emitted state of this port. More... | |
void | setMetadata (ShaderMetadataVecPtr metadata) |
Set the metadata vector. More... | |
ShaderMetadataVecPtr | getMetadata () |
Get the metadata vector. More... | |
const ShaderMetadataVecPtr & | getMetadata () const |
Get the metadata vector. More... | |
Protected Attributes | |
ShaderNode * | _node |
const TypeDesc * | _type |
string | _name |
string | _path |
string | _semantic |
string | _variable |
ValuePtr | _value |
string | _unit |
string | _colorspace |
string | _geomprop |
ShaderMetadataVecPtr | _metadata |
uint32_t | _flags |
An input or output port on a ShaderNode
Definition at line 123 of file ShaderNode.h.
ShaderPort::ShaderPort | ( | ShaderNode * | node, |
const TypeDesc * | type, | ||
const string & | name, | ||
ValuePtr | value = nullptr |
||
) |
Constructor.
Return the source color space for the value on this port.
Definition at line 178 of file ShaderNode.h.
|
inline |
Return the on|off state of a given flag.
Definition at line 212 of file ShaderNode.h.
|
inline |
Return flags set on this port.
Definition at line 203 of file ShaderNode.h.
string ShaderPort::getFullName | ( | ) | const |
Return the name of this port.
Get geomprop name.
Definition at line 191 of file ShaderNode.h.
|
inline |
Get the metadata vector.
Definition at line 239 of file ShaderNode.h.
|
inline |
Get the metadata vector.
Definition at line 242 of file ShaderNode.h.
Return the name of this port.
Definition at line 151 of file ShaderNode.h.
|
inline |
Return the node this port belongs to.
Definition at line 136 of file ShaderNode.h.
|
inline |
Return the node this port belongs to.
Definition at line 139 of file ShaderNode.h.
Return the path to this port.
Definition at line 197 of file ShaderNode.h.
|
inline |
Return a shared pointer instance of this object.
Definition at line 130 of file ShaderNode.h.
Return the variable semantic of this port.
Definition at line 166 of file ShaderNode.h.
Return the data type for this port.
Definition at line 145 of file ShaderNode.h.
Return the unit type for the value on this port.
Definition at line 184 of file ShaderNode.h.
|
inline |
Return the value set on this port.
Definition at line 172 of file ShaderNode.h.
Return the variable name of this port.
Definition at line 160 of file ShaderNode.h.
|
inline |
Return the emitted state of this port.
Definition at line 233 of file ShaderNode.h.
|
inline |
Return the emitted state of this port.
Definition at line 227 of file ShaderNode.h.
|
inline |
Return the uniform flag on this port.
Definition at line 221 of file ShaderNode.h.
|
inline |
Set the bind input state on this port to true.
Definition at line 230 of file ShaderNode.h.
Set a source color space for the value on this port.
Definition at line 175 of file ShaderNode.h.
|
inline |
Set the emitted state on this port to true.
Definition at line 224 of file ShaderNode.h.
|
inline |
Set the on|off state of a given flag.
Definition at line 206 of file ShaderNode.h.
|
inline |
Set flags on this port.
Definition at line 200 of file ShaderNode.h.
Set geomprop name if the input has a default geomprop to be assigned when it is unconnected.
Definition at line 188 of file ShaderNode.h.
|
inline |
Set the metadata vector.
Definition at line 236 of file ShaderNode.h.
Set the name of this port.
Definition at line 148 of file ShaderNode.h.
Set the path to this port.
Definition at line 194 of file ShaderNode.h.
Set the variable semantic of this port.
Definition at line 163 of file ShaderNode.h.
Set the data type for this port.
Definition at line 142 of file ShaderNode.h.
|
inline |
Set the uniform flag this port to true.
Definition at line 218 of file ShaderNode.h.
Set a unit type for the value on this port.
Definition at line 181 of file ShaderNode.h.
Set a value on this port.
Definition at line 169 of file ShaderNode.h.
Set the variable name of this port.
Definition at line 157 of file ShaderNode.h.
|
protected |
Definition at line 253 of file ShaderNode.h.
|
protected |
Definition at line 256 of file ShaderNode.h.
|
protected |
Definition at line 254 of file ShaderNode.h.
|
protected |
Definition at line 255 of file ShaderNode.h.
|
protected |
Definition at line 247 of file ShaderNode.h.
|
protected |
Definition at line 245 of file ShaderNode.h.
|
protected |
Definition at line 248 of file ShaderNode.h.
|
protected |
Definition at line 249 of file ShaderNode.h.
Definition at line 246 of file ShaderNode.h.
|
protected |
Definition at line 252 of file ShaderNode.h.
|
protected |
Definition at line 251 of file ShaderNode.h.
|
protected |
Definition at line 250 of file ShaderNode.h.