7fd59977 |
1 | -- File: PrsMgr.cdl |
2 | -- Created: Wed Jan 25 08:44:01 1995 |
3 | -- Author: Jean-Louis Frenkel |
4 | -- <rmi@pernox> |
5 | ---Copyright: Matra Datavision 1995 |
6 | |
7 | package PrsMgr |
8 | ---Purpose: The PrsMgr package provides low level services |
9 | -- and is only to be used when you do not want to use |
10 | -- the services provided by AIS. |
11 | -- PrsMgr manages display through the following services: |
12 | -- - supplying a graphic structure for the object to be presented |
13 | -- - recalculating presentations when required, e.g. by |
14 | -- moving the object or changing its color |
15 | -- - defining the display mode of the object to be |
16 | -- presented; in the case of AIS_Shape, for example, |
17 | -- this determines whether the object is to be displayed in: |
18 | -- - wireframe 0 |
19 | -- - shading 1. |
20 | -- Note that each new Interactive Object must have all its display modes defined. |
21 | |
22 | uses |
23 | |
24 | MMgt,TCollection, |
25 | Graphic2d, |
26 | TopLoc, |
27 | Prs3d,Graphic3d, |
28 | Quantity,Geom, |
29 | Viewer, |
30 | TColStd, |
31 | gp |
32 | |
33 | is |
34 | |
35 | enumeration KindOfPrs is KOP_2D,KOP_3D |
36 | end KindOfPrs; |
37 | |
38 | enumeration TypeOfPresentation3d is TOP_AllView, TOP_ProjectorDependant |
39 | end TypeOfPresentation3d; |
40 | ---Purpose: To declare the type of presentation as follows |
41 | -- - AllView for display involving no recalculation for |
42 | -- new projectors (points of view)in hidden line removal mode |
43 | -- - ProjectorDependant for display in hidden line |
44 | -- removal mode, where every new point of view |
45 | -- entails recalculation of the display. |
46 | |
47 | deferred class PresentationManager; |
48 | deferred class Presentation; |
49 | deferred class PresentableObject; |
50 | |
51 | class PresentationManager2d; |
52 | class PresentationManager3d; |
53 | |
54 | class Prs; |
55 | class Presentation2d; |
56 | class Presentation3d; |
57 | |
58 | class ModedPresentation; |
59 | class Presentations instantiates Sequence from TCollection |
60 | (ModedPresentation from PrsMgr); |
61 | pointer Presentation3dPointer to Presentation3d from PrsMgr; |
62 | pointer PresentableObjectPointer to PresentableObject from PrsMgr; |
63 | end PrsMgr; |