GPHIGS is a graphic system for storing and handling data organized as structures within the CSS.
The CSS is the core of GPHIGS implementation. 2D or 3D graphics objects are generated in this graphics data base for display on the workstation.
The basic unit is called an element. Elements are put together in structures. A special element also makes it possible to connect structures in a hierarchical network. This type of element makes it possible for a structure to refer to another structure. This reference comes into play when a structure is plotted on a workstation, as explained below.
A structure is called a parent if it refers to other structures. A structure is called a child if it is referred to by other structures.
The elements in a structure are one of the following types :
Graphics primitives : e.g. the PPL polyline primitive is defined by a list of points joined by straight segments when the element is plotted.
Primitive attributes : e.g. the PSPLCI line color index attribute which specifies the color index to be used during plotting the following ppolylines in the structure
Transformation : e.g. the PSLMT local transformation element introducing a transformation matrix (e.g. a translation) which is taken into account by all the points defining a graphics primitive when the primitives are plotted
View index : the PSVWI view index: function indicates which view should be used to plot the graphics primitives following this element in the structure
Modelling clipping : this type of element clips graphics primitives in one or more planes in space. This clipping is carried out when the structure is plotted
Pick identifier : this type of element is used to recover an identifier during a graphics primitive pick operation (e.g. by a mouse)
Label : PLB label function : this element is useful for structure management : marking, modification, or destruction of structure element
Name set : PADS add name set function : when a structure is plotted, this element is used to make certain primitives in the structure visible or invisible (and detectable or indetectable) even if they are in the "field of vision" of the current view
Application data : this element stores information specific to the application using PHIGS in a given structure.
Execute struct : this element makes it possible for one structure to refer to another structure. The only parameter of the PEXST execute structure function is the identifier of the structure to be refered. Therefore, this element makes it possible to build a CSS corresponding to a structure network. Without this element, the CSS is merely a set of unconnected structures. The following diagram shows the correspondence between an image of the contents of several structures and an image of the CSS in graph form. Each * represents any structure element


These elements are, however, quite useful. In particular, label elements are very useful in structure construction and modification phases.