Enzo
Loading...
Searching...
No Matches
enzo::nt::CookContext Class Reference

The handle a node holds while it cooks to get context about the network. More...

#include <CookContext.h>

Public Member Functions

 CookContext (enzo::nt::NodeId nodeId, enzo::nt::NetworkManager &networkManager)
 
enzo::NodePacket cloneInputPacket (unsigned int inputIndex)
 
bool hasInput (unsigned int inputIndex)
 
unsigned int getInputCount ()
 
floatT getFrame () const
 Returns the frame the scene sits on.
 
floatT getTime () const
 Returns the scene time in seconds, measured from the start of frame 1.
 
floatT evalParmFloat (std::string_view parmName, const unsigned int index=0) const
 
intT evalParmInt (std::string_view parmName, const unsigned int index=0) const
 
boolT evalParmBool (std::string_view parmName, const unsigned int index=0) const
 
String evalParmString (std::string_view parmName, const unsigned int index=0) const
 
std::vector< floatT > evalParmFloats (std::string_view parmName) const
 
std::vector< intT > evalParmInts (std::string_view parmName) const
 
std::vector< String > evalParmStrings (std::string_view parmName) const
 
Vector2 evalParmVector2 (std::string_view parmName) const
 
Vector3 evalParmVector3 (std::string_view parmName) const
 
enzo::prm::Ramp evalParmRamp (std::string_view parmName) const
 

Detailed Description

The handle a node holds while it cooks to get context about the network.

Carries the runtime context a cook reads from the network, covering parameter values, input geometry and the scene time.

Member Function Documentation

◆ getFrame()

floatT enzo::nt::CookContext::getFrame ( ) const

Returns the frame the scene sits on.

Note
The frame can be fractional.

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