Loading...
Searching...
No Matches
MatfiltVstructConditionalEvaluator Class Reference

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

#include <matfiltResolveVstructs.h>

Public Types

typedef std::shared_ptr< MatfiltVstructConditionalEvaluatorPtr
 

Public Member Functions

void Evaluate (const TfToken &nodeId, const TfToken &nodeInputId, const TfToken &upstreamNodeId, const TfToken &upstreamNodeOutput, const NdrTokenVec &shaderTypePriority, HdMaterialNetworkInterface *networkInterface) const
 Runs the conditional actions specified by the parsed inputExpr.
 

Static Public Member Functions

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 49 of file matfiltResolveVstructs.h.

Member Typedef Documentation

◆ Ptr

typedef std::shared_ptr<MatfiltVstructConditionalEvaluator> Ptr

Definition at line 52 of file matfiltResolveVstructs.h.

Member Function Documentation

◆ Evaluate()

void Evaluate ( const TfToken nodeId,
const TfToken nodeInputId,
const TfToken upstreamNodeId,
const TfToken upstreamNodeOutput,
const NdrTokenVec &  shaderTypePriority,
HdMaterialNetworkInterface networkInterface 
) 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 file: