The concept Picture is a specialization of the concept GraphicalObject. The reason for this specialization is that the picture defines a list attribute consisting of graphical objects. Due to the specialization, the picture is also a graphical object, and can be added to the list of graphical objects in another Picure. The effect of this design is that every object in the list can be treated in an uniform way, without consideration to the actual type of the object. This is a very elegant foundation for Graphics Modelling.
The graphical objects are stacked (the hexagon being the front most graphical object):
Stacking graphical objects:
|
Resulting image:
|
When the graphical objects in the list are drawn in a canvas, each object is put on top of the other objects already drawn. Hence the graphical objects in the list are stacked relative to each other on the canvas with respect to their positions in the list. In other words, the last object in the list is the front most object on the canvas and the first object is the lowest object on the canvas. Objects in the end of the list may therefore cover other objects earlier in the list, depending of the positions of the objects. The position in the list is therefore important when a graphical object is manipulated interactively. The subject of interaction is discussed separately in Interaction.
There are several operations to manipulate the list of graphics objects and pictures. Two operations are used to add and delete objects to/from the list:
Two operations support moving the graphical objects relative to the other objects in the list:
Two operations support queries to the graphical objects in the list.
Finally, two operations support scanning through the graphical objects of the picture.
The Bifrost Graphics System - Reference Manual | © 1991-2004 Mjølner Informatics |
[Modified: Tuesday October 24th 2000 at 15:02]
|