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

◆ Locus() [2/2]

MayaFlux::Nexus::Locus::Locus ( const Kinesis::NavigationConfig config,
float  query_radius,
std::string  perception_fn_name,
PerceptionFn  perception,
std::string  influence_fn_name,
InfluenceFn  influence 
)

Construct from a NavigationConfig with named perception and influence functions.

Parameters
configInitial navigation configuration. eye seeds the position.
query_radiusRadius passed to the spatial index on each commit.
perception_fn_nameIdentifier for the perception function.
perceptionUser perception callable, fired before the view integrates.
influence_fn_nameIdentifier for the influence function.
influenceUser influence callable, fired before the view is pushed.

Definition at line 18 of file Locus.cpp.

23 std::move(perception_fn_name), std::move(perception),
24 std::move(influence_fn_name), std::move(influence))
26{
29}
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
void set_position(const glm::vec3 &p)
Set the position, enabling spatial indexing and queries for this object.
Definition Agent.hpp:95
Kinesis::NavigationState m_nav
Definition Locus.hpp:172
Kinesis::ViewTransform m_view
Definition Locus.hpp:173
NavigationState make_navigation_state(const NavigationConfig &config)
Construct a NavigationState from a NavigationConfig.
ViewTransform compute_view_transform(NavigationState &st, float aspect)
Compute a ViewTransform from the current NavigationState.

References MayaFlux::Kinesis::compute_view_transform(), MayaFlux::Kinesis::NavigationState::eye, m_aspect, m_nav, m_view, and MayaFlux::Nexus::Agent::set_position().

+ Here is the call graph for this function: