DataPoint.h

Go to the documentation of this file.
00001 // vim:set ts=4 sw=4 noet cin:
00002 
00003 #ifndef DATAPOINT_H_
00004 #define DATAPOINT_H_
00005 
00006 #include <vector>
00007 #include "Vector.h"
00008 
00013 class DataPoint {
00014   public:
00015           void setPosition(const Vector<float>& aPosition) { mPosition = aPosition; }
00016           Vector<float> getPosition() const { return mPosition; }
00017 
00018           void setFlow(const Vector<float>& aFlow) { mFlow = aFlow; mFlow.normalize(); }
00019           Vector<float> getFlow() const { return mFlow; }
00020 
00021           void addDataPiece(float aData) { mDataPieces.push_back(aData); }
00022           float getDataPiece(unsigned int index) const { return mDataPieces[index]; }
00023           unsigned int countDataPieces() const { return mDataPieces.size(); }
00024   private:
00025         Vector<float> mFlow, mPosition;
00026         std::vector<float> mDataPieces;
00027 };
00028 
00029 #endif

Generated on Mon Jan 23 19:44:27 2006 for Visualization by  doxygen 1.4.6