b311480e |
1 | // Created on: 1995-03-13 |
2 | // Created by: Robert COUBLANC |
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 | |
f751596e |
17 | #include <Select3D_SensitiveEntity.hxx> |
0609d8ee |
18 | |
7fd59977 |
19 | #include <Precision.hxx> |
20 | #include <SelectBasics_EntityOwner.hxx> |
7fd59977 |
21 | |
92efcf78 |
22 | IMPLEMENT_STANDARD_RTTIEXT(Select3D_SensitiveEntity,SelectBasics_SensitiveEntity) |
23 | |
7fd59977 |
24 | //======================================================================= |
f751596e |
25 | //function : Select3D_SensitiveEntity |
3bf9a45f |
26 | //purpose : |
7fd59977 |
27 | //======================================================================= |
3bf9a45f |
28 | Select3D_SensitiveEntity::Select3D_SensitiveEntity (const Handle(SelectBasics_EntityOwner)& theOwnerId) |
f751596e |
29 | : SelectBasics_SensitiveEntity (theOwnerId) {} |
7fd59977 |
30 | |
31 | //======================================================================= |
f751596e |
32 | // function : Matches |
33 | // purpose : Checks whether sensitive overlaps current selecting volume. |
34 | // Stores minimum depth, distance to center of geometry and |
35 | // closest point detected into thePickResult |
7fd59977 |
36 | //======================================================================= |
f751596e |
37 | Standard_Boolean Select3D_SensitiveEntity::Matches (SelectBasics_SelectingVolumeManager& /*theMgr*/, |
38 | SelectBasics_PickResult& /*thePickResult*/) |
7fd59977 |
39 | { |
40 | return Standard_False; |
41 | } |
42 | |
43 | //======================================================================= |
f751596e |
44 | //function : GetConnected |
7fd59977 |
45 | //purpose : |
46 | //======================================================================= |
47 | |
f751596e |
48 | Handle(Select3D_SensitiveEntity) Select3D_SensitiveEntity::GetConnected() |
7fd59977 |
49 | { |
f751596e |
50 | Handle(Select3D_SensitiveEntity) aNewEntity; |
51 | return aNewEntity; |
7fd59977 |
52 | } |
53 | |
54 | //======================================================================= |
f751596e |
55 | // function : BVH |
56 | // purpose : Builds BVH tree for a sensitive if needed |
7fd59977 |
57 | //======================================================================= |
f751596e |
58 | void Select3D_SensitiveEntity::BVH() |
7fd59977 |
59 | { |
f751596e |
60 | return; |
7fd59977 |
61 | } |
62 | |
63 | //======================================================================= |
f751596e |
64 | // function : Clear |
65 | // purpose : Cleans up resources and memory |
7fd59977 |
66 | //======================================================================= |
f751596e |
67 | void Select3D_SensitiveEntity::Clear() |
7fd59977 |
68 | { |
f751596e |
69 | Set (NULL); |
7fd59977 |
70 | } |
3bf9a45f |
71 | |
72 | //======================================================================= |
73 | // function : HasInitLocation |
74 | // purpose : Returns true if the shape corresponding to the entity has init location |
75 | //======================================================================= |
76 | Standard_Boolean Select3D_SensitiveEntity::HasInitLocation() const |
77 | { |
78 | return Standard_False; |
79 | } |
80 | |
81 | //======================================================================= |
82 | // function : InvInitLocation |
83 | // purpose : Returns inversed location transformation matrix if the shape corresponding |
84 | // to this entity has init location set. Otherwise, returns identity matrix. |
85 | //======================================================================= |
91d96372 |
86 | gp_GTrsf Select3D_SensitiveEntity::InvInitLocation() const |
3bf9a45f |
87 | { |
91d96372 |
88 | return gp_GTrsf(); |
3bf9a45f |
89 | } |