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
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.
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.
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.
22 class MultipleConnectedShape from AIS inherits MultipleConnectedInteractive from AIS
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.
35 PresentationManager3d from PrsMgr,
38 Presentation from Prs3d,
39 Selection from SelectMgr,
40 Integer from Standard,
41 Transformation from Geom,
42 KindOfInteractive from AIS
45 NotImplemented from Standard
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
57 Signature(me) returns Integer from Standard
60 AcceptShapeDecomposition(me)
61 returns Boolean from Standard is redefined virtual;
62 ---Purpose: Returns true is shape decomposition is accepted.
64 Set(me:mutable;ashap : Shape from TopoDS) is static;
65 ---Purpose: Constructs the reference shape ashap.
68 Shape(me) returns Shape from TopoDS ;
69 ---Purpose: Returns the shape which is constructed in Set.
75 aProjector : Projector from Prs3d;
76 aPresentation: mutable Presentation from Prs3d)
77 is redefined virtual protected;
80 aProjector : Projector from Prs3d;
81 aTrsf : Transformation from Geom;
82 aPresentation: mutable Presentation from Prs3d)
83 is redefined virtual protected;
85 ComputeSelection(me:mutable; aSelection :mutable Selection from SelectMgr;
86 aMode : Integer from Standard)
87 is redefined virtual protected;
92 aProjector : Projector from Prs3d;
93 aPresentation: mutable Presentation from Prs3d;
94 aShape : Shape from TopoDS)
98 aPresentationManager : PresentationManager3d from PrsMgr;
99 aPresentation : mutable Presentation from Prs3d;
100 aMode : Integer from Standard = 0)
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;
111 myShape : Shape from TopoDS; -- celle qui sert au compute Hidden lines et selection
112 end MultipleConnectedShape;