|
HDK
|
#include <PDG_AttributeInfo.h>
Classes | |
| struct | Config |
| struct | ExprData |
Public Types | |
| enum | AttribOrigin { eOriginNone = 0x0, eOriginGenerate = 0x1, eOriginCook = 0x2, eOriginExpected = 0x4, eOriginGenerateExpected = eOriginGenerate | eOriginExpected } |
| Whether the attributes is create/used in the generate/cook stage. More... | |
Public Member Functions | |
| PDG_AttributeInfo () | |
| Default attribute origins are initialized to static. More... | |
| void | reset () |
| void | addOutputAttribs (const Config &attrib_config) |
| Adds the attributes from the maap to the output map of this object. More... | |
| void | addInputAttribs (const Config &attrib_config) |
| Adds attributes that are consumed by this object. More... | |
| void | addUpstreamAttribs (const PDG_AttributeInfo &info, bool dynamic_generator) |
| void | processExpressionAttribs (const PDG_NodeInterface *node_interface, const UT_ArrayStringMap< int > &ports) |
| Copies expression attributes to inputs based on the port map. More... | |
| bool | checkNeedsDynamic (bool require_inputs) const |
| const Config & | outputAttributes () const |
| const Config & | inputAttributes () const |
| Returns the attributes referenced or use during the current cook. More... | |
| const Config & | upstreamAttributes () const |
Static Public Member Functions | |
| static bool | fromJSON (Config &config, const UT_JSONValueArray &json_array, UT_WorkBuffer &errors) |
| Loads a Config object from a JSON array. More... | |
Stores information about the attributes needed and created by a node
Definition at line 26 of file PDG_AttributeInfo.h.
Whether the attributes is create/used in the generate/cook stage.
| Enumerator | |
|---|---|
| eOriginNone | |
| eOriginGenerate | |
| eOriginCook | |
| eOriginExpected | |
| eOriginGenerateExpected | |
Definition at line 30 of file PDG_AttributeInfo.h.
| PDG_AttributeInfo::PDG_AttributeInfo | ( | ) |
Default attribute origins are initialized to static.
Adds attributes that are consumed by this object.
Adds the attributes from the maap to the output map of this object.
| void PDG_AttributeInfo::addUpstreamAttribs | ( | const PDG_AttributeInfo & | info, |
| bool | dynamic_generator | ||
| ) |
Adds the input attributes from the attribute info to the input map of this object
| bool PDG_AttributeInfo::checkNeedsDynamic | ( | bool | require_inputs | ) | const |
Returns true if the node needs to be dynamic in order to access the attributes it needs to generate.
|
static |
Loads a Config object from a JSON array.
|
inline |
Returns the attributes referenced or use during the current cook.
Definition at line 95 of file PDG_AttributeInfo.h.
|
inline |
Returns the output attribute map, i.e. attributes produced by the node that owns this object
Definition at line 91 of file PDG_AttributeInfo.h.
| void PDG_AttributeInfo::processExpressionAttribs | ( | const PDG_NodeInterface * | node_interface, |
| const UT_ArrayStringMap< int > & | ports | ||
| ) |
Copies expression attributes to inputs based on the port map.
| void PDG_AttributeInfo::reset | ( | ) |
Resets the internal structures of this object. Called during a cook, so the info can be re-filled from the inputs, node options and parms
|
inline |
Returns the upstream attribute map, i.e. the total set of all upstream attributes that might be available to work items in this node.
Definition at line 100 of file PDG_AttributeInfo.h.