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. |
7fd59977 |
16 | |
17 | package PrsMgr |
18 | ---Purpose: The PrsMgr package provides low level services |
19 | -- and is only to be used when you do not want to use |
20 | -- the services provided by AIS. |
21 | -- PrsMgr manages display through the following services: |
22 | -- - supplying a graphic structure for the object to be presented |
23 | -- - recalculating presentations when required, e.g. by |
24 | -- moving the object or changing its color |
25 | -- - defining the display mode of the object to be |
26 | -- presented; in the case of AIS_Shape, for example, |
27 | -- this determines whether the object is to be displayed in: |
28 | -- - wireframe 0 |
29 | -- - shading 1. |
30 | -- Note that each new Interactive Object must have all its display modes defined. |
31 | |
32 | uses |
33 | |
34 | MMgt,TCollection, |
7fd59977 |
35 | TopLoc, |
36 | Prs3d,Graphic3d, |
37 | Quantity,Geom, |
6942f04a |
38 | V3d, |
7fd59977 |
39 | TColStd, |
40 | gp |
41 | |
42 | is |
43 | |
44 | enumeration KindOfPrs is KOP_2D,KOP_3D |
45 | end KindOfPrs; |
46 | |
47 | enumeration TypeOfPresentation3d is TOP_AllView, TOP_ProjectorDependant |
48 | end TypeOfPresentation3d; |
49 | ---Purpose: To declare the type of presentation as follows |
50 | -- - AllView for display involving no recalculation for |
51 | -- new projectors (points of view)in hidden line removal mode |
52 | -- - ProjectorDependant for display in hidden line |
53 | -- removal mode, where every new point of view |
54 | -- entails recalculation of the display. |
55 | |
56 | deferred class PresentationManager; |
57 | deferred class Presentation; |
58 | deferred class PresentableObject; |
59 | |
7fd59977 |
60 | class PresentationManager3d; |
61 | |
62 | class Prs; |
7fd59977 |
63 | class Presentation3d; |
64 | |
65 | class ModedPresentation; |
66 | class Presentations instantiates Sequence from TCollection |
67 | (ModedPresentation from PrsMgr); |
68 | pointer Presentation3dPointer to Presentation3d from PrsMgr; |
69 | pointer PresentableObjectPointer to PresentableObject from PrsMgr; |
70 | end PrsMgr; |