15 #ifndef niftkIGIDataSourceBuffer_h
16 #define niftkIGIDataSourceBuffer_h
18 #include <niftkIGIDataSourcesExports.h>
21 #include <mitkCommon.h>
23 #include <itkVersion.h>
24 #include <itkObject.h>
25 #include <itkObjectFactoryBase.h>
26 #include <itkFastMutexLock.h>
48 bool operator()(
const niftk::IGIDataType::Pointer&
a,
const niftk::IGIDataType::Pointer&
b);
51 typedef std::set<niftk::IGIDataType::Pointer, TimeStampComparator>
BufferType;
56 QString GetName() const;
57 void SetName(QString
name);
88 virtual
void CleanBuffer();
93 void SetLagInMilliseconds(
unsigned int milliseconds);
98 unsigned int GetLagInMilliseconds() const;
103 BufferType::size_type GetBufferSize() const;
120 float GetFrameRate() const;
133 IGIDataSourceBuffer(BufferType::size_type minSize);
134 virtual ~IGIDataSourceBuffer();
136 IGIDataSourceBuffer(const IGIDataSourceBuffer&);
137 IGIDataSourceBuffer& operator=(const IGIDataSourceBuffer&);
139 itk::FastMutexLock::Pointer m_Mutex;
141 BufferType::iterator m_BufferIterator;
142 BufferType::size_type m_MinimumSize;
147 void UpdateFrameRate();
std::set< niftk::IGIDataType::Pointer, TimeStampComparator > BufferType
Definition: niftkIGIDataSourceBuffer.h:51
Definition: niftkIGIDataSourceBuffer.h:46
Definition: niftkITKAffineResampleImage.cxx:74
GLdouble GLdouble GLdouble b
Definition: glew.h:7885
Abstract base class for IGI Data, such as objects containing tracking data, video frames or ultrasoun...
Definition: niftkIGIDataType.h:35
GLboolean GLboolean GLboolean GLboolean a
Definition: glew.h:8272
Manages a buffer of niftk::IGIDataType.
Definition: niftkIGIDataSourceBuffer.h:42
GLuint const GLchar * name
Definition: glew.h:1798
Definition: niftkExceptionObject.h:21