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

◆ bind_force()

template<typename Operator >
Influence< Kinesis::VectorField >::Target MayaFlux::Nexus::bind_force ( const Operator &  op)

Target that feeds an influence of vector fields into a PhysicsOperator as a force.

Parameters
opPhysicsOperator, as a raw pointer from create_operator or a shared_ptr.

Adds one forwarding force field now, and every time the influence runs the target replaces what that field forwards to. Force fields already added to op are left alone. The operator is not retained.

Definition at line 67 of file FieldTargets.hpp.

68{
69 auto cell = std::make_shared<Kinesis::VectorField>();
70 op->add_force_field(detail::forwarding(cell));
71 return [cell](const Kinesis::VectorField& field) { *cell = field; };
72}
Typed, composable, stateless callable from domain D to range R.
Definition Tendency.hpp:22

References MayaFlux::Nexus::detail::forwarding().

+ Here is the call graph for this function: