MayaFlux 0.1.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ create_context()

virtual std::unique_ptr< NodeContext > MayaFlux::Nodes::Node::create_context ( double  value)
protectedpure virtual

Creates an appropriate context object for this node type.

Parameters
valueThe current sample value
Returns
A context object containing node-specific information

This method is responsible for creating a NodeContext object (or a derived class) that contains information about the node's current state. The context object is passed to callbacks and conditions to provide them with the information they need to execute properly.

Node implementations should override this method to create a context object that includes all relevant node-specific information.

Implemented in MayaFlux::Nodes::Filters::Filter, MayaFlux::Nodes::Generator::Generator, MayaFlux::Nodes::Generator::Logic, MayaFlux::Nodes::Generator::Polynomial, MayaFlux::Nodes::Generator::Stochastics::Random, MayaFlux::Nodes::BinaryOpNode, MayaFlux::Nodes::GpuSync::GpuSync, and MayaFlux::Nodes::ChainNode.