Interface MoMeshPointProbe.MoProbeCallback
-
- Enclosing class:
- MoMeshPointProbe
public static interface MoMeshPointProbe.MoProbeCallback
This class specifies the interface used by this node to notify the application when theposition
of the probe is updated. A derived class must implement at least one of the event methodmotionCallback
depending on the type of mesh.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
motionCallback(long cellIdI, long cellIdJ, long cellIdK, MeXScalardSetI scalars, MeXVec3dSetI vectors)
Callback that is triggered each time the fieldposition
changes for IJK volume meshes.void
motionCallback(long cellIdI, long cellIdJ, MeXScalardSetI scalars, MeXVec3dSetI vectors)
Callback that is triggered each time the fieldposition
changes for IJ surface meshes.void
motionCallback(long cellId, MeXScalardSetI scalars, MeXVec3dSetI vectors)
Callback that is triggered each time the fieldposition
changes for unstructured meshes.
-
-
-
Method Detail
-
motionCallback
void motionCallback(long cellId, MeXScalardSetI scalars, MeXVec3dSetI vectors)
Callback that is triggered each time the fieldposition
changes for unstructured meshes.- Parameters:
cellId
- the index of cell in which the probe is located (-1 when the probe is outside the mesh)scalars
- set of probed scalar values from the selected scalar sets at the current position (empty when the probe is outside the mesh).
The number of scalar values corresponds to the number of indices inMoMeshPointProbe.scalarSetIds
. The ith value in scalars is associated with the ith index inscalarSetIds
.vectors
- set of probed vectors from the selected vector sets at the current position (empty when the probe is outside the mesh). The number of vectors corresponds to the number of indices inMoMeshPointProbe.vectorSetIds
. The ith element in vectors is associated with the ith index invectorSetIds
.
-
motionCallback
void motionCallback(long cellIdI, long cellIdJ, MeXScalardSetI scalars, MeXVec3dSetI vectors)
Callback that is triggered each time the fieldposition
changes for IJ surface meshes.- Parameters:
cellIdI
- the I index of cell in which the probe is located (-1 when the probe is outside the mesh)cellIdJ
- the J index of cell in which the probe is located (-1 when the probe is outside the mesh)scalars
- set of probed scalar values from the selected scalar sets at the current position (empty when the probe is outside the mesh).
The number of scalar values corresponds to the number of indices inMoMeshPointProbe.scalarSetIds
. The ith value in scalars is associated with the ith index inscalarSetIds
.vectors
- set of probed vectors from the selected vector sets at the current position (empty when the probe is outside the mesh). The number of vectors corresponds to the number of indices inMoMeshPointProbe.vectorSetIds
. The ith element in vectors is associated with the ith index invectorSetIds
.
-
motionCallback
void motionCallback(long cellIdI, long cellIdJ, long cellIdK, MeXScalardSetI scalars, MeXVec3dSetI vectors)
Callback that is triggered each time the fieldposition
changes for IJK volume meshes.- Parameters:
cellIdI
- the I index of cell in which the probe is located (-1 when the probe is outside the mesh)cellIdJ
- the J index of cell in which the probe is located (-1 when the probe is outside the mesh)cellIdK
- the K index of cell in which the probe is located (-1 when the probe is outside the mesh)scalars
- set of probed scalar values from the selected scalar sets at the current position (empty when the probe is outside the mesh).
The number of scalar values corresponds to the number of indices inMoMeshPointProbe.scalarSetIds
. The ith value in scalars is associated with the ith index inscalarSetIds
.vectors
- set of probed vectors from the selected vector sets at the current position (empty when the probe is outside the mesh). The number of vectors corresponds to the number of indices inMoMeshPointProbe.vectorSetIds
. The ith element in vectors is associated with the ith index invectorSetIds
.
-
-