b311480e |
1 | -- Created on: 1997-04-22 |
2 | -- Created by: Guest Design |
3 | -- Copyright (c) 1997-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 | |
7fd59977 |
21 | |
22 | class MultipleConnectedShape from AIS inherits MultipleConnectedInteractive from AIS |
23 | |
24 | |
25 | ---Purpose: Constructs an Interactive Object connected to a list of |
26 | -- Interactive Objects having a Shape. These include |
27 | -- AIS_Shape, and AIS_ConnectedShape. |
28 | -- Presentation of Hidden parts is calculated automatically. |
29 | -- You define the Interactive Object by gathering |
30 | -- together several other object presentations as in |
31 | -- AIS_MultipleConnectedInteractive. |
32 | |
33 | uses |
34 | |
35 | PresentationManager3d from PrsMgr, |
7fd59977 |
36 | Shape from TopoDS, |
37 | Projector from Prs3d, |
38 | Presentation from Prs3d, |
39 | Selection from SelectMgr, |
40 | Integer from Standard, |
41 | Transformation from Geom, |
42 | KindOfInteractive from AIS |
43 | |
44 | raises |
45 | NotImplemented from Standard |
46 | |
47 | is |
48 | |
49 | Create (aShape : Shape from TopoDS) |
50 | returns mutable MultipleConnectedShape from AIS; |
51 | ---Purpose: Initializes the shape aShape, a multiple connected |
52 | -- Interactive Object grouping different |
53 | -- projector-dependent representations of an entity. |
54 | Type(me) returns KindOfInteractive from AIS |
55 | is redefined virtual; |
56 | |
57 | Signature(me) returns Integer from Standard |
58 | is redefined virtual; |
59 | |
60 | AcceptShapeDecomposition(me) |
61 | returns Boolean from Standard is redefined virtual; |
62 | ---Purpose: Returns true is shape decomposition is accepted. |
63 | |
64 | Set(me:mutable;ashap : Shape from TopoDS) is static; |
65 | ---Purpose: Constructs the reference shape ashap. |
66 | ---C++: inline |
67 | |
68 | Shape(me) returns Shape from TopoDS ; |
69 | ---Purpose: Returns the shape which is constructed in Set. |
70 | ---C++: inline |
71 | ---C++: return const& |
72 | |
73 | |
74 | Compute(me:mutable; |
75 | aProjector : Projector from Prs3d; |
76 | aPresentation: mutable Presentation from Prs3d) |
77 | is redefined virtual protected; |
78 | |
79 | Compute(me:mutable; |
80 | aProjector : Projector from Prs3d; |
81 | aTrsf : Transformation from Geom; |
82 | aPresentation: mutable Presentation from Prs3d) |
83 | is redefined virtual protected; |
84 | |
85 | ComputeSelection(me:mutable; aSelection :mutable Selection from SelectMgr; |
86 | aMode : Integer from Standard) |
87 | is redefined virtual protected; |
88 | |
89 | |
90 | |
91 | Compute(me:mutable; |
92 | aProjector : Projector from Prs3d; |
93 | aPresentation: mutable Presentation from Prs3d; |
94 | aShape : Shape from TopoDS) |
95 | is private; |
96 | |
97 | Compute(me:mutable; |
98 | aPresentationManager : PresentationManager3d from PrsMgr; |
99 | aPresentation : mutable Presentation from Prs3d; |
100 | aMode : Integer from Standard = 0) |
101 | ---Level: Internal |
102 | ---Purpose: this method is redefined virtual; |
103 | -- when the instance is connected to another |
104 | -- InteractiveObject,this method doesn't |
105 | -- compute anything, but just uses the |
106 | -- presentation of this last object, with |
107 | -- a transformation if there's one stored. |
108 | is redefined virtual private; |
7fd59977 |
109 | |
110 | fields |
111 | myShape : Shape from TopoDS; -- celle qui sert au compute Hidden lines et selection |
112 | end MultipleConnectedShape; |