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 the position of the probe is updated. A derived class must implement at least one of the event method motionCallback depending on the type of mesh.
    • Method Detail

      • motionCallback

        void motionCallback​(long cellId,
                            MeXScalardSetI scalars,
                            MeXVec3dSetI vectors)
        Callback that is triggered each time the field position 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 in MoMeshPointProbe.scalarSetIds. The ith value in scalars is associated with the ith index in scalarSetIds .
        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 in MoMeshPointProbe.vectorSetIds. The ith element in vectors is associated with the ith index in vectorSetIds .
      • motionCallback

        void motionCallback​(long cellIdI,
                            long cellIdJ,
                            MeXScalardSetI scalars,
                            MeXVec3dSetI vectors)
        Callback that is triggered each time the field position 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 in MoMeshPointProbe.scalarSetIds. The ith value in scalars is associated with the ith index in scalarSetIds .
        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 in MoMeshPointProbe.vectorSetIds. The ith element in vectors is associated with the ith index in vectorSetIds .
      • motionCallback

        void motionCallback​(long cellIdI,
                            long cellIdJ,
                            long cellIdK,
                            MeXScalardSetI scalars,
                            MeXVec3dSetI vectors)
        Callback that is triggered each time the field position 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 in MoMeshPointProbe.scalarSetIds. The ith value in scalars is associated with the ith index in scalarSetIds .
        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 in MoMeshPointProbe.vectorSetIds. The ith element in vectors is associated with the ith index in vectorSetIds .