anatomist  5.1.2
3D neuroimaging data viewer
anatomist::OutputEventFilter Class Reference

Filering of events sent to the external wolrd (output streams) More...

#include <anatomist/processor/event.h>

Public Member Functions

 OutputEventFilter ()
 
 ~OutputEventFilter ()
 
void filter (const std::string &evtype)
 
void filter (const std::set< std::string > &evtype)
 
void unfilter (const std::string &evtype)
 
void unfilter (const std::set< std::string > &evtype)
 
const std::set< std::string > & filters () const
 
void setDefaultIsFiltering (bool)
 
bool isDefaultFiltering () const
 
void clear ()
 

Detailed Description

Filering of events sent to the external wolrd (output streams)

There are currently a number of events. The list may not be exhaustive since events are dynamically created, but there's at least:

  • LoadObject
  • DeleteObject
  • FusionObjects
  • CreateWindow
  • CloseWindow
  • AddObject
  • RemoveObject
  • Exit
  • LinkedCursor

These are not 'real' events because they are not dispatched to all output streams but only to the one which asked for it:

  • GetInfo
  • ObjectInfo

Definition at line 82 of file event.h.

Constructor & Destructor Documentation

◆ OutputEventFilter()

anatomist::OutputEventFilter::OutputEventFilter ( )

◆ ~OutputEventFilter()

anatomist::OutputEventFilter::~OutputEventFilter ( )

Member Function Documentation

◆ clear()

void anatomist::OutputEventFilter::clear ( )

◆ filter() [1/2]

void anatomist::OutputEventFilter::filter ( const std::set< std::string > &  evtype)

◆ filter() [2/2]

void anatomist::OutputEventFilter::filter ( const std::string &  evtype)

◆ filters()

const std::set<std::string>& anatomist::OutputEventFilter::filters ( ) const
inline

Definition at line 92 of file event.h.

◆ isDefaultFiltering()

bool anatomist::OutputEventFilter::isDefaultFiltering ( ) const
inline

Definition at line 94 of file event.h.

◆ setDefaultIsFiltering()

void anatomist::OutputEventFilter::setDefaultIsFiltering ( bool  )

◆ unfilter() [1/2]

void anatomist::OutputEventFilter::unfilter ( const std::set< std::string > &  evtype)

◆ unfilter() [2/2]

void anatomist::OutputEventFilter::unfilter ( const std::string &  evtype)

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