0024167: Compiler warnings 'unreacheable code' and 'conditional expression is constan...
[occt.git] / src / PrsMgr / PrsMgr_Prs.cdl
1 -- Created on: 1995-01-31
2 -- Created by: Mister rmi
3 -- Copyright (c) 1995-1999 Matra Datavision
4 -- Copyright (c) 1999-2012 OPEN CASCADE SAS
5 --
6 -- The content of this file is subject to the Open CASCADE Technology Public
7 -- License Version 6.5 (the "License"). You may not use the content of this file
8 -- except in compliance with the License. Please obtain a copy of the License
9 -- at http://www.opencascade.org and read it completely before using this file.
10 --
11 -- The Initial Developer of the Original Code is Open CASCADE S.A.S., having its
12 -- main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France.
13 --
14 -- The Original Code and all software distributed under the License is
15 -- distributed on an "AS IS" basis, without warranty of any kind, and the
16 -- Initial Developer hereby disclaims all such warranties, including without
17 -- limitation, any warranties of merchantability, fitness for a particular
18 -- purpose or non-infringement. Please see the License for the specific terms
19 -- and conditions governing the rights and limitations under the License.
20
21 --Modified by   rob 11-mar-98 : Implement virtual methods from Graphic3d_Structure
22 --                              to optimize HLR Display...
23
24 class Prs from PrsMgr inherits Presentation from Prs3d
25
26 uses
27     Array2OfReal          from TColStd,
28     StructureManager      from Graphic3d,
29     Structure             from Graphic3d,
30     DataStructureManager  from Graphic3d,
31     TypeOfPresentation3d  from PrsMgr,
32     Presentation3dPointer from PrsMgr
33     
34 is
35     Create(aStructureManager     : StructureManager from Graphic3d; 
36            aPresentation         : Presentation3dPointer from PrsMgr; 
37            aTypeOfPresentation3d : TypeOfPresentation3d from PrsMgr)
38     returns mutable Prs from PrsMgr;
39     
40     Compute(me : mutable; aProjector: DataStructureManager from Graphic3d)
41     returns Structure from Graphic3d
42     is redefined static;
43
44     Compute ( me        : mutable;
45               aProjector: DataStructureManager from Graphic3d;
46               AMatrix   : Array2OfReal from TColStd )
47     returns Structure from Graphic3d is 
48     redefined static;
49     ---Purpose: the "degenerated" Structure is displayed with
50     --          a transformation defined by <AMatrix>
51     --          which is not a Pure Translation.
52     --          We have to take in account this Transformation
53     --          in the computation of hidden line removal...
54     --          returns a filled Graphic Structure.
55
56
57
58     Compute(me              : mutable; 
59             aProjector      : DataStructureManager from Graphic3d;
60             ComputedStruct  : in out Structure from Graphic3d)
61     is redefined static;
62     ---Purpose: No need to return a structure, just to fill
63     --          <ComputedStruct> ....
64
65
66     Compute ( me        : mutable;
67               aProjector: DataStructureManager from Graphic3d;
68               AMatrix   : Array2OfReal from TColStd ;
69               aStructure: in out Structure from Graphic3d )
70     is redefined static;
71     ---Purpose: No Need to return a Structure, just to
72     --          Fill <aStructure>. The Trsf has to be taken in account
73     --          in the computation (Rotation Part....)
74
75     
76
77 fields 
78     myPresentation3d: Presentation3dPointer from PrsMgr;
79 end Prs from PrsMgr;