public class MoMeshPointProbe extends MoActionNode
This node retrieves information at a given position in a mesh and trigger a callback each time the position moves.
The callback is defined by calling the method setProbeCallback()
.
The information available in the callback are the cell Id, 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 "See also" Section)
Modifier and Type | Class and Description |
---|---|
static interface |
MoMeshPointProbe.MoProbeCallback
This class specifies the interface used by this node to notify the
application when the
position of the
probe is updated. |
Inventor.ConstructorCommand
Modifier and Type | Field and Description |
---|---|
SoSFVec3f |
position
Field representing the position of the probe.
|
SoMFInt32 |
scalarSetIds
Field representing the scalar set nodes to use when probing at the current
position.
|
SoMFInt32 |
vectorSetIds
Field representing the vector set nodes to use when probing at the current
position.
|
VERBOSE_LEVEL, ZeroHandle
Constructor and Description |
---|
MoMeshPointProbe()
Constructs an action node with default values.
|
Modifier and Type | Method and Description |
---|---|
void |
doAction(SoAction action) |
MiPointProbeHexahedronIjk |
getHexahedronIjkExtractor()
Gets probes for hexahedron IJK meshes to reuse outside this node.
Note: The returned object may be null if no hexahedron IJK
mesh has been set in the scene graph or if no render action has traversed
the scene graph. |
MiPointProbeIjk |
getIjkExtractor()
Gets probes for IJK meshes to reuse outside this node.
Note: The returned object may be null if no IJK mesh has
been set in the scene graph or if no render action has traversed the scene
graph. |
MiPointProbeUnstructured |
getUnstructuredExtractor()
Gets probes for unstructured meshes to reuse outside this node.
Note: The returned object may be null if no unstructured
mesh has been set in the scene graph or if no render action has traversed
the scene graph. |
void |
removeProbeCallback()
Removes the user defined probe callback (see
setProbeCallback(MoProbeCallback) ) which will disable the node. |
void |
setProbeCallback(MoMeshPointProbe.MoProbeCallback probeCallback)
Set the user defined probe callback which will be called when the motion
event occurs.
|
callback, distribute, getBoundingBox, getMatrix, getPrimitiveCount, GLRender, handleEvent, pick, rayPick
affectsState, copy, copy, getAlternateRep, getByName, getRenderUnitID, GLRenderBelowPath, GLRenderInPath, GLRenderOffPath, grabEventsCleanup, grabEventsSetup, isBoundingBoxIgnoring, isOverride, search, setOverride, touch, write
copyFieldValues, copyFieldValues, enableNotify, fieldsAreEqual, get, getAllFields, getEventIn, getEventOut, getField, getFieldName, hasDefaultValues, isNotifyEnabled, set, setToDefaults
dispose, getEXTERNPROTO, getName, getPROTO, isDisposable, isSynchronizable, setName, setSynchronizable
getAddress, getNativeResourceHandle, startInternalThreads, stopInternalThreads
public SoSFVec3f position
(0,0,0)
.public SoMFInt32 scalarSetIds
scalarSetIds
are indices into
this list.public SoMFInt32 vectorSetIds
vectorSetIds
are indices into
this list.public MoMeshPointProbe()
position = (0,0,0)
scalarSetIds = 0
vectorSetIds = 0
public MiPointProbeUnstructured getUnstructuredExtractor()
null
if no unstructured
mesh has been set in the scene graph or if no render action has traversed
the scene graph.public MiPointProbeHexahedronIjk getHexahedronIjkExtractor()
null
if no hexahedron IJK
mesh has been set in the scene graph or if no render action has traversed
the scene graph.public MiPointProbeIjk getIjkExtractor()
null
if no IJK mesh has
been set in the scene graph or if no render action has traversed the scene
graph.public void setProbeCallback(MoMeshPointProbe.MoProbeCallback probeCallback)
removeProbeCallback()
).public void removeProbeCallback()
setProbeCallback(MoProbeCallback)
) which will disable the node.Generated on January 23, 2025, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com