Data Set Information


Functions

Boolean_t TecUtilDataSetSetTitle (const char *DataSetTitle)
  Set the title for the current data set.
VarLoadMode_e TecUtilDataSetGetVarLoadMode (void)
  Get the variable load mode for the current data set.
void TecUtilDataSetSuspendMarking (Boolean_t DoSuspend)
  Stops Tecplot for altering or marking the loaded dataset.
Boolean_t TecUtilDataSetIsLocked (char **LockString)
  Query to see of the data set attached to the current frame is locked.
UniqueID_t TecUtilDataSetGetUniqueID (void)
  Gets the unique ID for the data set in the current frame.
EntIndex_t TecUtilDataSetGetNumZones (void)
  Get the number of zones in the data set attached to the current frame.
EntIndex_t TecUtilDataSetGetNumVars (void)
  Get the number of variables in the data set attached to the current frame.
Strand_t TecUtilDataSetGetMaxStrandID (void)
  Get the largest Strand number currently in use.
Boolean_t TecUtilDataSetJournalIsValid (void)
  Query Tecplot to see if the journal for the data set attached to the current frame is valid.
Boolean_t TecUtilDataSetIsAvailableByUniqueID (UniqueID_t UniqueID)
  Determine if any frame in any page has an attached data set with the specified unique ID.
Boolean_t TecUtilDataSetIsAvailable (void)
  Determine if the current frame has a data set attached.
Boolean_t TecUtilDataSetIsSharingAllowed (void)
  Query to see if variable and connectivity sharing is permitted for this dataset.
Boolean_t TecUtilDataSetIsLODAllowed (void)
  Query to see if Load on Demand is permitted for this dataset.


Function Documentation

Strand_t TecUtilDataSetGetMaxStrandID ( void   ) 

Get the largest Strand number currently in use.

Use this value to ensure that your strand assignments are correct when adding zones

This function is Thread Safe.

Returns:
Returns the largest strand number currently in use.
Precondition:
Must have one or more frames.
Fortran Syntax:
    INTEGER*4 FUNCTION TecUtilDataSetGetMaxStrandID()

Python Syntax:

  Results = TecUtil.DataSetGetMaxStrandID()

  Output:
    Results[0]    ReturnVal            int

   Arglist_pa ArgList;
   Strand_t   MaxStrand;
   TecUtilLockStart(AddOnID);
   ArgList = TecUtilArgListAlloc();
   TecUtilArgListAppendString(ArgList, SV_NAME, "New Zone");
   TecUtilArgListAppendInt(ArgList, SV_ZONETYPE,
                           (ArbParam_t)ZoneType_Ordered);
   TecUtilArgListAppendInt(ArgList, SV_IMAX, 10);
   TecUtilArgListAppendInt(ArgList, SV_JMAX, 20);

   MaxStrand = TecUtilDataSetGetMaxStrandID();
   TecUtilArgListAppendInt(ArgList, SV_STRANDID, MaxStrand+1);

   TecUtilDataSetAddZoneX(ArgList);
   TecUtilArgListDealloc(&ArgList);
   TecUtilLockFinish(AddOnID);

See also:
TecUtilDataSetAddZoneX

EntIndex_t TecUtilDataSetGetNumVars ( void   ) 

Get the number of variables in the data set attached to the current frame.

This function is Thread Safe.

Returns:
The number of variables in the data set attached to the current frame.
Precondition:
Must have one or more frames.
Fortran Syntax:
    INTEGER*4 FUNCTION TecUtilDataSetGetNumVars()

Python Syntax:

  Results = TecUtil.DataSetGetNumVars()

  Output:
    Results[0]    ReturnVal            int

See also:
TecUtilDataSetGetInfo, TecUtilDataSetGetNumZones

EntIndex_t TecUtilDataSetGetNumZones ( void   ) 

Get the number of zones in the data set attached to the current frame.

This function is Thread Safe.

Returns:
The number of zones in the data set attached to the current frame.
Precondition:
Must have one or more frames.
Fortran Syntax:
    INTEGER*4 FUNCTION TecUtilDataSetGetNumZones()

Python Syntax:

  Results = TecUtil.DataSetGetNumZones()

  Output:
    Results[0]    ReturnVal            int

