00001 00007 #pragma once 00008 00009 #include <vector> 00010 00011 #include "DataLayer.hpp" 00012 00014 00016 class DataFrame { 00017 private: 00018 std::vector<float> flowlayer; 00019 std::vector<DataLayer> datalayer; 00020 std::vector<unsigned> size; 00021 00022 public: 00023 DataFrame(const unsigned &xsize,const unsigned &ysize,const unsigned &zsize); 00024 ~DataFrame(); 00025 00028 void setFlowLayer(const std::vector<float> &flowlayer); 00029 float *getFlowArray(); 00030 00033 int createDataLayer(const std::string &name,const std::vector<float> &datalayer); 00034 DataLayer &getDataLayer(const unsigned &index); 00035 const unsigned getNumLayers() const; 00036 00037 float *operator[](const unsigned &layerindex); 00038 };