Sy_​HatchType

Defines a polygonal filled area.

struct Sy_HatchType {
    long             item_Len;
    unsigned char    item_Typ;
    char             drwIndex;
    short            sy_fillPen;
    short            sy_layer;
    short            fillPat;
    short            contPen;
    short            contLType;
    short            fillbkgPen;
    bool             global;
    bool             filler_0;
    long             filler_1;
    Coord            offset;
    double           angle;
    long             nCoords;
    long             nSubPolys;
    long             nArcs;
    long             coorLen;
    long             coorOff;
    long             endsLen;
    long             endsOff;
    long             arcsLen;
    long             arcsOff;
    long             filler_2;
    long             filler_3;
    long             filler_4;
};

Members

item_Len
The length of the data record = endsOff+Round_UP_8(endsLen)+Round_UP_8(arcsLen).
item_Typ
Constant SyHatch.
drwIndex
Index in drawing order or 0.
sy_fillPen
Pen (color and line thickness) information or 0 if not hatched.
sy_layer
The number of the fragment (layer) this element belongs to (Ranges 1 – 16).
fillPat
The fill of the hatch or 0 if not hatched.
contPen
Contour line pen (0 if not framed hatch).
contLType
Contour line line-type.
fillbkgPen
The fill background of the hatch or 0 if not hatched.
global
True if the fill’s anchor position and direction is not linked to the element.
filler_0
Reserved, should be 0.
filler_1
Reserved, should be 0.
offset
Anchor position of the fill if the fill linked to the element.
angle
Direction of the fill if the fill linked to the element.
nCoords
Total number of vertices in all contours.
nSubPolys
Number of contours including the a main (first) contour.
nArcs
Number of arced edges in the whole polygon.
coorLen
The size of all the Coords data in bytes.
coorOff
Offset of the Polygon coordinate from record start = sizeof(Sy_HatchType).
endsLen
Contour endpoints data length in bytes.
endsOff
Offset of the Contour endpoints data from record start = sizeof(Sy_HatchType)+ROUND_UP_8(coorLen).
arcsLen
Arcs data length in bytes.
arcsOff
Offset of the Arcs data from record start = sizeof(Sy_HatchType)+ROUND_UP_8(coorLen)+ROUND_UP_8(endsLen).
filler_2
Reserved, should be 0.
filler_3
Reserved, should be 0.
filler_4
Reserved, should be 0.

Remarks

A hatch record consists of a fixed-size part(the above structure) and three variable-size parts (the vertices, the contour ends and the arcs). The contour ends are an array of vertex indices into the vertices. It should have as many entries as contours in the polygons, plus one. The first entry should be 0, because it is the index of the first vertex of the first contour. The last entry should be equal the number of all vertices in the hatch polygon.

Requirements

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

See Also

VectorImage