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

◆ Presence() [2/2]

MayaFlux::Nexus::Presence::Presence ( float  query_radius,
std::string  perception_fn_name,
PerceptionFn  perception,
std::string  influence_fn_name,
InfluenceFn  influence,
std::string  radiate_fn_name,
RadiateFn  radiate 
)

Construct with all named callables.

Parameters
query_radiusRadius passed to the spatial index on each commit.
perception_fn_nameIdentifier for the perception function.
perceptionUser perception callable.
influence_fn_nameIdentifier for the influence function.
influenceUser influence callable.
radiate_fn_nameIdentifier for the radiation function.
radiateInvoked per neighbor inside the falloff radius.

Definition at line 26 of file Presence.cpp.

31 std::move(perception_fn_name), std::move(perception),
32 std::move(influence_fn_name), std::move(influence))
33 , m_falloff(linear_falloff)
35 , m_radiate(std::move(radiate))
36{
37}
Agent(float query_radius, PerceptionFn perception, InfluenceFn influence)
Construct with query radius, perception function, and influence function.
Definition Agent.hpp:40
const std::string & influence_fn_name() const
Identifier assigned to the influence function, empty if anonymous.
Definition Agent.hpp:72
const std::string & perception_fn_name() const
Identifier assigned to the perception function, empty if anonymous.
Definition Agent.hpp:69
float query_radius() const
Return the query radius.
Definition Agent.hpp:105
std::string m_radiate_fn_name
Definition Presence.hpp:165
const std::string & radiate_fn_name() const
Identifier for the radiate callable, empty if anonymous.
Definition Presence.hpp:130