NifTK  16.4.1 - 0798f20
CMIC's Translational Medical Imaging Platform
niftkStateMachineEventFilter.h
Go to the documentation of this file.
1 /*=============================================================================
2 
3  NifTK: A software platform for medical image computing.
4 
5  Copyright (c) University College London (UCL). All rights reserved.
6 
7  This software is distributed WITHOUT ANY WARRANTY; without even
8  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
9  PURPOSE.
10 
11  See LICENSE.txt in the top level directory for details.
12 
13 =============================================================================*/
14 
15 #ifndef niftkStateMachineEventFilter_h
16 #define niftkStateMachineEventFilter_h
17 
18 #include "niftkMIDASExports.h"
19 
20 #include <mitkCommon.h>
21 
22 namespace mitk
23 {
24 class StateEvent;
25 class InteractionEvent;
26 }
27 
28 namespace niftk
29 {
30 
41 class NIFTKMIDAS_EXPORT StateMachineEventFilter
42 {
43 
44 public:
45 
46  mitkClassMacroNoParent(StateMachineEventFilter)
47 
49  virtual ~StateMachineEventFilter();
50 
53  virtual bool EventFilter(const mitk::StateEvent* stateEvent) const
54  {
55  return false;
56  }
57 
58  virtual bool EventFilter(mitk::InteractionEvent* event) const
59  {
60  return false;
61  }
62 
63 };
64 
65 }
66 
67 #endif
virtual bool EventFilter(const mitk::StateEvent *stateEvent) const
Returns true if the event should be filtered, i.e. not processed, otherwise false.
Definition: niftkStateMachineEventFilter.h:53
Definition: ReceptorMemberCommandTest.cxx:25
StateMachineEventFilter represents a condition that has to be fulfilled so that an event is processed...
Definition: niftkStateMachineEventFilter.h:41
virtual bool EventFilter(mitk::InteractionEvent *event) const
Definition: niftkStateMachineEventFilter.h:58
cl_event event
Definition: glew.h:3231
Definition: niftkExceptionObject.h:21