b311480e |
1 | -- Created on: 2005-01-21 |
2 | -- Created by: Alexander SOLOVYOV |
973c2be1 |
3 | -- Copyright (c) 2005-2014 OPEN CASCADE SAS |
b311480e |
4 | -- |
973c2be1 |
5 | -- This file is part of Open CASCADE Technology software library. |
b311480e |
6 | -- |
973c2be1 |
7 | -- This library is free software; you can redistribute it and / or modify it |
8 | -- under the terms of the GNU Lesser General Public version 2.1 as published |
9 | -- by the Free Software Foundation, with special exception defined in the file |
10 | -- OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT |
11 | -- distribution for complete text of the license and disclaimer of any warranty. |
b311480e |
12 | -- |
973c2be1 |
13 | -- Alternatively, this file may be used under the terms of Open CASCADE |
14 | -- commercial license or contractual agreement. |
7fd59977 |
15 | |
16 | class SensitivePolyhedron from MeshVS inherits SensitiveEntity from Select3D |
17 | |
18 | uses |
19 | EntityOwner from SelectBasics, |
20 | Projector from Select3D, |
21 | Location from TopLoc, |
22 | Real from Standard, |
23 | Boolean from Standard, |
24 | Array1OfPnt2d from TColgp, |
25 | SequenceOfInteger from TColStd, |
26 | Box2d from Bnd, |
27 | Lin from gp, |
28 | ListOfBox2d from SelectBasics, |
4269bd1b |
29 | PickArgs from SelectBasics, |
7fd59977 |
30 | Array1OfPnt from TColgp, |
31 | HArray1OfPnt from TColgp, |
32 | HArray1OfPnt2d from TColgp, |
33 | HArray1OfSequenceOfInteger from MeshVS, |
34 | XY from gp |
35 | |
36 | is |
37 | Create( Owner : EntityOwner from SelectBasics; |
38 | Nodes : Array1OfPnt from TColgp; |
39 | Topo : HArray1OfSequenceOfInteger from MeshVS ) returns mutable SensitivePolyhedron from MeshVS; |
40 | |
41 | Project( me:mutable; aProjector: Projector from Select3D ) is redefined; |
42 | |
43 | GetConnected( me:mutable; aLocation: Location from TopLoc ) returns SensitiveEntity from Select3D |
44 | is redefined; |
45 | |
4269bd1b |
46 | Matches (me : mutable; |
47 | thePickArgs : PickArgs from SelectBasics; |
48 | theMatchDMin, theMatchDepth : out Real from Standard) |
49 | returns Boolean is redefined; |
7fd59977 |
50 | |
51 | Matches( me : mutable; |
52 | XMin,YMin,XMax,YMax : Real from Standard; |
53 | aTol : Real from Standard ) returns Boolean from Standard is redefined; |
54 | |
55 | Matches( me : mutable; |
56 | Polyline : Array1OfPnt2d from TColgp; |
57 | aBox : Box2d from Bnd; |
58 | aTol : Real from Standard ) returns Boolean from Standard is redefined; |
59 | |
60 | GetBox2d( me; aBox : out Box2d from Bnd ) is protected; |
61 | |
62 | FindIntersection( me; NodesIndices : SequenceOfInteger from TColStd; |
63 | EyeLine : Lin from gp ) returns Real is protected; |
64 | |
4269bd1b |
65 | ComputeDepth( me; EyeLine: Lin from gp ) returns Real from Standard is virtual; |
7fd59977 |
66 | |
67 | -- ComputeSize( me ) returns Real from Standard is redefined; |
68 | |
69 | Areas( me: mutable; aResult : in out ListOfBox2d from SelectBasics ) is redefined; |
70 | |
71 | fields |
72 | myNodes : HArray1OfPnt from TColgp; |
73 | myNodes2d : HArray1OfPnt2d from TColgp; |
74 | myTopo : HArray1OfSequenceOfInteger from MeshVS; |
75 | myCenter : XY from gp; |
76 | |
77 | end SensitiveEntity; |
78 | |