00001 #ifndef _VECTORFRAMEDATA_H 00002 #define _VECTORFRAMEDATA_H 00003 00004 #include "IFrameData.h" 00005 #include "../util/Vector.h" 00006 #include <string> 00007 00009 00014 class VectorFrameData : public IFrameData 00015 { 00016 public: 00020 VectorFrameData(Vector<3,double> &v) : m_value(v) {} 00024 VectorFrameData(Vector<3,double> const& v) : m_value(v) {} 00025 00027 virtual ~VectorFrameData() {} 00028 00032 virtual std::string getType() { return "Vector3D"; } 00036 const Vector3d getData() const { return m_value; } 00040 void setData(Vector3d& v) { m_value = v; } 00044 void setData(Vector3d const& v) { m_value = v; } 00045 00046 private: 00047 Vector3d m_value; 00048 }; 00049 00050 #endif