Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitkEventRecorder.h
Go to the documentation of this file.
1 /*===================================================================
2 
3  The Medical Imaging Interaction Toolkit (MITK)
4 
5  Copyright (c) German Cancer Research Center,
6  Division of Medical and Biological Informatics.
7  All rights reserved.
8 
9  This software is distributed WITHOUT ANY WARRANTY; without
10  even the implied warranty of MERCHANTABILITY or FITNESS FOR
11  A PARTICULAR PURPOSE.
12 
13  See LICENSE.txt or http://www.mitk.org for details.
14 
15  ===================================================================*/
16 
17 #ifndef mitkEventRecorder_h
18 #define mitkEventRecorder_h
19 
20 #include "iostream"
22 #include <MitkCoreExports.h>
23 
24 namespace mitk
25 {
52  {
53  public:
54  EventRecorder();
55  ~EventRecorder();
56 
60  virtual void Notify(InteractionEvent *interactionEvent, bool) override;
61 
65  void SetEventIgnoreList(std::vector<std::string> list);
66 
67  void StartRecording();
68  void StopRecording();
69 
70  bool IsActive() { return m_Active; }
71  void SetOutputFile(std::string filename) { m_FileName = filename; }
72  private:
76  std::vector<std::string> m_IgnoreList;
77 
81  bool m_Active;
82  std::string m_FileName;
83 
84  std::ofstream m_FileStream;
85  };
86 }
87 #endif
Base class to implement InteractionEventObservers.
#define MITKCORE_EXPORT
DataCollection - Class to facilitate loading/accessing structured data.
void SetOutputFile(std::string filename)
static const std::string filename
Observer that enables recoding of all user interaction with the render windows and storing it in an X...