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

◆ invoke_influence()

void MayaFlux::Nexus::Locus::invoke_influence ( const InfluenceContext ctx) const
overridevirtual

Influence: run the user influence callable, then push the current view to every view target.

Fires the inherited influence callable with ctx and dispatches the Locus's audio and render sinks, then sets the stored ViewTransform on each render processor in view_targets(). Everything under this Locus's influence is seen from its viewpoint.

Parameters
ctxInfluence context built by Fabric from the Locus's state.

Reimplemented from MayaFlux::Nexus::Agent.

Definition at line 56 of file Locus.cpp.

57{
59
60 for (const auto& proc : m_view_targets) {
61 if (proc) {
62 proc->set_view_transform(m_view);
63 }
64 }
65}
virtual void invoke_influence(const InfluenceContext &ctx) const
Invoke the influence function with the supplied context.
Definition Agent.hpp:277
std::vector< std::shared_ptr< Buffers::RenderProcessor > > m_view_targets
Definition Locus.hpp:175
Kinesis::ViewTransform m_view
Definition Locus.hpp:173

References MayaFlux::Nexus::Agent::invoke_influence(), m_view, and m_view_targets.

+ Here is the call graph for this function: