Predefined graphical objects are defined by describing a shape that defines the outline of the object. This is done in two steps. First, the additional attributes that specifies the shape are defined, e.g to define a line shape, the shape defines three attributes: two end points and a line width. Secondly, the operation GetShape, that calculates the actual shape in terms of line and spline segments, is defined.
In practice it could be very difficult or impossible to define the GetShape operation, e.g. for text. In case the application programmer wants to utilize special hardware/firmware operations, the Draw and Erase operations of the graphical object must be specialized together with a corresponding fill operation of the Paint (cf. Predefined Paint Operations).
In case GetShape is not written for a particular predefined graphical object, the following operations must be further bound in the predefined shape:
When a graphical object is rendered on a drawing surface, it is the responsibility of the paint of the graphical object to do the actual displaying. As stated in The Paint, the rendering is accomplished by filling out a shape. Thus any paint has an operation FillShape that enters the shape to be filled.
To utilize the capacity of the basic graphics system a predefined shape can be drawn using a different approach. The shapes in question here could be lines with the minimal line width the output device can display, ellipses, arcs, and text.
To allow an efficient implementation of the fill operations Bifrost therefore supplies some additional filling operations for these special cases. These additional operations are only a supplement, the basic filling operation FillShape, must be able to handle all shapes. Bifrost supply the following additional fill operations:
The Bifrost Graphics System - Reference Manual | © 1991-2004 Mjølner Informatics |
[Modified: Tuesday October 24th 2000 at 22:29]
|