25 #ifndef WROIARBITRARY_H
26 #define WROIARBITRARY_H
32 #include <boost/thread.hpp>
34 #include "../common/math/linearAlgebra/WLinearAlgebra.h"
35 #include "../common/math/WMatrix.h"
36 #include "../common/WColor.h"
37 #include "WPickHandler.h"
38 #include "WGEViewer.h"
40 #include "WTriangleMesh.h"
43 #include "WExportWGE.h"
65 WROIArbitrary(
size_t nbCoordsX,
size_t nbCoordsY,
size_t nbCoordsZ,
67 const std::vector< float >& vals,
68 boost::shared_ptr< WTriangleMesh > triMesh,
83 WROIArbitrary(
size_t nbCoordsX,
size_t nbCoordsY,
size_t nbCoordsZ,
85 const std::vector< float >& vals,
109 void setThreshold(
double threshold );
116 double getThreshold();
123 std::vector< size_t > getCoordDimensions();
130 std::vector< double > getCoordOffsets();
138 float getValue(
size_t i );
174 virtual void operator()( osg::Node* node, osg::NodeVisitor* nv )
176 osg::ref_ptr< WROIArbitrary > module =
static_cast< WROIArbitrary*
> ( node->getUserData() );
181 traverse( node, nv );
186 #endif // WROIARBITRARY_H