Inviwo 0.9.12-pre
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)
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

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

◆ markAsUnused()

bool inviwo::Event::markAsUnused ( )
inline

Returns the previous used state, and sets it to unused;

◆ markAsUsed()

bool inviwo::Event::markAsUsed ( )
inline

Returns the previous used state, and sets it to used;

◆ markAsVisited()

bool inviwo::Event::markAsVisited ( Processor * )

Returns false if the processor was already visited;

◆ setUsed()

bool inviwo::Event::setUsed ( bool isUsed)
inline

Returns the previous used state, and sets it to 'isUsed';

◆ shouldPropagateTo()

virtual 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::RasterizeEvent, and inviwo::ResizeEvent.


The documentation for this class was generated from the following file:
  • event.h