See also:
TecUtilDataSetGetInfo, TecUtilDataSetGetNumVars

UniqueID_t TecUtilDataSetGetUniqueID ( void   ) 

Gets the unique ID for the data set in the current frame.

A unique ID is an integer value unique to a data set during the Tecplot session. Using the unique ID a data set can be compared to other data sets and manipulated via TecUtil calls that take unique IDs. One such use is to determine if data sets are shared between frames. This function is Thread Safe.

Returns:
The unique ID for the data set in the current frame.
Precondition:
Must have one or more frames.
Fortran Syntax:
    INTEGER*4 FUNCTION TecUtilDataSetGetUniqueID()

Python Syntax:

  Results = TecUtil.DataSetGetUniqueID()

  Output:
    Results[0]    ReturnVal            long

Determine if the datasets of the top 2 frames are the same:

   {
     UniqueID_t ID;
     TecUtilLockStart(AddOnID);
     ID = TecUtilDataSetGetUniqueID();
     TecUtilFramePushTop();
     if ( ID == TecUtilDataSetGetUniqueID() )
       {
         // Datasets are the same for both frames
       }
     else
       {
         // Datasets are different
       }
     TecUtilLockFinish(AddOnID);
   }

VarLoadMode_e TecUtilDataSetGetVarLoadMode ( void   ) 

Get the variable load mode for the current data set.

This function is Thread Safe.

Returns:
The variable load mode. Possible values are VarLoadMode_ByName and VarLoadMode_ByPosition.
Fortran Syntax:
    INTEGER*4 FUNCTION TecUtilDataSetGetVarLoadMode()

Python Syntax:

  Results = TecUtil.DataSetGetVarLoadMode()

  Output:
    Results[0]    ReturnVal            VarLoadMode_e  (defined in TecVals.py)

Get the variable load mode for the current data set:

   VarLoadMode_e VarLoadMode;
   if ( TecUtilDataSetIsAvailable() )
     {
        VarLoadMode = TecUtilDataSetGetVarLoadMode();
       ...
     }

Boolean_t TecUtilDataSetIsAvailable ( void   ) 

Determine if the current frame has a data set attached.

This function is Thread Safe.

Returns:
TRUE if the current frame has an attached data set, FALSE if not.
See also:
TecUtilDataSetIsAvailableByUniqueID
Fortran Syntax:
    INTEGER*4 FUNCTION TecUtilDataSetIsAvailable()

Python Syntax:

  Results = TecUtil.DataSetIsAvailable()

  Output:
    Results[0]    ReturnVal            boolean

Get the number of zones for the data set for the current frame, or use zero if there is no data set:

   EntIndex_t nzones = 0;
   if ( TecUtilDataSetIsAvailable() )
     TecUtilDataSetGetInfo(NULL, &nzones, NULL);

Boolean_t TecUtilDataSetIsAvailableByUniqueID ( UniqueID_t  UniqueID  ) 

Determine if any frame in any page has an attached data set with the specified unique ID.

This function is Thread Safe.

Returns:
TRUE if any frame in any page has an attached data set with the specified unique ID, FALSE if not.
See also:
TecUtilDataSetIsAvailable
Since:
13.4.0
Fortran Syntax:
    INTEGER*4 FUNCTION TecUtilDataSetIsAvailableByUniqueID(UniqueID)
    INTEGER*4 UniqueID

Python Syntax:

  Results = TecUtil.DataSetIsAvailableByUniqueID(UniqueID)

  Input:
                  UniqueID             long
  Output:
    Results[0]    ReturnVal            boolean

Boolean_t TecUtilDataSetIsLocked ( char **  LockString  ) 

Query to see of the data set attached to the current frame is locked.

This function is Thread Safe.

Parameters:
LockString Allocated return string telling you the identifier originally used to lock the data set. You must deallocate this string when you are through with it. You can pass NULL for this parameter if you do not need to know who locked the data set
Returns:
Returns TRUE if the data set is locked, FALSE otherwise.
Precondition:
Must have one or more frames.

LockString Pointer must be a valid address or NULL.

Fortran Syntax:
    INTEGER*4 FUNCTION TecUtilDataSetIsLocked(
   &                   LockString,
   &                   LockStringLength)
    CHARACTER*(*)   LockString
    INTEGER*4       LockStringLength

