MoMeshPointProbe Class Reference
[Actions]

MeshViz Action node that probes cells of a mesh More...

#include <MeshVizXLM/mapping/nodes/MoMeshPointProbe.h>

Inheritance diagram for MoMeshPointProbe:
MoActionNode SoNode SoFieldContainer SoBase SoRefCounter SoTypedObject

List of all members.

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 MiPointProbeHexahedronIjkgetPointProbeUnstructuredIjk ()

Static Public Member Functions

static SoType getClassTypeId ()

Public Attributes

SoSFVec3f position
SoMFInt32 scalarSetIds
SoMFInt32 vectorSetIds



const MiPointProbeUnstructuredgetPointProbeUnstructured ()
const MiPointProbeHexahedronIjkgetPointProbeHexahedronIjk ()
const MiPointProbeIjkgetPointProbeIjk ()
const MiPointProbeIjgetPointProbeIj ()

Detailed Description

MeshViz Action node that probes cells of a mesh

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.

FILE FORMAT/DEFAULT

SEE ALSO

MiPointProbeUnstructured, MiPointProbeHexahedronIjk, MiPointProbeIjk, MiPointProbeIj.

See related examples:

PickingAndProbing, Probing


Constructor & Destructor Documentation

MoMeshPointProbe::MoMeshPointProbe (  ) 

Constructor.


Member Function Documentation

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.

Note:
The returned pointer may be null if a mesh has not been set in the scene graph or if no probing action has traversed the scene graph. Use the method corresponding to the type of mesh stored in the scene graph.
const MiPointProbeIj* MoMeshPointProbe::getPointProbeIj (  ) 

Get probes for reuse outside this node.

Note:
The returned pointer may be null if a mesh has not been set in the scene graph or if no probing action has traversed the scene graph. Use the method corresponding to the type of mesh stored in the scene graph.
const MiPointProbeIjk* MoMeshPointProbe::getPointProbeIjk (  ) 

Get probes for reuse outside this node.

Note:
The returned pointer may be null if a mesh has not been set in the scene graph or if no probing action has traversed the scene graph. Use the method corresponding to the type of mesh stored in the scene graph.
const MiPointProbeUnstructured* MoMeshPointProbe::getPointProbeUnstructured (  ) 

Get probes for reuse outside this node.

Note:
The returned pointer may be null if a mesh has not been set in the scene graph or if no probing action has traversed the scene graph. Use the method corresponding to the type of mesh stored in the scene graph.
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()).


Member Data Documentation

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.


The documentation for this class was generated from the following file:

Open Inventor Toolkit reference manual, generated on 4 Sep 2023
Copyright © Thermo Fisher Scientific All rights reserved.
https://www.openinventor.com/