1 -- File: PrsMgr_Presentation2d.cdl
2 -- Created: Thu Oct 21 13:09:32 1993
3 -- Author: Jean-Louis FRENKEL
5 --Modified by rob Dec-16-97
6 ---Copyright: Matra Datavision 1993
10 class Presentation2d from PrsMgr inherits Presentation from PrsMgr
12 ---Purpose: A framework to manage 2D displays, graphic entities
13 -- and their updates. Plotters, Highlights, Minima
14 -- maxima, immediate display.
17 GraphicObject from Graphic2d,
18 PresentationManager2d from PrsMgr,
21 Create(aPresentationManager2d: PresentationManager2d from PrsMgr)
22 returns mutable Presentation2d from PrsMgr
24 ---Purpose: Creates a framework to manage displays and graphic
25 -- entities with the 2D view aStructureManager.
27 KindOfPresentation(me) returns KindOfPrs from PrsMgr is redefined static;
29 Destroy(me: mutable) is redefined;
31 ---Purpose: Destructor.
34 Display(me: mutable) is redefined static private;
36 Erase(me) is redefined static private;
38 Highlight(me: mutable) is redefined static private;
40 Unhighlight (me) is redefined static private;
42 IsDisplayed(me) returns Boolean from Standard
43 is redefined static private;
45 IsHighlighted(me) returns Boolean from Standard
46 is redefined static private;
48 DisplayPriority(me) returns Integer from Standard
49 is redefined static private;
51 SetDisplayPriority(me:mutable;aNewPrior:Integer from Standard)
52 is redefined static private;
54 SetZLayer ( me : mutable;
55 theLayerId : Integer from Standard )
56 is redefined static private;
57 ---Purpose: Set Z layer ID for the presentation
60 returns Integer from Standard is redefined static private;
61 ---Purpose: Get Z layer ID for the presentation
64 ---Purpose: removes the whole content of the presentation.
68 Highlight(me; anIndex: Integer from Standard)
71 ---Category: 2d specialized methods.
74 ---Purpose: Allows the drawing on a plotter of the graphic object
75 -- aPresentableObject with the display mode aMode.
79 ---Purpose: Forbids the drawing on a plotter of the graphic object
80 -- aPresentableObject with the display mode aMode.
84 returns Boolean from Standard
85 ---Purpose: Returns true if the graphic object aPresentableObject
86 -- with the display mode aMode can be plotted.
89 SetOffset (me: mutable;anOffset: Integer from Standard)
91 ---Purpose: Specifies an Offset applied to the original color
92 -- index of all primitives in the graphic object <me>.
93 -- Warning: To reset the real color of the primitives
94 -- you have to call this method with <anOffset> = 0.
96 Offset (me) returns Integer from Standard
99 ---Purpose: Returns the Offset applied to the original color
100 -- index of all primitives in the graphic object <me>.
101 ---Category: Methods to manage the highlight
103 Presentation (me) returns mutable GraphicObject from Graphic2d
108 myStructure: GraphicObject from Graphic2d;
111 class PresentationManager2d from PrsMgr,
112 class PresentableObject from PrsMgr
114 end Presentation2d from PrsMgr;