25 #ifndef WDATASETSCALAR_H
26 #define WDATASETSCALAR_H
30 #include <boost/thread.hpp>
32 #include "datastructures/WValueSetHistogram.h"
34 #include "WDataSetSingle.h"
35 #include "WExportDataHandler.h"
53 boost::shared_ptr< WGrid > newGrid );
98 double getMax()
const;
105 double getMin()
const;
116 boost::shared_ptr< const WValueSetHistogram > getHistogram(
size_t buckets = 1000 );
128 double interpolate(
const WPosition& pos,
bool* success )
const;
138 template<
typename T > T
getValueAt(
int x,
int y,
int z )
const;
148 double getValueAt(
int x,
int y,
int z )
const;
172 std::map< size_t, boost::shared_ptr< WValueSetHistogram > >
m_histograms;
183 boost::shared_ptr< WGridRegular3D > grid = boost::shared_dynamic_cast<
WGridRegular3D >(
m_grid );
185 size_t id = x + y * grid->
getNbCoordsX() + z * grid->getNbCoordsX() * grid->getNbCoordsY();
187 T v = vs->getScalar(
id );
191 #endif // WDATASETSCALAR_H