7 #include "PlusConfigure.h" 9 #include "vtkMatrix4x4.h" 15 : FilteredTimeStamp(0)
16 , UnfilteredTimeStamp(0)
19 , ValidTransformData(false)
20 , Matrix(vtkSmartPointer<vtkMatrix4x4>::New())
33 this->
Matrix = vtkSmartPointer<vtkMatrix4x4>::New();
42 if (
this == &dataItem)
70 if (fieldName.empty())
72 LOG_ERROR(
"Unable to get frame field: field name is NULL!");
76 igsioFieldMapType::const_iterator fieldIterator;
80 return fieldIterator->second.second;
88 if (fieldName == NULL)
90 LOG_DEBUG(
"Failed to delete frame field - field name is NULL!");
94 igsioFieldMapType::iterator field = this->
FrameFields.find(fieldName);
100 LOG_DEBUG(
"Failed to delete frame field - could find field " << fieldName);
113 if (dataItem == NULL)
115 LOG_ERROR(
"Failed to deep copy data buffer item - buffer item NULL!");
119 (*this) = (*dataItem);
129 LOG_ERROR(
"Failed to set matrix - input matrix is NULL!");
135 this->
Matrix->DeepCopy(matrix);
143 if (outputMatrix == NULL)
145 LOG_ERROR(
"Failed to copy matrix - output matrix is NULL!");
149 outputMatrix->DeepCopy(this->
Matrix);
ToolStatus GetStatus() const
igsioFieldMapType FrameFields
PlusStatus DeleteFrameField(const char *fieldName)
bool HasValidFieldData() const
std::string GetFrameField(const std::string &fieldName) const
vtkSmartPointer< vtkMatrix4x4 > Matrix
PlusStatus GetMatrix(vtkMatrix4x4 *outputMatrix)
StreamBufferItem & operator=(StreamBufferItem const &dataItem)
PlusStatus DeepCopy(StreamBufferItem *dataItem)
void SetFrameField(std::string fieldName, std::string fieldValue, igsioFrameFieldFlags flags=FRAMEFIELD_NONE)
virtual ~StreamBufferItem()
const char int const char int flags
PlusStatus SetMatrix(vtkMatrix4x4 *matrix)
double UnfilteredTimeStamp
void SetStatus(ToolStatus status)