Python Syntax:

  Results = TecUtil.DataSetIsLocked()

  Output:
    Results[0]    ReturnVal            boolean
    Results[1]    LockString           string

Boolean_t TecUtilDataSetIsLODAllowed ( void   ) 

Query to see if Load on Demand is permitted for this dataset.

This function is Thread Safe.

Returns:
Returns TRUE if Load On Demand is allowed in Tecplot, FALSE if otherwise.
Fortran Syntax:
    INTEGER*4 FUNCTION TecUtilDataSetIsLODAllowed()

Python Syntax:

  Results = TecUtil.DataSetIsLODAllowed()

  Output:
    Results[0]    ReturnVal            boolean

   Boolean_t IsLODAllowed;
   IsLODAllowed = TecUtilDataSetIsLODAllowed();.

Boolean_t TecUtilDataSetIsSharingAllowed ( void   ) 

Query to see if variable and connectivity sharing is permitted for this dataset.

You must still call TecUtilDataValueIsSharingOk() for variables and TecUtilDataConnectIsSharingOk() for connectivity to determine if a particular variable or if the connectivity may be shared.

This function is Thread Safe.

Returns:
Returns TRUE if sharing is allowed in Tecplot, FALSE if otherwise.
Fortran Syntax:
    INTEGER*4 FUNCTION TecUtilDataSetIsSharingAllowed()

Python Syntax:

  Results = TecUtil.DataSetIsSharingAllowed()

  Output:
    Results[0]    ReturnVal            boolean

   Boolean_t IsSharing;
   IsSharing = TecUtilDataSetIsSharingAllowed();.

See also:
TecUtilDataValueIsSharingOk() and TecUtilDataConnectIsSharingOk().

Boolean_t TecUtilDataSetJournalIsValid ( void   ) 

Query Tecplot to see if the journal for the data set attached to the current frame is valid.

This is a concern if a layout file is to be generated from an addon. When layouts are generated from an addon the layout must be able to reproduce all data sets via named files and journal entries. A data set will require saving if any un-journaled data operations are performed on it.

This function is Thread Safe.

Returns:
Returns TRUE if the data set journal is valid, FALSE otherwise.
Precondition:
Must have one or more frames.
Fortran Syntax:
    INTEGER*4 FUNCTION TecUtilDataSetJournalIsValid()

Python Syntax:

  Results = TecUtil.DataSetJournalIsValid()

  Output:
    Results[0]    ReturnVal            boolean

Boolean_t TecUtilDataSetSetTitle ( const char *  DataSetTitle  ) 

Set the title for the current data set.

Parameters:
DataSetTitle New title for the current frame's data set. The name will be trimmed of any leading or trailing whitespace and truncated to be no more than 128 characters in length.
Returns:
TRUE if successful, FALSE if not.
Precondition:
DataSetTitle Pointer must be a valid address and non-NULL.
Fortran Syntax:
    INTEGER*4 FUNCTION TecUtilDataSetSetTitle(DataSetTitle)
    CHARACTER*(*) DataSetTitle

Python Syntax:

  Results = TecUtil.DataSetSetTitle(DataSetTitle)

  Input:
                  DataSetTitle         string
  Output:
    Results[0]    ReturnVal            boolean

Set the current frame's data set title to be "Tecplot Data Set #1":

   TecUtilDataSetSetTitle("Tecplot Data Set #1");

void TecUtilDataSetSuspendMarking ( Boolean_t  DoSuspend  ) 

Stops Tecplot for altering or marking the loaded dataset.

Parameters:
DoSuspend A TRUE value to suspend the marking of the dataset and a FALSE value to allow marking.
Fortran Syntax:
    SUBROUTINE TecUtilDataSetSuspendMarking(DoSuspend)
    INTEGER*4 DoSuspend

Python Syntax:

  Results = TecUtil.DataSetSuspendMarking(DoSuspend)

  Input:
                  DoSuspend            boolean
  Output:
    Results[0]    ReturnVal            NONE

Set the Marking property to be TRUE:


Generated on Tue Mar 12 02:24:41 2013 for Tecplot by  doxygen 1.5.5