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

◆ invoke_influence()

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

Influence: push the current view to every view target, then run the inherited influence path.

Sets the stored ViewTransform on each render processor in view_targets(), then fires the inherited influence callable with ctx and dispatches the Locus's audio and render sinks and its attachment. Everything under this Locus's influence is seen from its viewpoint, and an attached buffer that is also a view target is placed over the fresh view.

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

Reimplemented from MayaFlux::Nexus::Agent.

Definition at line 63 of file Locus.cpp.

64{
65 for (const auto& proc : m_view_targets) {
66 if (proc) {
67 proc->set_view_transform(m_view);
68 }
69 }
70
72}
virtual void invoke_influence(const InfluenceContext &ctx) const
Invoke the influence function with the supplied context.
Definition Agent.hpp:365
std::vector< std::shared_ptr< Buffers::RenderProcessor > > m_view_targets
Definition Locus.hpp:176
Kinesis::ViewTransform m_view
Definition Locus.hpp:174

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

+ Here is the call graph for this function: