Functions | |
| void | TecUtilProbeAtFieldPositionX (ArgList_pa ArgList) |
| Use this function in concert with TecUtilProbeInstallCallback and TecUtilProbeInstallCallbackX. | |
| void | TecUtilProbeAtFieldIndexX (ArgList_pa ArgList) |
| Use this function in concert with TecUtilProbeInstallCallback and TecUtilProbeInstallCallbackX. | |
| void | TecUtilProbeAtLinePositionX (ArgList_pa ArgList) |
| Use this function in concert with TecUtilProbeInstallCallback and TecUtilProbeInstallCallbackX. | |
| void | TecUtilProbeAtLineIndexX (ArgList_pa ArgList) |
| Use this function in concert with TecUtilProbeInstallCallback and TecUtilProbeInstallCallbackX. | |
| Boolean_t | TecUtilProbeInstallCallback (ProbeDestination_pf ProbeDestination, const char *InformationLineText) |
| Change the mouse mode to be the probe tool, and instruct Tecplot to call a different function when the user completes a probe operation in the work area. | |
| Boolean_t | TecUtilProbeInstallCallbackX (ArgList_pa ArgList) |
| Change the mouse mode to be the probe tool, and instruct Tecplot to call a different function when the user completes a probe operation in the work area. | |
| void | TecUtilProbeAllowCOBs (void) |
| Instructs Tecplot to include COBs (iso-surfaces, slices, streamtraces, and so forth) along with zones during a probe when an add-on has a callback registered with TecUtilProbeInstallCallback() and if the user is pressing the Alt key. | |
| double | TecUtilProbeLinePlotGetIndValue (void) |
| Call this function from a probe destination callback to get the independent value from the previous probe event in an Line-plot. | |
| Boolean_t | TecUtilProbeLinePlotGetDepValue (EntIndex_t MapNum, double *DepValue) |
| Call this function from a probe destination callback to get a dependent value from the previous probe event in an Line-plot. | |
| EntIndex_t | TecUtilProbeLinePlotGetSourceMap (void) |
| Call this function from a probe destination callback to get the Line-map whose point was selected in the previous nearest-point probe. | |
| char | TecUtilProbeLinePlotGetIndAxisKind (void) |
| Call this function from a probe destination callback to get the indepedent axis kind associated with the line probe. | |
| int | TecUtilProbeLinePlotGetIndAxisNumber (void) |
| Call this function from a probe destination callback to get the indepedent axis number associated with the line probe. | |
| LgIndex_t | TecUtilProbeGetPointIndex (void) |
| Call this function from a probe destination callback to get the point index from the previous nearest-point probe event in a field plot or an XY-plot. | |
| CZType_e | TecUtilProbeFieldGetCZType (void) |
| Indicates type type of COB or zone that was selected during the probe event. | |
| double | TecUtilProbeFieldGetValue (EntIndex_t VarNum) |
| Call this function from a probe destination callback to get a field variable value from the previous probe event in a field plot. | |
| EntIndex_t | TecUtilProbeFieldGetZone (void) |
| Call this function from a probe destination callback to get the zone number from the previous probe event in a field plot. | |
| IJKPlanes_e | TecUtilProbeFieldGetPlane (void) |
| Call this function from a probe destination callback to get the I-, J-, or K-plane from the previous probe event in a field plot. | |
| SmInteger_t | TecUtilProbeFieldGetFaceNumber (void) |
| Call this function from a probe destination callback to get the face number from the previous probe event in a field plot. | |
| LgIndex_t | TecUtilProbeFieldGetFaceCell (void) |
| Call this function from a probe destination callback to get the cell from the previous probe event in a field plot. | |
| LgIndex_t | TecUtilProbeFieldGetCell (void) |
| Call this function from a probe destination callback to get the cell from the previous probe event in a field plot. | |
| Boolean_t | TecUtilProbeFieldGetName (char **Name) |
| Call this function from a probe destination callback to get the name of the item that was probed. | |
| FieldData_pa | TecUtilProbeFieldGetReadableNativeRef (EntIndex_t Var) |
| Call this function from a probe destination callback to get a read-only handle to the native data from the probed item for the specified variable. | |
| FieldData_pa | TecUtilProbeFieldGetReadableDerivedRef (EntIndex_t Var) |
| Call this function from a probe destination callback to get a read-only handle to the derived data from the probed item for the specified variable. | |
| FieldData_pa | TecUtilProbeFieldGetReadableNLRef (EntIndex_t Var) |
| Call this function from a probe destination callback to get a read-only handle to the node-located data from the probed item for the specified variable. | |
| FieldData_pa | TecUtilProbeFieldGetReadableCCRef (EntIndex_t Var) |
| Call this function from a probe destination callback to get a read-only handle to the cell-centered data from the probed item for the specified variable. | |
| void | TecUtilProbeAtPosSequenceBeginX (ArgList_pa ArgList) |
| Begin a sequence of calling TecUtilProbeAtPosition() many times. | |
| void | TecUtilProbeAtPosSequenceEnd (void) |
| End a sequence of calling TecUtilProbeAtPosition() many times. | |
| Boolean_t | TecUtilProbeAtPosition (double X, double Y, double Z, LgIndex_t *ICell, LgIndex_t *JCell, LgIndex_t *KCell, IJKPlanes_e *Plane, EntIndex_t *CurZone, Boolean_t StartWithLocalCell, double *VValue_Array, Set_pa SourceZones, Boolean_t SearchVolume, Boolean_t GetZoneOnly, Boolean_t GetNearestPoint) |
| Use Tecplot's probe capability to return field values at a specified X, Y, [Z] location. | |
| void TecUtilProbeAllowCOBs | ( | void | ) |
Instructs Tecplot to include COBs (iso-surfaces, slices, streamtraces, and so forth) along with zones during a probe when an add-on has a callback registered with TecUtilProbeInstallCallback() and if the user is pressing the Alt key.
By default the Alt key is ignored for an add-on's installed probe callback. This function should be called after TecUtilProbeInstallCallback().
Fortran Syntax:
SUBROUTINE TecUtilProbeAllowCOBs()
Python Syntax:
Results = TecUtil.ProbeAllowCOBs()
Output:
Results[0] ReturnVal NONE
| void TecUtilProbeAtFieldIndexX | ( | ArgList_pa | ArgList | ) |
Use this function in concert with TecUtilProbeInstallCallback and TecUtilProbeInstallCallbackX.
Calling this function will call the most recently installed probe callback.
| ArgList | Set of Arglist entries. This is built using calls to TecUtilArgListAppendXXXX functions. |
| Type: | LgIndex_t |
| Arg Function: | TecUtilArgListAppendInt() |
| Default: | 1 |
| Required: | No |
| Notes: | I-Index at which to probe. |
| Type: | LgIndex_t |
| Arg Function: | TecUtilArgListAppendInt() |
| Default: | 1 |
| Required: | No |
| Notes: | J-Index at which to probe. |
| Type: | LgIndex_t |
| Arg Function: | TecUtilArgListAppendInt() |
| Default: | 1 |
| Required: | No |
| Notes: | K-Index at which to probe. |
| Type: | EntIndex_t |
| Arg Function: | TecUtilArgListAppendInt() |
| Required: | Yes |
| Notes: | The zone for this to perform the probe |
Python Syntax:
Results = TecUtil.ProbeAtFieldIndexX(ArgList)
Input:
ArgList dictionary
Output:
Results[0] ReturnVal NONE
| void TecUtilProbeAtFieldPositionX | ( | ArgList_pa | ArgList | ) |
Use this function in concert with TecUtilProbeInstallCallback and TecUtilProbeInstallCallbackX.
Calling this function will call the most recently installed probe callback.
| ArgList | Set of Arglist entries. This is built using calls to TecUtilArgListAppendXXXX functions. |
| Type: | double |
| Arg Function: | TecUtilArgListAppendDouble() |
| Required: | Yes |
| Notes: | X-position at which to probe. |
| Type: | double |
| Arg Function: | TecUtilArgListAppendDouble() |
| Required: | Yes |
| Notes: | Y-position at which to probe. |
| Type: | double |
| Arg Function: | TecUtilArgListAppendDouble() |
| Default: | 0.0 |
| Required: | No |
| Notes: | The Z-position at which to probe. Only required if plot type is 3D. |
| Type: | Set_pa |
| Arg Function: | TecUtilArgListAppendSet() |
| Default: | NULL |
| Required: | No |
| Notes: | The set of zones to which to limit the search. If not supplied all zones will be searched. |
| Type: | Boolean_t |
| Arg Function: | TecUtilArgListAppendInt() |
| Default: | TRUE |
| Required: | No |
| Notes: | Set to TRUE if the XYZ coordinates represent a data point inside of a 3-D volume zone. Set to FALSE to use the XY coordinates only which will return a point on the surface of a zone. Ignored when plot type is 2D Cartesian |
Python Syntax:
Results = TecUtil.ProbeAtFieldPositionX(ArgList)
Input:
ArgList dictionary
Output:
Results[0] ReturnVal NONE
// Install the probe callback ArgList_pa argList = TecUtilArgListAlloc(); TecUtilArgListAppendFunction(argList, SV_CALLBACKFUNCTION, MyProbeCallback); TecUtilArgListAppendString(argList, SV_STATUSLINETEXT, "My probe information text"); TecUtilArgListAppendArbParam(argList, SV_CLIENTDATA, 0); TecUtilProbeInstallCallbackX(argList); // Clear the argument list to ready it for TecUtilProbeAtFieldPositionX TecUtilArgListClear(argList); // Do the probe TecUtilArgListAppendDouble(argList, SV_X, 0.5); TecUtilArgListAppendDouble(argList, SV_Y, 0.2); TecUtilProbeAtFieldPositionX(argList); TecUtilArgListDealloc(&argList); // This function is called by TecUtilProbeAtFieldPositionX void MyProbeCallback(Boolean_t wasSuccessful, Boolean_t isNearestPoint, ArbParam_t clientData) { TecUtilLockStart(AddOnID); if ( wasSuccessful ) { ... Call TecUtilProbeXXXGetXXX functions to extract probe information ... } TecUtilLockFinish(AddOnID); }
| void TecUtilProbeAtLineIndexX | ( | ArgList_pa | ArgList | ) |
Use this function in concert with TecUtilProbeInstallCallback and TecUtilProbeInstallCallbackX.
Calling this function will call the most recently installed probe callback.
| ArgList | Set of Arglist entries. This is built using calls to TecUtilArgListAppendXXXX functions. |
| Type: | LgIndex_t |
| Arg Function: | TecUtilArgListAppendInt() |
| Default: | 1 |
| Required: | No |
| Notes: | I-Index at which to probe. |
| Type: | LgIndex_t |
| Arg Function: | TecUtilArgListAppendInt() |
| Default: | 1 |
| Required: | No |
| Notes: | J-Index at which to probe. |
| Type: | LgIndex_t |
| Arg Function: | TecUtilArgListAppendInt() |
| Default: | 1 |
| Required: | No |
| Notes: | K-Index at which to probe. |
| Type: | EntIndex_t |
| Arg Function: | TecUtilArgListAppendInt() |
| Required: | Yes |
| Notes: | The line-map on which to probe |
Python Syntax:
Results = TecUtil.ProbeAtLineIndexX(ArgList)
Input:
ArgList dictionary
Output:
Results[0] ReturnVal NONE
| void TecUtilProbeAtLinePositionX | ( | ArgList_pa | ArgList | ) |
Use this function in concert with TecUtilProbeInstallCallback and TecUtilProbeInstallCallbackX.
Calling this function will call the most recently installed probe callback.
| ArgList | Set of Arglist entries. This is built using calls to TecUtilArgListAppendXXXX functions. |
| Type: | double |
| Arg Function: | TecUtilArgListAppendDouble() |
| Required: | Yes |
| Notes: | Position along the line at which to probe |
| Type: | char |
| Arg Function: | TecUtilArgListAppendInt() |
| Required: | Yes |
| Notes: | 'X' or 'Y' for XY-Line plots 'T' or 'R' for Polar-Line plots |
| Type: | EntIndex_t |
| Arg Function: | TecUtilArgListAppendInt() |
| Default: | 1 |
| Required: | No |
| Notes: | If the plot type is PlotType_XYLine there are up to 5 X- and Y- axes. This parameter specifies the axis index on which to probe. |
Python Syntax:
Results = TecUtil.ProbeAtLinePositionX(ArgList)
Input:
ArgList dictionary
Output:
Results[0] ReturnVal NONE
| Boolean_t TecUtilProbeAtPosition | ( | double | X, | |
| double | Y, | |||
| double | Z, | |||
| LgIndex_t * | ICell, | |||
| LgIndex_t * | JCell, | |||
| LgIndex_t * | KCell, | |||
| IJKPlanes_e * | Plane, | |||
| EntIndex_t * | CurZone, | |||
| Boolean_t | StartWithLocalCell, | |||
| double * | VValue_Array, | |||
| Set_pa | SourceZones, | |||
| Boolean_t | SearchVolume, | |||
| Boolean_t | GetZoneOnly, | |||
| Boolean_t | GetNearestPoint | |||
| ) |
Use Tecplot's probe capability to return field values at a specified X, Y, [Z] location.
The current frame must have an attached data set when this function is called and the frame must be in 2D or 3D. This function is Thread Safe.
| X | The X-position at which to probe. | |
| Y | The Y-position at which to probe. | |
| Z | The Z-position at which to probe. Only required if plot type is 3D. If the frame mode is 3D and SearchVolume is FALSE, then only X and Y are used and they are assumed to be the XY coordinates in the eye coordinate system. The returned probe will be the location on the first surface encountered in the eye coordinate system | |
| ICell | For Ordered data this returns the I-Index of the cell in which the data point was found. If StartWithLocalCell is TRUE, then this must be pre-set to the I-index of the cell in which to start looking. |
| JCell | For Ordered data this returns the J-Index of the cell in which the data point was found. If StartWithLocalCell is TRUE, then this must be pre-set to the J-index of the cell in which to start looking. |
| KCell | Returns the K-Index of the cell in which the data point was found. If StartWithLocalCell is TRUE, then this must be pre-set to the K-index of the cell in which to start looking. |
| Plane | If the current frame is 3D, the plane of the cell in which the data point was found is returned. (Ignore if SearchVolume is TRUE.) Plane must be pre-set if the current frame is 2D and StartWithLocalCell is TRUE and the zone is not finite element. Plane can be one of: Planes_I Planes_J Planes_K | |
| CurZone | Returns the zone of the cell in which the data point was found | |
| StartWithLocalCell | TRUE if the search should be started in the area of cell *ICell,*JCell,*KCell. FALSE if the search should not be started in any particular cell | |
| VValue_Array | An array of doubles which is the size of the number of variables in the data set. The array must be allocated by the calling function. If TecUtilProbeAtPosition() returns TRUE and GetZoneOnly is FALSE, the array will be filled with the values of each variable at the probed position | |
| SourceZones | The set of zones to which to limit the search. Set to NULL to search all zones | |
| SearchVolume | Set to TRUE if the XYZ coordinates represent a data point inside of a 3-D volume zone. Set to FALSE to use the XY coordinates only which will return a point on the surface of a zone | |
| GetZoneOnly | Set to TRUE to do the minimal work necessary to only update the CurZone variable | |
| GetNearestPoint | TRUE to return values for the nearest grid point, FALSE to return interpolated values for the exact XYZ coordinates. A value of TRUE will cause this function to return FALSE if the initial probe does not fall within a cell |
INTEGER*4 FUNCTION TecUtilProbeAtPosition( & X, & Y, & Z, & ICell, & JCell, & KCell, & Plane, & CurZone, & StartWithLocalCell, & VValue_Array, & SourceZonesPtr, & SearchVolume, & GetZoneOnly, & GetNearestPoint) REAL*8 X REAL*8 Y REAL*8 Z INTEGER*4 ICell INTEGER*4 JCell INTEGER*4 KCell INTEGER*4 Plane INTEGER*4 CurZone INTEGER*4 StartWithLocalCell REAL*8 VValue_Array POINTER (SourceZonesPtr, SourceZones) INTEGER*4 SearchVolume INTEGER*4 GetZoneOnly INTEGER*4 GetNearestPoint
Python Syntax:
Results = TecUtil.ProbeAtPosition(X, Y, Z, StartWithLocalCell, SourceZones, SearchVolume, GetZoneOnly, GetNearestPoint)
Input:
X double
Y double
Z double
StartWithLocalCell boolean
SourceZones sequence of ints
SearchVolume boolean
GetZoneOnly boolean
GetNearestPoint boolean
Output:
Results[0] ReturnVal boolean
Results[1] ICell int
Results[2] JCell int
Results[3] KCell int
Results[4] Plane IJKPlanes_e (defined in TecVals.py)
Results[5] CurZone int
Results[6] VValue_Array double
Assuming a 2-D plot, probe at the location (3.2, 1.45):
LgIndex_t ICell, JCell, KCell; IJKPlanes_e Plane; EntIndex_t SourceZone; EntIndex_t NumVars; double *VValues; TecUtilDataSetGetInfo((char **)NULL, (EntIndex_t *)NULL, &NumVars); VValues = (double *)malloc(NumVars*sizeof(double)); if (TecUtilProbeAtPosition(3.2, 1.45, 0.0, &ICell, &JCell, &KCell, &Plane, &SourceZone, FALSE, VValues, (Set_pa )NULL, FALSE, FALSE, FALSE)) { // Look at VValues[VarNum-1] to find the // value for a particular variable. LgIndex_t PointIndex; if ( TecUtilZoneIsOrdered(SourceZone) ) { // Determine the primary point for the cell that was probed LgIndex_t IMax, JMax, KMax; TecUtilZoneGetIJK(SourceZone, &IMax, &JMax, &KMax); PointIndex = 1 + (ICell-1) + (JCell-1)*IMax + (KCell-1)*IMax*JMax; } else { // Determine the node number for the 1st corner of the probed element PointIndex = TecUtilDataNodeGetByZone(SourceZone, JCell, 1); // If we'd done a NearestPoint probe: // PointIndex = ICell; } } free(VValues);
| void TecUtilProbeAtPosSequenceBeginX | ( | ArgList_pa | ArgList | ) |
Begin a sequence of calling TecUtilProbeAtPosition() many times.
The following rules must be obeyed between TecUtilProbeAtPosSequenceBeginX() and TecUtilProbeAtPosSequenceEnd() calls:
- Do not make any calls that will change the style of the plot.
- Do not make any calls that will re-order or replace zones in
the underlying dataset (i.e. push or pop frames, load data, delete
zones etc.).
- Once a sequence has been started you MUST end the sequence
even if there was a failure of any sort in the intervening code.
| ArgList | Set of Arglist entries. THIS PARAMETER IS RESERVED FOR FUTURE USE AND IS CURRENTLY NOT USED. YOU MUST SET THIS TO NULL. |
LgIndex_t ICell, JCell, KCell; IJKPlanes_e Plane; Boolean_t StartWithLocalCell = FALSE; EntIndex_t SourceZone; EntIndex_t NumVars; double *VValues; int IX; TecUtilDataSetGetInfo((char **)NULL, (EntIndex_t *)NULL, &NumVars); VValues = (double *)malloc(NumVars*sizeof(double)); TecUtilProbeAtPosSequenceBeginX((ArgList_pa)NULL); for (IX = 1; IX <= 100; IX++) { if (TecUtilProbeAtPosition((double)IX, 1.45, 0.0, &ICell, &JCell, &KCell, &Plane, &SourceZone, StartWithLocalCell, VValues, (Set_pa )NULL, FALSE, FALSE, FALSE)) { // Look at VValues[VarNum-1] to find the // value for a particular variable. StartWithLocalCell = TRUE; } else StartWithLocalCell = FALSE; } TecUtilProbeAtPosSequenceEnd();
Fortran Syntax:
INTEGER*4 FUNCTION TecUtilProbeAtPosSequenceBeginX(ArgListPtr) POINTER (ArgListPtr, ArgList)
Python Syntax:
Results = TecUtil.ProbeAtPosSequenceBeginX(ArgList)
Input:
ArgList dictionary
Output:
Results[0] ReturnVal NONE
| void TecUtilProbeAtPosSequenceEnd | ( | void | ) |
End a sequence of calling TecUtilProbeAtPosition() many times.
See TecUtilProbeAtPosSequenceEnd() for an details and an example.
Fortran Syntax:
SUBROUTINE TecUtilProbeAtPosSequenceEnd()
Python Syntax:
Results = TecUtil.ProbeAtPosSequenceEnd()
Output:
Results[0] ReturnVal NONE
| LgIndex_t TecUtilProbeFieldGetCell | ( | void | ) |
Call this function from a probe destination callback to get the cell from the previous probe event in a field plot.
Fortran Syntax:
INTEGER*4 FUNCTION TecUtilProbeFieldGetCell()
Python Syntax:
Results = TecUtil.ProbeFieldGetCell()
Output:
Results[0] ReturnVal int
| CZType_e TecUtilProbeFieldGetCZType | ( | void | ) |
Indicates type type of COB or zone that was selected during the probe event.
INTEGER*4 FUNCTION TecUtilProbeFieldGetCZType()
Python Syntax:
Results = TecUtil.ProbeFieldGetCZType()
Output:
Results[0] ReturnVal CZType_e (defined in TecVals.py)
| LgIndex_t TecUtilProbeFieldGetFaceCell | ( | void | ) |
Call this function from a probe destination callback to get the cell from the previous probe event in a field plot.
Fortran Syntax:
INTEGER*4 FUNCTION TecUtilProbeFieldGetFaceCell()
Python Syntax:
Results = TecUtil.ProbeFieldGetFaceCell()
Output:
Results[0] ReturnVal int
| SmInteger_t TecUtilProbeFieldGetFaceNumber | ( | void | ) |
Call this function from a probe destination callback to get the face number from the previous probe event in a field plot.
Fortran Syntax:
INTEGER*4 FUNCTION TecUtilProbeFieldGetFaceNumber()
Python Syntax:
Results = TecUtil.ProbeFieldGetFaceNumber()
Output:
Results[0] ReturnVal int
| Boolean_t TecUtilProbeFieldGetName | ( | char ** | Name | ) |
Call this function from a probe destination callback to get the name of the item that was probed.
This may return a zone name if a zone was probed, or a COB name if TecUtilProbeAllowCOBs was called when the probe destination callback was installed.
| Name | Receives the name of the last-probed item. You must free the returned string with TecUtilStringDealloc(). |
INTEGER*4 FUNCTION TecUtilProbeFieldGetName( & Name, & NameLength) CHARACTER*(*) ZName INTEGER*4 ZNameLength
Python Syntax:
Results = TecUtil.ProbeFieldGetName(Name)
Input:
Name int
Output:
Results[0] ReturnVal boolean
| IJKPlanes_e TecUtilProbeFieldGetPlane | ( | void | ) |
Call this function from a probe destination callback to get the I-, J-, or K-plane from the previous probe event in a field plot.
INTEGER*4 FUNCTION TecUtilProbeFieldGetPlane()
Python Syntax:
Results = TecUtil.ProbeFieldGetPlane()
Output:
Results[0] ReturnVal IJKPlanes_e (defined in TecVals.py)
| FieldData_pa TecUtilProbeFieldGetReadableCCRef | ( | EntIndex_t | Var | ) |
Call this function from a probe destination callback to get a read-only handle to the cell-centered data from the probed item for the specified variable.
This function is Thread Safe.
| Var | Number of the variable for which to get the field data |
SUBROUTINE TecUtilProbeFieldGetReadableCCR(
& Var,
& ResultPtr)
INTEGER*4 Var
POINTER (ResultPtr, Result)
Python Syntax:
Results = TecUtil.ProbeFieldGetReadableCCRef(Var)
Input:
Var int
Output:
Results[0] ReturnVal opaque pointer
| FieldData_pa TecUtilProbeFieldGetReadableDerivedRef | ( | EntIndex_t | Var | ) |
Call this function from a probe destination callback to get a read-only handle to the derived data from the probed item for the specified variable.
This function is Thread Safe.
| Var | Number of the variable for which to get the field data |
SUBROUTINE TecUtilProbeFieldGetReadableDer(
& Var,
& ResultPtr)
INTEGER*4 Var
POINTER (ResultPtr, Result)
Python Syntax:
Results = TecUtil.ProbeFieldGetReadableDerivedRef(Var)
Input:
Var int
Output:
Results[0] ReturnVal opaque pointer
| FieldData_pa TecUtilProbeFieldGetReadableNativeRef | ( | EntIndex_t | Var | ) |
Call this function from a probe destination callback to get a read-only handle to the native data from the probed item for the specified variable.
This function is Thread Safe.
| Var | Number of the variable for which to get the field data |
SUBROUTINE TecUtilProbeFieldGetReadableNat(
& Var,
& ResultPtr)
INTEGER*4 Var
POINTER (ResultPtr, Result)
Python Syntax:
Results = TecUtil.ProbeFieldGetReadableNativeRef(Var)
Input:
Var int
Output:
Results[0] ReturnVal opaque pointer
| FieldData_pa TecUtilProbeFieldGetReadableNLRef | ( | EntIndex_t | Var | ) |
Call this function from a probe destination callback to get a read-only handle to the node-located data from the probed item for the specified variable.
This function is Thread Safe.
| Var | Number of the variable for which to get the field data |
SUBROUTINE TecUtilProbeFieldGetReadableNLR(
& Var,
& ResultPtr)
INTEGER*4 Var
POINTER (ResultPtr, Result)
Python Syntax:
Results = TecUtil.ProbeFieldGetReadableNLRef(Var)
Input:
Var int
Output:
Results[0] ReturnVal opaque pointer
| double TecUtilProbeFieldGetValue | ( | EntIndex_t | VarNum | ) |
Call this function from a probe destination callback to get a field variable value from the previous probe event in a field plot.
| VarNum | The variable number for which to get the field value. |
REAL*8 FUNCTION TecUtilProbeFieldGetValue(VarNum) INTEGER*4 VarNum
Python Syntax:
Results = TecUtil.ProbeFieldGetValue(VarNum)
Input:
VarNum int
Output:
Results[0] ReturnVal double
| EntIndex_t TecUtilProbeFieldGetZone | ( | void | ) |
Call this function from a probe destination callback to get the zone number from the previous probe event in a field plot.
INTEGER*4 FUNCTION TecUtilProbeFieldGetZone()
Python Syntax:
Results = TecUtil.ProbeFieldGetZone()
Output:
Results[0] ReturnVal int
| LgIndex_t TecUtilProbeGetPointIndex | ( | void | ) |
Call this function from a probe destination callback to get the point index from the previous nearest-point probe event in a field plot or an XY-plot.
In order to use this function, the value passed to the probe destination callback must have been TRUE, indicating a nearest-point probe.
INTEGER*4 FUNCTION TecUtilProbeGetPointIndex()
Python Syntax:
Results = TecUtil.ProbeGetPointIndex()
Output:
Results[0] ReturnVal int
| Boolean_t TecUtilProbeInstallCallback | ( | ProbeDestination_pf | ProbeDestination, | |
| const char * | InformationLineText | |||
| ) |
Change the mouse mode to be the probe tool, and instruct Tecplot to call a different function when the user completes a probe operation in the work area.
This function callback will remain in effect until the mouse mode is changed. In order to call this function, the current plot type must not be Sketch.
Note that by default, probes on COBs (iso-surfaces, slices, streamtraces, and so forth) will not trigger a callback. To obtain this behavior, call TecUtilProbeAllowCOBs() after installing the callback.
| ProbeDestination | Function to call when the probe event takes place. | |
| InformationLineText | Text to write on the status line when the override is in effect. |
INTEGER*4 FUNCTION TecUtilProbeInstallCallback( & ProbeDestination, & InformationLineText) EXTERNAL ProbeDestination CHARACTER*(*) InformationLineText
Python Syntax:
This function is not supported in Python.
Override the behavior of the probe tool in Tecplot. When a probe occurs, just print out the results of the probe to simulate some of the capabilities of the probe dialogs in Tecplot. The task is to provide a mechanism whereby your own probe callback overrides the default behavior when a probe event occurs in Tecplot. One way to do this is to add an option to the Tools menu in Tecplot. The callback function assigned to the menu option would then turn around and install the probe callback with the following code: .
. TecUtilProbeInstallCallback(MyProbeCallback, "Click to print out my probe information"); . TecUtilProbeAllowCOBs() . The function MyProbeCallback is then defined as: void MyProbeCallback(Boolean_t IsNearestPoint) { FrameMode_e FrameMode; TecUtilLockStart(AddOnID); FrameMode = TecUtilFrameGetMode(); if (FrameMode == Frame_XY) { printf("XY Probe, Independent value is: %G\n", TecUtilProbeLinePlotGetIndValue()); if (IsNearestPoint) { double DepValue; TecUtilProbeXYGetDepValue(1,&DepValue); printf("Nearest Point: Dependent Value = %G\n", DepValue); printf(" Source LineMap = %d\n", TecUtilProbeLinePlotGetMap()); printf(" Point Index = %d\n", TecUtilProbeGetPointIndex()); } else { EntIndex_t M; for (M = 1; M <= TecUtilLineMapGetCount(); M++) { double DepValue; printf("LineMap = %02d, Dependent Value = ",M); if (TecUtilProbeLinePlotGetDepValue(M,&DepValue)) printf("%G\n",DepValue); else printf("Unknown\n"); } } } else { EntIndex_t SourceZone = TecUtilProbeFieldGetZone(); ZoneType_e ZoneType = TecUtilZoneGetType(SourceZone); IJKPlanes_e Plane = TecUtilProbeFieldGetPlane(); EntIndex_t V; EntIndex_t NumVars; TecUtilDataSetGetInfo((char **)NULL, (EntIndex_t *)NULL, &NumVars); if (IsNearestPoint) printf("Nearest point probe:\n"); else { LgIndex_t ProbeCell = TecUtilProbeFieldGetCell(); printf("Interpolated probe:(Cell = %d)\n",ProbeCell); } for (V = 1; V <= NumVars; V++) { char *VName; if (TecUtilVarGetName(V,&VName)) { printf("%20s : ",VName); TecUtilStringDealloc(&VName); } else printf("<Unknown> : "); printf("%G\n",TecUtilProbeFieldGetValue(V)); } } TecUtilLockFinish(AddOnID); } A complete example can be found in the probtest sample add-on included in the distribution.
| Boolean_t TecUtilProbeInstallCallbackX | ( | ArgList_pa | ArgList | ) |
Change the mouse mode to be the probe tool, and instruct Tecplot to call a different function when the user completes a probe operation in the work area.
This function callback will remain in effect until the mouse mode is changed. In order to call this function, the current plot type must not be Sketch.
Note that, unlike TecUtilProbeInstallCallback, installing a callback via this function will always allows probes on COBs (iso-surfaces, slices, streamtraces, and so forth). So TecUtilProbeAllowCOBs need not be called afterwards.
| ArgList | Set of Arglist entries. This is built using calls to TecUtilArgListAppendXXXX functions. |
| Type: | ProbeDestinationX_pf |
| Arg Function: | TecUtilArgListAppendFunction() |
| Required: | Yes |
| Notes: | Function to call when the probe event takes place. |
| Type: | char* |
| Arg Function: | TecUtilArgListAppendString() |
| Default: | NULL |
| Required: | No |
| Notes: | Text to write on the status line when the override is in effect. |
| Type: | ArbParam_t |
| Arg Function: | TecUtilArgListAppendArbParam() |
| Default: | 0 |
| Required: | No |
| Notes: | Client data to be sent to the callback as a parameter. |
INTEGER*4 FUNCTION TecUtilProbeInstallCallback( & ProbeDestination, & InformationLineText) EXTERNAL ProbeDestination CHARACTER*(*) InformationLineText
Python Syntax:
This function is not supported in Python.
| Boolean_t TecUtilProbeLinePlotGetDepValue | ( | EntIndex_t | MapNum, | |
| double * | DepValue | |||
| ) |
Call this function from a probe destination callback to get a dependent value from the previous probe event in an Line-plot.
| MapNum | Number of the Line-map to query for its dependent value at the previous probe. | |
| DepValue | Dependent value resulting from previous probe. This parameter is ignored if the previous probe was a nearest-point probe. |
INTEGER*4 FUNCTION TecUtilProbeLinePlotGetDepValue( & MapNum, & DepValue) INTEGER*4 MapNum REAL*8 DepValue
Python Syntax:
Results = TecUtil.ProbeLinePlotGetDepValue(MapNum)
Input:
MapNum int
Output:
Results[0] ReturnVal boolean
Results[1] DepValue double
| char TecUtilProbeLinePlotGetIndAxisKind | ( | void | ) |
Call this function from a probe destination callback to get the indepedent axis kind associated with the line probe.
Together with TecUtilProbeLinePlotGetIndAxisNumber, this allows one to determine the axis associated with the value returned from TecUtilProbeLinePlotGetDepValue.
INTEGER*4 FUNCTION TecUtilProbeLinePlotGetIndAxisK()
Results = TecUtil.ProbeLinePlotGetIndAxisKind()
Output:
Results[0] ReturnVal int
| int TecUtilProbeLinePlotGetIndAxisNumber | ( | void | ) |
Call this function from a probe destination callback to get the indepedent axis number associated with the line probe.
Together with TecUtilProbeLinePlotGetIndAxisKind, this allows one to determine the axis associated with the value returned from TecUtilProbeLinePlotGetDepValue.
INTEGER*4 FUNCTION TecUtilProbeLinePlotGetIndAxisN()
Results = TecUtil.ProbeLinePlotGetIndAxisNumber()
Output:
Results[0] ReturnVal int
| double TecUtilProbeLinePlotGetIndValue | ( | void | ) |
Call this function from a probe destination callback to get the independent value from the previous probe event in an Line-plot.
REAL*8 FUNCTION TecUtilProbeLinePlotGetIndValue()
Python Syntax:
Results = TecUtil.ProbeLinePlotGetIndValue()
Output:
Results[0] ReturnVal double
| EntIndex_t TecUtilProbeLinePlotGetSourceMap | ( | void | ) |
Call this function from a probe destination callback to get the Line-map whose point was selected in the previous nearest-point probe.
In order to use this function, the value passed to the probe destination callback must have been TRUE, indicating a nearest-point probe.
INTEGER*4 FUNCTION TecUtilProbeLinePlotGetSourceMa()
Results = TecUtil.ProbeLinePlotGetSourceMap()
Output:
Results[0] ReturnVal int
1.5.5