Medical Imaging Interaction Toolkit  2018.4.99-f51274ea
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 (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 
13 #ifndef MITKNavigationDataPlayer_H_HEADER_INCLUDED_
14 #define MITKNavigationDataPlayer_H_HEADER_INCLUDED_
15 
17 
18 #include <itkMultiThreader.h>
19 
20 namespace mitk {
30  {
31  public:
33  itkFactorylessNewMacro(Self);
34  itkCloneMacro(Self);
35 
36  enum PlayerState { PlayerStopped, PlayerRunning, PlayerPaused };
38 
42  void UpdateOutputInformation() override;
43 
51  void StartPlaying();
52 
58  void StopPlaying();
59 
63  void Pause();
64 
68  void Resume();
69 
70  PlayerState GetCurrentPlayerState();
71 
72  TimeStampType GetTimeStampSinceStart();
73 
74  protected:
76  ~NavigationDataPlayer() override;
77 
81  void GenerateData() override;
82 
84 
88  TimeStampType m_StartPlayingTimeStamp;
89 
93  TimeStampType m_PauseTimeStamp;
94 
95  TimeStampType m_TimeStampSinceStart;
96  };
97 } // namespace mitk
98 
99 #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 in milliseconds
TimeStampType m_PauseTimeStamp
Stores the time when a pause began.
#define MITKIGT_EXPORT
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:40
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...