Inviwo  0.9.10.1
Inviwo documentation
inviwo::Event Class Referenceabstract

#include <event.h>

+ Inheritance diagram for inviwo::Event:

Public Member Functions

virtual Eventclone () const =0
 
virtual uint64_t hash () const =0
 
virtual bool shouldPropagateTo (Inport *inport, Processor *processor, Outport *source)
 
void markAsUsed ()
 
bool hasBeenUsed () const
 
void markAsUnused ()
 
void 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
 

Protected Member Functions

 Event (const Event &rhs)=default
 
Eventoperator= (const Event &that)=default
 

Friends

std::ostream & operator<< (std::ostream &ss, const Event &e)
 

Detailed Description

Events are propagated upwards in the ProcessorNetwork through ports of processors until they are marked as used or reach a SourceProcessor.

Member Function Documentation

◆ shouldPropagateTo()

bool inviwo::Event::shouldPropagateTo ( Inport inport,
Processor processor,
Outport source 
)
virtual

Determine if the event should be propagated upwards to inport. Can be overloaded to limit the number or ports a event is propagated through.

Reimplemented in inviwo::ResizeEvent.


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