|
MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
|
| std::shared_ptr< Polynomial > MayaFlux::Nodes::Generator::Polynomial::clone | ( | ) | const |
An independent node with the same behaviour and fresh history.
Same mode, buffer size, function, scale and coefficient array as the array stands now, so a state-bearing kernel's clone continues from the current state. History, saved state and hooks are not copied. The input node, if any, is shared. Closure state captured by a function is shared too; the coefficient array is the state that is not.
Attach one clone per channel instead of one node to several.
Definition at line 183 of file Polynomial.cpp.
References MayaFlux::Nodes::Generator::DIRECT, m_buffer_function, m_buffer_size, m_coef_bound, m_coef_direct, m_coef_function, m_coefficients, m_direct_function, m_input_node, m_mode, and m_scale_factor.