Commit c0d9c50c by Alexander Wiebel

[FIX #329] vector plot should respect coordinate transformations now.

parent 0519f2ab
......@@ -39,7 +39,7 @@
#include "../../common/math/WVector3D.h"
/**
* Show an arrow plot of a vector data set.
* Show an glyph plot (in this case the glyphs are arrows) of a vector data set.
* \warning Selectable slices are limited to [0,160]x[0,200]x[0,160] so far.
* \ingroup modules
*/
......@@ -115,6 +115,12 @@ private:
*/
osg::ref_ptr<osg::Geometry> buildPlotSlices();
/**
* Transforms the given vertices according to m_matrix
* \param verts These vertices will be transformed.
*/
void transformVerts( osg::ref_ptr< osg::Vec3Array > verts );
/**
* An input connector used to get datasets from other modules. The connection management between connectors must not be handled by the module.
......@@ -135,11 +141,11 @@ private:
WPropBool m_coloringMode; //!< indicates a set color or direction color coding.
WPropInt m_xPos; //!< x posistion of the slice
WPropInt m_xSlice; //!< x posistion of the slice
WPropInt m_yPos; //!< y posistion of the slice
WPropInt m_ySlice; //!< y posistion of the slice
WPropInt m_zPos; //!< z posistion of the slice
WPropInt m_zSlice; //!< z posistion of the slice
WPropBool m_showonX; //!< in dicates whether the vector should be shown on slice X
......@@ -152,6 +158,8 @@ private:
osg::ref_ptr< WShader > m_shader; //!< the shader object for this module
wmath::WMatrix< double > m_mat; //!< The 4x4 transformation matrix for the glyph vertices.
/**
* Node callback to change the color of the shapes inside the root node. For more details on this class, refer to the documentation in
* moduleMain().
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment