Action node that probes cells of a mesh More...
#include <MeshVizXLM/mapping/nodes/MoMeshPointProbe.h>
Classes | |
class | MoProbeCallback |
This class specifies the interface used by this node to notify the application when the position of the probe is updated. More... | |
Public Member Functions | |
virtual SoType | getTypeId () const |
MoMeshPointProbe () | |
void | setProbeCallback (MoProbeCallback &probeCallback) |
void | removeProbeCallback () |
const MiPointProbeHexahedronIjk * | getPointProbeUnstructuredIjk () |
Static Public Member Functions | |
static SoType | getClassTypeId () |
Public Attributes | |
SoSFVec3f | position |
SoMFInt32 | scalarSetIds |
SoMFInt32 | vectorSetIds |
| |
const MiPointProbeUnstructured * | getPointProbeUnstructured () |
const MiPointProbeHexahedronIjk * | getPointProbeHexahedronIjk () |
const MiPointProbeIjk * | getPointProbeIjk () |
const MiPointProbeIj * | getPointProbeIj () |
This node retrieves information at a given position in a mesh and triggers a callback each time the position moves.
The callback is defined by calling the method setProbeCallback().
The information available in the callback are the cellId, the scalars and vectors interpolated at the probe location. The scalar and vector values are computed from the scalar sets and vector sets defined by the scalarSetIds and vectorSetIds fields. These are indices into the list of scalar sets and vector sets existing in the traversal state (see the MoScalarSetxxx and MoVec3Setxxx nodes).
Set these fields to -1 to disable interpolating these data sets.
Probing can be optimized by setting environment variables (see the MESHVIZ_OCTREE_ variables in SoPreferences).
Since Open Inventor version 8.5, using the probe tool should be limited to probing inside a volume. Probing a mesh representation (skin, slice, etc) should now be done using Open Inventor picking (see the getPickedPoint method in classes SoRayPickAction, SoEventCallback, etc) combined with the MoFaceDetail or MoLineDetail and their derived classes.
position | 0,0,0 |
scalarSetIds | 0 |
vectorSetIds | 0 |
MiPointProbeUnstructured, MiPointProbeHexahedronIjk, MiPointProbeIjk, MiPointProbeIj.
MoMeshPointProbe::MoMeshPointProbe | ( | ) |
Constructor.
static SoType MoMeshPointProbe::getClassTypeId | ( | ) | [static] |
Returns the type identifier for this class.
Reimplemented from MoActionNode.
const MiPointProbeHexahedronIjk* MoMeshPointProbe::getPointProbeHexahedronIjk | ( | ) |
Get probes for reuse outside this node.
const MiPointProbeIj* MoMeshPointProbe::getPointProbeIj | ( | ) |
Get probes for reuse outside this node.
const MiPointProbeIjk* MoMeshPointProbe::getPointProbeIjk | ( | ) |
Get probes for reuse outside this node.
const MiPointProbeUnstructured* MoMeshPointProbe::getPointProbeUnstructured | ( | ) |
Get probes for reuse outside this node.
const MiPointProbeHexahedronIjk* MoMeshPointProbe::getPointProbeUnstructuredIjk | ( | ) |
virtual SoType MoMeshPointProbe::getTypeId | ( | ) | const [virtual] |
Returns the type identifier for this specific instance.
Reimplemented from MoActionNode.
void MoMeshPointProbe::removeProbeCallback | ( | ) |
remove the user defined probe callback (see setProbeCallback()) which will disable the node.
void MoMeshPointProbe::setProbeCallback | ( | MoProbeCallback & | probeCallback | ) |
Set the user defined probe callback which will be called when the motion event occurs.
If no callback set, the node is not activated (see also removeProbeCallback()).
Field representing the position of the probe.
Field representing the scalar set nodes to use when probing at the current position.
During traversal of the scene graph, scalar set nodes are accumulated in a list of scalar sets. scalarSetIds are indices into this list. Default value is 0 which means that only the first scalar set stored in the scene graph is used. Setting this value to -1 disables the probing on scalar sets.
Field representing the vector set nodes to use when probing at the current position.
During traversal of the scene graph, vector set nodes are accumulated in a list of vector sets. vectorSetIds are indices into this list. Default value is 0 which means that only the first vector set stored in the scene graph is used. Setting this value to -1 disables the probing on vector sets.