7 #ifndef __StreamBufferItem_h 8 #define __StreamBufferItem_h 10 #include "vtkPlusDataCollectionExport.h" 13 #include <igsioCommon.h> 16 #include <vtkSmartPointer.h> 48 double GetTimestamp(
double localTimeOffsetSec) {
return this->GetFilteredTimestamp(localTimeOffsetSec); }
51 double GetFilteredTimestamp(
double localTimeOffsetSec) {
return this->FilteredTimeStamp + localTimeOffsetSec; }
67 unsigned long GetIndex() {
return this->Index; };
68 void SetIndex(
unsigned long index) { this->Index = index; };
75 void SetFrameField(std::string fieldName, std::string fieldValue, igsioFrameFieldFlags
flags = FRAMEFIELD_NONE);
78 std::string GetFrameField(
const std::string& fieldName)
const;
88 igsioVideoFrame&
GetFrame() {
return this->Frame; };
93 PlusStatus GetMatrix(vtkMatrix4x4* outputMatrix);
96 void SetStatus(ToolStatus status);
98 ToolStatus GetStatus()
const;
102 bool HasValidFieldData()
const;
105 return Frame.IsImageValid();
Abstract interface for tracker and video devices.
igsioFieldMapType FrameFields
bool HasValidVideoData() const
void SetFilteredTimestamp(double filteredTimestamp)
void SetUid(BufferItemUidType uid)
void SetValidTransformData(bool aValid)
igsioFieldMapType GetFrameFieldMap()
double GetFilteredTimestamp(double localTimeOffsetSec)
vtkSmartPointer< vtkMatrix4x4 > Matrix
void SetIndex(unsigned long index)
double GetUnfilteredTimestamp(double localTimeOffsetSec)
igsioVideoFrame & GetFrame()
const char int const char int flags
BufferItemUidType GetUid()
Contains an optional timestamped circular buffer containing the video images and a number of timestam...
void SetUnfilteredTimestamp(double unfilteredTimestamp)
double UnfilteredTimeStamp
unsigned long long BufferItemUidType
PlusStatus DeleteFrameField(vtkIGSIOTrackedFrameList *trackedFrameList, std::string fieldName)
bool HasValidTransformData() const
double GetTimestamp(double localTimeOffsetSec)
Interface to a 3D positioning tool, video source, or generalized data stream.