AddHatchWhole


Adds a hatch to the VectorImage.


GSErrCode  AddHatchWhole (
    short               contPen,
    short               contLTyp,
    short               fillPen,
    short               bkgPen,
    short               layer,
    short               drwIndex,
    ULong               unId,
    const Coord*        offset,
    double              refAngle,
    short               fillind,
    long                npb,
    const long*         boends,
    long                npc,
    double*             coords,
    double*             angles
);

Parameters

contPen
The drawing pen of the contour of the hatch.
contLTyp
The used line type attribute.
fillPen
The pen of the fill.
bkgPen
The pen of the fill background. Zero means transparent.
layer
The containing layer of the hatch It should range from 1 to 16.
drwIndex
The drawing index of the hatch. It influences the drawing order of the item.
unId
Reserved, should be zero.
offset
The origo of the fill will be offseted with this vector. Can be NULL.
refAngle
The co-ordinate system of the fill will be rotated by this angle. Its unit is radian.
fillind
The fill shape of the hatch.
npb
The count of the contours of the polygon.
boends
The ending vertex indices of contours. It should consist of nbp longs.
npc
The count of vertices of the whole polygon.
coords
The vertices: a pair of doubles means a point. It should consist of 2 * npc doubles.
angles
The view angles of the edges. It should consist of npc doubles.

Return value

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

Description

Addition always merges the new item to the end of the primitives list but drawing order can differ from placing order.

Requirements

Version:API 10.0 or later, ModelerGraphics 8 or later
Library:ModelerGraphicsImp.lib (Win) or ModelerGraphics.framework (Mac)
Header:VectorImage.hpp