All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
MatfiltVstructConditionalEvaluator Class Reference

Parses and evaluates a single expression of "virtual struct conditional grammar". More...

Public Types

typedef std::shared_ptr
< MatfiltVstructConditionalEvaluator
Ptr
 
typedef std::shared_ptr
< MatfiltVstructConditionalEvaluator
Ptr
 

Public Member Functions

void Evaluate (const SdfPath &nodeId, const TfToken &nodeInputId, const SdfPath &upstreamNodeId, const TfToken &upstreamNodeOutput, const NdrTokenVec &shaderTypePriority, MatfiltNetwork &network) const
 Runs the conditional actions specified by the parsed inputExpr. More...
 
void Evaluate (const SdfPath &nodeId, const TfToken &nodeInputId, const SdfPath &upstreamNodeId, const TfToken &upstreamNodeOutput, const NdrTokenVec &shaderTypePriority, MatfiltNetwork &network) const
 Runs the conditional actions specified by the parsed inputExpr. More...
 

Static Public Member Functions

static Ptr Parse (const std::string &inputExpr)
 
static Ptr Parse (const std::string &inputExpr)
 

Detailed Description

Parses and evaluates a single expression of "virtual struct conditional grammar".

This is used internally by MatfiltResolveVstructs but is available to facilitate unit testing.

Definition at line 53 of file matfiltResolveVstructs.h.

Member Function Documentation

void Evaluate ( const SdfPath nodeId,
const TfToken nodeInputId,
const SdfPath upstreamNodeId,
const TfToken upstreamNodeOutput,
const NdrTokenVec &  shaderTypePriority,
MatfiltNetwork network 
) const

Runs the conditional actions specified by the parsed inputExpr.

Because this evaluates the conditional actions (connect, ignore, set constant, copy upstream parameter value), this is sent the context of the current connected nodes as well as the mutable network to directly change.

void Evaluate ( const SdfPath nodeId,
const TfToken nodeInputId,
const SdfPath upstreamNodeId,
const TfToken upstreamNodeOutput,
const NdrTokenVec &  shaderTypePriority,
MatfiltNetwork network 
) const

Runs the conditional actions specified by the parsed inputExpr.

Because this evaluates the conditional actions (connect, ignore, set constant, copy upstream parameter value), this is sent the context of the current connected nodes as well as the mutable network to directly change.


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