Graphisoft®

API Development KitVersion: 18

ExportPolyProc

Called to draw a sector.

    typedef GSErr GX_CALL ExportPolyProc (
       void*          userDataPtr,
       long           nends,
       const long*    pends,
       long           ncoos,
       const double*  pcoos,
       short          fpenind,
       GS_RGBColor*   forecolor,
       short          bpenind,
       GS_RGBColor*   backcolor,
       short          fillind,
       GSPattern*     pattern,
       long*          longvals
       short*         shrtvals
       bool           shadowElem
       GSConstPtr     addInfo
);

Parameters

userDataPtr
The user-defined data set in the caller function.
nends
The number of contours of the polygon.
pends
Pointer to a long array indexed from 0 to nends, including the indexes of the last vertices of each contour.
ncoos
The number of vertices of the polygon.
pcoos
Pointer to a double array including the projected coordinates of the vertices of the polygon, pcoos [2 * i]: the X coordinate of the i-th vertex, pcoos [2 * i + 1]: the Y coordinate fo the i-th vertex.
fpenind
The pen index of the polygon pattern foreground.
forecolor
The GS_RGBColor of the polygon pattern foreground
bpenind
The pen index of the polygon pattern background.
backcolor
The GS_RGBColor of the polygon pattern background.
fillind
The fill index of the polygon pattern
GSPattern
Fill Pattern
longvals, shortvals
Pointer to a long array with three values (longvals) and pointer to a short array with four values (shortvals) which were defined with the seven parameters of the VOCA statement in GDDL scripts. This additional information is stored in the body record of the 3d data structure
shadowElem
Shadow Element.
addInfo
Additional Information

Return Values

If the function succeeds, the return value is NoError. If the function fails, the return value is the error code.

Requirements

Version: API 10.0 or later, ModelerGraphics 8 or later
Header: G2DProcs.h

See Also

VIDrawContext struct