Category Graphics and model display, Object ProDisplist2d

Function ProDisplist2dCreate


Description
Creates a 2-D display list using the specified user-supplied create function.

NOTES:

  • A typical user-supplied create function would call the Creo Parametric TOOLKIT graphics functions.
  • A view must be present for display list creation. To do this, retrieve an empty part, assembly, or drawing file during the session.
  • The display is not stored with the model.
Replacement in Object TOOLKIT: pfcDisplay::CreateDisplayList2D
Synopsis
#include <ProDisplist.h>
ProErrorProDisplist2dCreate(
int id
/* (In)
The unique identifier of the display list to be created.
*/
ProMatrix transform
/* (In)
The transformation matrix to be applied to the points of the display list.
*/
ProDisplistCallback function
/* (In)
The user-defined function that calls graphics functions to create a display list. It must return PRO_TK_NO_ERROR if successful, and non-zero for error.
*/
...
/* (In)
The arguments to the user-supplied function.
*/
)
Returns
PRO_TK_NO_ERRORThe function successfully created the 2-D display list.
OtherAny other value is the status returned by the user create function.

Manual References:

  1. Pro/DEVELOP to Creo Toolkit Function Mapping: Equivalent Pro/DEVELOP Functions
  2. User Interface: Basic Graphics: Display Lists
  3. User Interface: Basic Graphics: Display Lists

Sample Code References:

  1. pt_examples ( TestDisplist.c )
  2. pt_examples ( UtilTree.c )