Event¶
-
class
Event
¶ Bases:
TypedReferenceCount
A named event, possibly with parameters. Anyone in any thread may throw an event at any time; there will be one process responsible for reading and dispacting on the events (but not necessarily immediately).
This function use to inherit from Namable, but that makes it too expensive to get its name the Python code. Now it just copies the Namable interface in.
Inheritance diagram
-
Event
(std::string const &event_name, EventReceiver *receiver = nullptr)¶
-
void
add_parameter
(EventParameter const &obj)¶
-
void
clear_name
(void)¶ Resets the Event’s name to empty.
-
void
clear_receiver
(void)¶
-
static TypeHandle
get_class_type
(void)¶
-
std::string const &
get_name
(void) const¶
-
int
get_num_parameters
(void) const¶
-
EventParameter
get_parameter
(int n) const¶
-
EventReceiver *
get_receiver
(void) const¶
-
bool
has_name
(void) const¶ Returns true if the Event has a nonempty name set, false if the name is empty.
-
bool
has_receiver
(void) const¶
-
void
output
(std::ostream &out) const¶
-
void
set_name
(std::string const &name)¶
-
void
set_receiver
(EventReceiver *receiver)¶
-