0023710: Simplification of presentation managment classes
[occt.git] / src / PrsMgr / PrsMgr_Presentation.cdl
CommitLineData
b311480e 1-- Created on: 1995-01-25
2-- Created by: Jean-Louis Frenkel
3-- Copyright (c) 1995-1999 Matra Datavision
973c2be1 4-- Copyright (c) 1999-2014 OPEN CASCADE SAS
b311480e 5--
973c2be1 6-- This file is part of Open CASCADE Technology software library.
b311480e 7--
d5f74e42 8-- This library is free software; you can redistribute it and/or modify it under
9-- the terms of the GNU Lesser General Public License version 2.1 as published
973c2be1 10-- by the Free Software Foundation, with special exception defined in the file
11-- OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
12-- distribution for complete text of the license and disclaimer of any warranty.
b311480e 13--
973c2be1 14-- Alternatively, this file may be used under the terms of Open CASCADE
15-- commercial license or contractual agreement.
b311480e 16
af324faa 17class Presentation from PrsMgr
18inherits TShared from MMgt
7fd59977 19
20uses
21
af324faa 22 PresentationManager from PrsMgr,
23 NameOfColor from Quantity,
24 Transformation from Geom,
25 Length from Quantity,
26 ShadingAspect from Prs3d,
27 TypeOfPresentation3d from PrsMgr,
28 DataStructureManager from Graphic3d,
29 Structure from Graphic3d,
30 PresentableObjectPointer from PrsMgr,PresentableObject from PrsMgr,
31 Prs from PrsMgr,
32 Projector from Prs3d,
33 Presentation from Prs3d
7fd59977 34
35is
36
af324faa 37 Create (thePresentationManager : PresentationManager from PrsMgr;
38 thePresentableObject : PresentableObject from PrsMgr)
39 returns mutable Presentation from PrsMgr
40 is private;
41
42 Destroy (me : mutable) is virtual;
43 ---Level: Public
44 ---Purpose: Destructor
45 ---C++: alias ~
46
47 Display (me : mutable)
48 is virtual private;
49
50 Display (me : mutable;
51 theIsHighlight : Boolean from Standard)
52 is static private;
53 ---Purpose: Displays myStructure and sets myDisplayReason to theIsHighlight value if
54 -- myStructure was not displayed or was invisible
55
56 Erase (me : mutable)
57 is virtual private;
58
59 SetVisible (me : mutable;
60 theValue : Boolean from Standard)
61 is virtual private;
62
63 Highlight (me : mutable) is virtual private;
64
65 Unhighlight (me) is virtual private;
66
67 IsHighlighted (me) returns Boolean from Standard
68 is virtual private;
69
70 IsDisplayed (me) returns Boolean from Standard
71 is virtual private;
72
73 DisplayPriority(me) returns Integer from Standard
74 is virtual private;
75
76 SetDisplayPriority(me:mutable;aNewPrior:Integer from Standard)
77 is virtual private;
78
79 SetZLayer (me : mutable;
80 theLayerId : Integer from Standard)
81 is virtual private;
82 ---Purpose: Set Z layer ID for the presentation
83
84 GetZLayer (me) returns Integer from Standard
85 is virtual private;
86 ---Purpose: Get Z layer ID for the presentation
87
88 Clear (me : mutable)
89 is virtual private;
90 ---Purpose: removes the whole content of the presentation.
91 -- Does not remove the other connected presentations.
92
93 Color (me : mutable;
94 theColor : NameOfColor from Quantity)
95 is static private;
96
97 BoundBox (me)
98 is static private;
99
100---Category: references to other presentation.
101
102 Connect (me;
103 theOther : Presentation from PrsMgr)
104 is static private;
105
106---Category: Transformation methods.
107
108 Transform (me;
109 theTrsf : Transformation from Geom)
110 is static private;
111
112 Place (me;
113 theX, theY, theZ : Length from Quantity)
114 is static private;
115
116 Multiply (me;
117 theTrsf : Transformation from Geom)
118 is static private;
119
120 Move (me;
121 theX, theY, theZ : Length from Quantity)
122 is static private;
123
124---Category: Global Aspect methods
125
126 SetShadingAspect (me;
127 theShadingAspect : ShadingAspect from Prs3d)
128 is static private;
129
130 Presentation (me) returns mutable Presentation from Prs3d
131 is static;
132 ---C++: inline
133 ---C++: return const&
134
135---Category: Computed Structures
136
137 Compute (me : mutable;
138 theStructure : Structure from Graphic3d)
139 is static private;
140
141 Compute (me : mutable;
142 theProjector : DataStructureManager from Graphic3d)
143 returns Structure from Graphic3d
144 is static private;
145
146 Compute (me : mutable;
147 theProjector : DataStructureManager from Graphic3d;
148 theTrsf : Transformation from Geom)
149 returns Structure from Graphic3d
150 is static private;
151
152 Compute (me : mutable;
153 theProjector : DataStructureManager from Graphic3d;
154 theGivenStruct : Structure from Graphic3d)
155 is static private;
156
157 Compute (me : mutable;
158 theProjector : DataStructureManager from Graphic3d;
159 theTrsf : Transformation from Geom;
160 theGivenStruct : Structure from Graphic3d)
161 is static private;
162
7fd59977 163---Category: Inquire Methods
7fd59977 164
af324faa 165 PresentationManager (me) returns mutable PresentationManager
166 ---Purpose: returns the PresentationManager in which the presentation has been created.
167 is static;
168 ---C++: inline
169 ---C++: return const&
170
171 Projector (myclass;
172 theProjector : DataStructureManager from Graphic3d)
173 returns Projector from Prs3d
174 is private;
7fd59977 175
176---Category: Internal Methods
177
af324faa 178 SetUpdateStatus (me : mutable;
179 theStat : Boolean from Standard);
180 ---C++: inline
7fd59977 181
af324faa 182 MustBeUpdated (me) returns Boolean from Standard;
183 ---C++: inline
7fd59977 184
185fields
186
af324faa 187 myPresentationManager : PresentationManager from PrsMgr;
188 myStructure : Prs from PrsMgr;
189 myPresentableObject : PresentableObjectPointer from PrsMgr;
190 myMustBeUpdated : Boolean from Standard;
191 myDisplayReason : Boolean from Standard;
7fd59977 192
193friends
af324faa 194
195 class PresentationManager from PrsMgr,
196 class PresentableObject from PrsMgr,
197 class Prs from PrsMgr
198
7fd59977 199end Presentation from PrsMgr;