Category External objects, Object ProDispdat

Function ProDispdatEntsWithColorSet


Description
Sets the display data for a list of entities and the color for each entity. The entities are specified in the local coordinates of the external object. To transform them to model coordinates, use the disp_data transformation matrix (see the function ProDispdatTrfSet()). NOTE: The only entities for which this is supported are PRO_ENT_LINE and PRO_ENT_ARC. (Polygons may be drawn as multiple lines, and circles as arcs of extent 2 * pi.)
Replacement in Object TOOLKIT: wfcExternalObject::AddData
wfcExternalObject::ModifyData
Synopsis
#include <ProExtobjDisp.h>
ProErrorProDispdatEntsWithColorSet(
ProWExtobjdata disp_data
/* (In)
The display data.
*/
ProCurvedata** entities
/* (In)
ProArray of pointers to ProCurvedata allocated by the user.
*/
ProColortype* colors
/* (In)
Corresponding ProArray of colors (ProColortype) allocated by the user.
*/
)
Returns
PRO_TK_NO_ERRORThe function successfully set the display data.
PRO_TK_BAD_INPUTSOne or more of the arguments are invalid.
PRO_TK_GENERAL_ERRORThe entity was not found, or the function could not set the data.

Manual References:

  1. Event-driven Programming: External Objects: Display Data for External Objects