Polygon

This object outputs a polygon that can be of the types convex, non-convex, complex and open. If the type is not “open”, the Working Set must specify the type. The VT uses the “even-odd” fill algorithm and automatically closes the polygon if it is not closed manually. The points are relative to the top left corner of the Output Polygon object and must comprise at least three points.

Attributes

AID
Attribute
Description
Object Id

Unique identifier of the object. This must be unique within the object pool (2 bytes, 0-65534).

Type

The type of the object.

Width

Width of the object in pixels.

Height

Height of the object in pixels.

Line Attributes

Object ID of a Line Attributes object that is used for the line attributes.

Fill Attributes

Object Id of a Fill Attributes object to be used for the fill attributes, or NULL for no fill.

Polygon Type

Polygon type. The first three types are only useful if the polygon is to be filled. The VT designer may decide to implement only a complex fill algorithm, since this works with all types. The polygon type can only be changed from open to not open or from not open to open.

0 = Convex. On any given horizontal line, only two points of the polygon are hit.
1 = Non-convex. On any given horizontal line, more than two points on the polygon edges may be hit, but the edges of the polygon do not intersect.
2 = Complex. Similar to non-convex, but the edges intersect. Uses the complex fill algorithm.
3 = Open. This type cannot be filled.

Number of Points

Number of following points. Each point consists of 4 bytes. At least three (3) points must be listed for this object to exist.

Number of Macros to follow

Number of contained macro references, even if it is zero.

Each macro reference consists of 2 bytes: one for the event Id and one for the macro Id.

When the specified event occurs, the associated macro is executed. VT version 5 and later: A reference to a macro with a 16-bit Object Id counts as 2 macro references in the context of this attribute.