25 #ifndef WROIARBITRARY_H
26 #define WROIARBITRARY_H
32 #include <boost/thread.hpp>
34 #include "../common/math/WMatrix.h"
35 #include "../common/WColor.h"
36 #include "WPickHandler.h"
37 #include "WGEViewer.h"
39 #include "WTriangleMesh.h"
64 WROIArbitrary(
size_t nbCoordsX,
size_t nbCoordsY,
size_t nbCoordsZ,
66 const std::vector< float >& vals,
67 boost::shared_ptr< WTriangleMesh > triMesh,
82 WROIArbitrary(
size_t nbCoordsX,
size_t nbCoordsY,
size_t nbCoordsZ,
84 const std::vector< float >& vals,
173 virtual void operator()( osg::Node* node, osg::NodeVisitor* nv )
175 osg::ref_ptr< WROIArbitrary > module =
static_cast< WROIArbitrary*
> ( node->getUserData() );
180 traverse( node, nv );
185 #endif // WROIARBITRARY_H
void propertyChanged()
Used as callback to mark a change in the ROI.
Node callback to handle updates properly.
virtual void operator()(osg::Node *node, osg::NodeVisitor *nv)
operator ()
boost::shared_ptr< WTriangleMesh > m_triMesh
This triangle mesh is provided as output through the connector.
const std::vector< float > m_vals
The data at the vertices.
double getThreshold()
getter
Superclass for different ROI (region of interest) types.
float getValue(size_t i)
Get the i-th value of the data defining the ROI.
void setThreshold(double threshold)
setter
WMatrix< double > m_matrix
The 4x4 transformation matrix for the vertices.
virtual void updateGFX()
updates the graphics
void properties()
initalizes the properties
A box containing information on an arbitrarily shaped a region of interest.
WROIArbitrary(size_t nbCoordsX, size_t nbCoordsY, size_t nbCoordsZ, const WMatrix< double > &mat, const std::vector< float > &vals, boost::shared_ptr< WTriangleMesh > triMesh, float threshold, float maxThreshold, WColor color)
constructor
std::vector< double > getCoordOffsets()
Get the vertex offsets in the three coordinate directions.
This data set type contains scalars as values.
WPropDouble m_threshold
the threshold
std::vector< size_t > getCoordDimensions()
Get the number of vertices in the three coordinate directions.
virtual ~WROIArbitrary()
destructor
WColor m_color
The ROI color.
std::vector< size_t > m_nbCoordsVec
The data's number of vertices in X, Y and Z direction.