Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitkNavigationDataPlayer.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 MITKNavigationDataPlayer_H_HEADER_INCLUDED_
18 #define MITKNavigationDataPlayer_H_HEADER_INCLUDED_
19 
21 
22 #include <itkMultiThreader.h>
23 
24 namespace mitk {
33  class MITKIGT_EXPORT NavigationDataPlayer : public NavigationDataPlayerBase
34  {
35  public:
37  itkFactorylessNewMacro(Self)
38  itkCloneMacro(Self)
39 
40  enum PlayerState { PlayerStopped, PlayerRunning, PlayerPaused };
42 
46  virtual void UpdateOutputInformation() override;
47 
55  void StartPlaying();
56 
62  void StopPlaying();
63 
67  void Pause();
68 
72  void Resume();
73 
74  PlayerState GetCurrentPlayerState();
75 
76  TimeStampType GetTimeStampSinceStart();
77 
78  protected:
80  virtual ~NavigationDataPlayer();
81 
85  virtual void GenerateData() override;
86 
88 
92  TimeStampType m_StartPlayingTimeStamp;
93 
97  TimeStampType m_PauseTimeStamp;
98 
99  TimeStampType m_TimeStampSinceStart;
100  };
101 } // namespace mitk
102 
103 #endif /* MITKNavigationDataPlayer_H_HEADER_INCLUDED_ */
mitk::NavigationData::TimeStampType TimeStampType
DataCollection - Class to facilitate loading/accessing structured data.
TimeStampType m_StartPlayingTimeStamp
The start time of the playing. Set in the method mitk::NavigationDataPlayer::StartPlaying().
double TimeStampType
type that holds the time at which the data was recorded
TimeStampType m_PauseTimeStamp
Stores the time when a pause began.
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:44
This class is used to play recorded (see mitkNavigationDataRecorder class) NavigationDataSets.
Base class for using mitk::NavigationData as a filter source. Subclasses can play objects of mitk::Na...