#include <contextmenuevent.h>
Public Member Functions | |
ContextMenuEvent (std::string_view id, InteractionEvent *event) | |
ContextMenuEvent (std::string_view id, std::unique_ptr< InteractionEvent > event) | |
ContextMenuEvent (const ContextMenuEvent &rhs) | |
ContextMenuEvent (ContextMenuEvent &&)=default | |
ContextMenuEvent & | operator= (const ContextMenuEvent &that) |
ContextMenuEvent & | operator= (ContextMenuEvent &&)=default |
virtual ContextMenuEvent * | clone () const override |
std::string_view | getId () const |
virtual uint64_t | hash () const override |
InteractionEvent * | getEvent () const |
template<typename EventType> | |
EventType * | getEventAs () const |
![]() | |
virtual bool | shouldPropagateTo (Inport *inport, Processor *processor, Outport *source) |
bool | markAsUsed () |
bool | markAsUnused () |
bool | setUsed (bool isUsed) |
bool | hasBeenUsed () const |
bool | markAsVisited (Processor *) |
void | markAsVisited (Event &) |
bool | hasVisitedProcessor (Processor *) const |
const std::vector< Processor * > & | getVisitedProcessors () const |
template<typename EventType> | |
EventType * | getAs () |
template<typename EventType> | |
const EventType * | getAs () const |
virtual void | print (std::ostream &ss) const |
Static Public Member Functions | |
static constexpr uint64_t | chash () |
Additional Inherited Members | |
![]() | |
Event (const Event &rhs)=default | |
Event & | operator= (const Event &that)=default |
A ContextMenuEvent is triggered when a custom context menu entry is selected.
|
overridevirtual |
Implements inviwo::Event.
std::string_view inviwo::ContextMenuEvent::getId | ( | ) | const |
ID of the triggered context menu action
|
overridevirtual |
Implements inviwo::Event.