Extends the Vector class with support for generating rectangles.
VectorRectangle extends the Vector class with the ability to generate rectangular paths.
The VectorRectangle class consists of the following fields:
Access | Name | Type | Comment |
|---|---|---|---|
| Height | UNIT | The height of the rectangle. Can be expressed as a fixed or scaled coordinate. | |
The height of the rectangle is defined here as either a fixed or scaled value. Negative values are permitted (this will flip the rectangle on the vertical axis). | |||
| RoundX | UNIT | Specifies the size of rounded corners on the horizontal axis. | |
The corners of a rectangle can be rounded by setting the RoundX and RoundY values. Each value is interpreted as a radius along the relevant axis. A value of zero (the default) turns off this feature. | |||
| RoundY | UNIT | Specifies the size of rounded corners on the vertical axis. | |
The corners of a rectangle can be rounded by setting the RoundX and RoundY values. Each value is interpreted as a radius along the relevant axis. A value of zero (the default) turns off this feature. | |||
| Rounding | Unit [] | Precisely controls rounded corner positioning. | |
Set the Rounding field if all four corners of the rectangle need to be precisely controlled. Four X,Y sizing pairs must be provided in sequence, with the first describing the top-left corner and proceeding in clockwise fashion. Each pair of values is equivalent to a RoundX,RoundY definition for that corner only. | |||
| Width | UNIT | The width of the rectangle. Can be expressed as a fixed or scaled coordinate. | |
The width of the rectangle is defined here as either a fixed or scaled value. Negative values are permitted (this will flip the rectangle on the horizontal axis). | |||
| X | UNIT | The left-side of the rectangle. Can be expressed as a fixed or scaled coordinate. | |
| XOffset | UNIT | The right-side of the rectangle, expressed as a fixed or scaled offset value. | |
| Y | UNIT | The top of the rectangle. Can be expressed as a fixed or scaled coordinate. | |
| YOffset | UNIT | The bottom of the rectangle, expressed as a fixed or scaled offset value. | |
The following actions are currently supported:
| Move | Moves the vector to a new position. | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
ERR acMove(*Object, DOUBLE DeltaX, DOUBLE DeltaY, DOUBLE DeltaZ)
| ||||||||||||
| MoveToPoint | Moves the vector to a new fixed position. | |||||||||||
ERR acMoveToPoint(*Object, DOUBLE X, DOUBLE Y, DOUBLE Z, MTF Flags)
| ||||||||||||
| Resize | Changes the rectangle dimensions. | |||||||||||
ERR acResize(*Object, DOUBLE Width, DOUBLE Height, DOUBLE Depth)
| ||||||||||||