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

◆ Expanse() [3/3]

MayaFlux::Nexus::Expanse::Expanse ( std::string  fn_name,
std::string  on_enter_fn_name,
std::string  on_exit_fn_name,
ContainsFn  contains,
CrossingFn  on_enter,
CrossingFn  on_exit 
)
inline

Construct with named containment predicate and named crossing actions.

Parameters
fn_nameIdentifier for the containment predicate.
on_enter_fn_nameIdentifier for the on_enter callable.
on_exit_fn_nameIdentifier for the on_exit callable.
containsReturns true when a world position lies within the Expanse.
on_enterFired with the entity id when it enters. May be empty.
on_exitFired with the entity id when it leaves. May be empty.

Definition at line 73 of file Expanse.hpp.

79 : m_fn_name(std::move(fn_name))
82 , m_contains(std::move(contains))
83 , m_on_enter(std::move(on_enter))
84 , m_on_exit(std::move(on_exit))
85 {
86 }
const std::string & on_enter_fn_name() const
Identifier assigned to the on_enter callable, empty if anonymous.
Definition Expanse.hpp:101
std::string m_on_enter_fn_name
Definition Expanse.hpp:148
const std::string & on_exit_fn_name() const
Identifier assigned to the on_exit callable, empty if anonymous.
Definition Expanse.hpp:107
std::string m_on_exit_fn_name
Definition Expanse.hpp:149
const std::string & fn_name() const
Identifier assigned to the containment predicate, empty if anonymous.
Definition Expanse.hpp:95
bool contains(const glm::vec3 &p) const
Test whether a world position lies within the Expanse.
Definition Expanse.hpp:89