Inviwo 0.9.12-pre
Inviwo documentation
 
Loading...
Searching...
No Matches
inviwo::ContextMenuEvent Class Reference

#include <contextmenuevent.h>

+ Inheritance diagram for inviwo::ContextMenuEvent:

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
 
ContextMenuEventoperator= (const ContextMenuEvent &that)
 
ContextMenuEventoperator= (ContextMenuEvent &&)=default
 
virtual ContextMenuEventclone () const override
 
std::string_view getId () const
 
virtual uint64_t hash () const override
 
InteractionEventgetEvent () const
 
template<typename EventType>
EventType * getEventAs () const
 
- Public Member Functions inherited from inviwo::Event
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

- Protected Member Functions inherited from inviwo::Event
 Event (const Event &rhs)=default
 
Eventoperator= (const Event &that)=default
 

Detailed Description

A ContextMenuEvent is triggered when a custom context menu entry is selected.

See also
ContextMenuAction

Member Function Documentation

◆ clone()

virtual ContextMenuEvent * inviwo::ContextMenuEvent::clone ( ) const
overridevirtual

Implements inviwo::Event.

◆ getId()

std::string_view inviwo::ContextMenuEvent::getId ( ) const

ID of the triggered context menu action

◆ hash()

virtual uint64_t inviwo::ContextMenuEvent::hash ( ) const
overridevirtual

Implements inviwo::Event.


The documentation for this class was generated from the following file: