Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitkNavigationDataPlayerBase.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 MITKNavigationDataPlayerBase_H_HEADER_INCLUDED_
18 #define MITKNavigationDataPlayerBase_H_HEADER_INCLUDED_
19 
21 #include "mitkNavigationDataSet.h"
22 
23 namespace mitk{
33  class MITKIGT_EXPORT NavigationDataPlayerBase
34  : public NavigationDataSource
35  {
36  public:
38 
39 
42  itkSetMacro(Repeat, bool)
43 
44 
47  itkGetMacro(Repeat, bool)
48 
49 
52  virtual void UpdateOutputInformation() override;
53 
55 
56 
64  void SetNavigationDataSet(NavigationDataSet::Pointer navigationDataSet);
65 
71  unsigned int GetNumberOfSnapshots();
72 
73  unsigned int GetCurrentSnapshotNumber();
74 
80  bool IsAtEnd();
81 
82  protected:
84  virtual ~NavigationDataPlayerBase();
85 
89  virtual void GenerateData() = 0;
90 
95  void InitPlayer();
96 
102  void GraftEmptyOutput();
103 
107  bool m_Repeat;
108 
110 
115  };
116 } // namespace mitk
117 
118 #endif /* MITKNavigationDataSequentialPlayer_H_HEADER_INCLUDED_ */
NavigationDataSet::Pointer m_NavigationDataSet
DataCollection - Class to facilitate loading/accessing structured data.
mitk::NavigationDataSet::NavigationDataSetConstIterator m_NavigationDataSetIterator
Iterator always points to the NavigationData object which is in the outputs at the moment...
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:44
Data structure which stores streams of mitk::NavigationData for multiple tools.
bool m_Repeat
If the player should repeat outputs. Default is false.
Base class for using mitk::NavigationData as a filter source. Subclasses can play objects of mitk::Na...
std::vector< std::vector< mitk::NavigationData::Pointer > >::const_iterator NavigationDataSetConstIterator
This iterator iterates over the distinct time steps in this set. And is const.