Representation of vectors on a grid of a cross section. More...
#include <MeshViz/3Ddata/PoMesh3DVecGridCrossSection.h>
Public Member Functions | |
virtual SoType | getTypeId () const |
virtual const SoNodekitCatalog * | getNodekitCatalog () const |
PoMesh3DVecGridCrossSection () | |
virtual void | rebuild () |
Static Public Member Functions | |
static SoType | getClassTypeId () |
static const SoNodekitCatalog * | getClassNodekitCatalog () |
Public Attributes | |
SoSFFloat | gridSpacing |
A grid of points on a plane of a volume mesh is built. Then a vector is computed by interpolation on each point of the grid, possibly projected (depending on the projectionType field) and is represented according to the different fields of PoMesh3DVec.
It may be time consuming to use this class depending on the value of the gridSpacing. For each point of the grid, this class looks for the cell that contains the point by using a probe tool. The vector drawn at the point is computed by interpolation between each point of the containing cell. The probing process may be slow depending on the number of cells, the mesh type, the spatial organization of the cells, etc... The quickest way to draw a vector field may be by using the parent class PoMesh3DVecCrossSection. Note also that if gridSpacing = 0, this class behaves like PoMesh3DVecCrossSection.
plane | Z=0 plane |
gridSpacing | 0.05 |
projectionType | NO_PROJECTION |
density | 1 |
eliminationStatus | NONE |
minLength | 0.0 |
maxLength | 1E30 |
bodyShape | LINE |
bodyLengthType | RELATIVE_LENGTH |
bodyLengthFactor | 1.0 |
bodyRadiusType | CONSTANT_RADIUS |
bodyRadiusFactor | 0.02 |
bodyColoringType | CONSTANT_COLOR |
startArrowShape | NO_SHAPE |
startArrowHeightType | RELATIVE_HEIGHT |
startArrowHeightFactor | 0.1 |
startArrowRadiusFactor | 0.5 |
startArrowColoringType | CONSTANT_COLOR |
endArrowShape | CHEVRON |
endArrowHeightType | RELATIVE_HEIGHT |
endArrowHeightFactor | 0.1 |
endArrowRadiusFactor | 0.5 |
endArrowColoringType | CONSTANT_COLOR |
coloringType | COLOR_INHERITED |
valuesIndex | -1 |
valuesIndexForCellFilter | -1 |
vecsIndex | -1 |
moduleDataMapping | NULL |
Separator startArrowSep {
Separator endArrowSep {
PoMesh3DVecGridCrossSection::PoMesh3DVecGridCrossSection | ( | ) |
Constructor.
static const SoNodekitCatalog* PoMesh3DVecGridCrossSection::getClassNodekitCatalog | ( | ) | [static] |
Returns the SoNodekitCatalog for this class.
Reimplemented from PoMesh3DVecCrossSection.
static SoType PoMesh3DVecGridCrossSection::getClassTypeId | ( | ) | [static] |
Returns the type identifier for this class.
Reimplemented from PoMesh3DVecCrossSection.
virtual const SoNodekitCatalog* PoMesh3DVecGridCrossSection::getNodekitCatalog | ( | ) | const [virtual] |
Returns the SoNodekitCatalog for this instance.
Reimplemented from PoMesh3DVecCrossSection.
virtual SoType PoMesh3DVecGridCrossSection::getTypeId | ( | ) | const [virtual] |
Returns the type identifier for this specific instance.
Reimplemented from PoMesh3DVecCrossSection.
virtual void PoMesh3DVecGridCrossSection::rebuild | ( | ) | [virtual] |
GridSpacing is relating to the number of points on the grid : the smaller gridSpacing is, the greater the number of points is.
It represents a factor of the biggest size of the mesh. 0.05 by default. If gridSpacing = 0, this class behaves like PoMesh3DVecCrossSection.