00001 #ifndef RectangularFlowData_H 00002 #define RectangularFlowData_H 00003 00004 #include "FlowData.h" 00005 00006 class RectangularFlowData : public FlowData 00007 { 00008 public: 00009 void calcScalar(int scalarIndex, QSize size, float *dest); 00010 void calcVector(QSize size, Vector3 *dest); 00011 00012 Vector3 getVectorAtPoint(QPointF point); 00013 00014 private: 00015 void set(const FlowData &source); 00016 00017 SharedArray<float> xSideGeometry, ySideGeometry; 00018 SharedArray<int> xSideGeometryFast, ySideGeometryFast; 00019 SharedArray<Vector3> diffVectorData; 00020 }; 00021 00022 #endif // RectangularFlowData_H