summaryrefslogtreecommitdiff
path: root/src/PrsMgr/PrsMgr_Presentation2d.cdl
blob: 9be4da329fbd467b3795145451e9b69ab3211383 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
-- File:	PrsMgr_Presentation2d.cdl
-- Created:	Thu Oct 21 13:09:32 1993
-- Author:	Jean-Louis FRENKEL
--		<jlf@stylox>
--Modified by rob Dec-16-97 		
---Copyright:	 Matra Datavision 1993



class Presentation2d from PrsMgr inherits Presentation from PrsMgr
        
    	---Purpose: A framework to manage 2D displays, graphic entities
    	-- and their updates. Plotters, Highlights, Minima
    	-- maxima, immediate display. 
        
uses
    GraphicObject from Graphic2d,
    PresentationManager2d from PrsMgr,
    KindOfPrs from PrsMgr
is
    Create(aPresentationManager2d: PresentationManager2d from PrsMgr) 
    returns  mutable Presentation2d from PrsMgr
    is private;
    	---Purpose: Creates a framework to manage displays and graphic
    	-- entities with the 2D view aStructureManager.
        
    KindOfPresentation(me) returns KindOfPrs from PrsMgr is redefined static;
    
    Destroy(me: mutable) is redefined;
    ---Level: Public    
    ---Purpose: Destructor.
    ---C++:     alias ~

    Display(me: mutable) is redefined static private;
    
    Erase(me) is redefined static private;
    
    Highlight(me: mutable) is redefined static private;
    
    Unhighlight (me) is redefined static private;
    
    IsDisplayed(me) returns Boolean from Standard
    is redefined static private;
    
    IsHighlighted(me) returns Boolean from Standard
    is redefined static private;

    DisplayPriority(me) returns Integer from Standard
    is redefined static private;
    
    SetDisplayPriority(me:mutable;aNewPrior:Integer from Standard)
    is redefined static private;
   

    Clear(me:mutable)
    	---Purpose: removes the whole content of the presentation.
              
    is redefined;

    Highlight(me; anIndex: Integer from Standard) 
    is static private;
    	
    ---Category: 2d specialized methods.
	
    EnablePlot (me)
    	---Purpose: Allows the drawing on a plotter of the graphic object
    	-- aPresentableObject with the display mode aMode.
    is static private;
 
    DisablePlot (me)
    	---Purpose: Forbids the drawing on a plotter of the graphic object
    	-- aPresentableObject with the display mode aMode.
    is static private;
    
    IsPlottable (me)
    returns Boolean from Standard
    	---Purpose: Returns true if the graphic object aPresentableObject
    	-- with the display mode aMode can be plotted.
    is static private;

    SetOffset (me: mutable;anOffset: Integer from Standard)
    is static ;
    	---Purpose: Specifies an Offset applied to the original color
    	--	    index of all primitives in the graphic object <me>.
    	--  Warning: To reset the real color of the primitives
        --	    you have to call this method with <anOffset> = 0.

    Offset (me)	returns Integer from Standard
    is static ;
    	---Level: Public
    	---Purpose: Returns the Offset applied to the original color
    	--	    index of all primitives in the graphic object <me>.
    	---Category: Methods to manage the highlight

    Presentation (me) returns mutable GraphicObject from Graphic2d
    is static ;

fields

    myStructure: GraphicObject from Graphic2d;

friends 
    class PresentationManager2d from PrsMgr,
    class PresentableObject from PrsMgr

end Presentation2d from PrsMgr;