NifTK  16.4.1 - 0798f20
CMIC's Translational Medical Imaging Platform
niftkStateMachineRendererFilter.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 niftkStateMachineRendererFilter_h
16 #define niftkStateMachineRendererFilter_h
17 
18 #include "niftkMIDASExports.h"
19 
20 #include <vector>
21 
22 #include <mitkCommon.h>
23 
25 
26 namespace mitk
27 {
28 class BaseRenderer;
29 }
30 
31 namespace niftk
32 {
33 
42 class NIFTKMIDAS_EXPORT StateMachineRendererFilter : public StateMachineEventFilter
43 {
44 
45 public:
46 
48 
49 
50  virtual bool EventFilter(const mitk::StateEvent* stateEvent) const override;
53 
54  virtual bool EventFilter(mitk::InteractionEvent* event) const override;
55 
57  void AddRenderer(mitk::BaseRenderer* renderer);
58 
60  void RemoveRenderer(mitk::BaseRenderer* renderer);
61 
62 protected:
63 
64  StateMachineRendererFilter(); // purposefully hidden
65  virtual ~StateMachineRendererFilter(); // purposefully hidden
66 
67 private:
68 
70  std::vector<mitk::BaseRenderer*> m_Renderers;
71 
72 };
73 
74 }
75 
76 #endif
StateMachineRendererFilter represents a condition that allows only the events coming from certain ren...
Definition: niftkStateMachineRendererFilter.h:42
Definition: ReceptorMemberCommandTest.cxx:25
StateMachineEventFilter represents a condition that has to be fulfilled so that an event is processed...
Definition: niftkStateMachineEventFilter.h:41
cl_event event
Definition: glew.h:3231
Definition: niftkExceptionObject.h:21