0030416: Incorrect implementation of the method Bnd_OBB::SquareExtent
[occt.git] / src / Select3D / Select3D_SensitiveEntity.cxx
1 // Created on: 1995-03-13
2 // Created by: Robert COUBLANC
3 // Copyright (c) 1995-1999 Matra Datavision
4 // Copyright (c) 1999-2014 OPEN CASCADE SAS
5 //
6 // This file is part of Open CASCADE Technology software library.
7 //
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
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.
13 //
14 // Alternatively, this file may be used under the terms of Open CASCADE
15 // commercial license or contractual agreement.
16
17 #include <Select3D_SensitiveEntity.hxx>
18
19 #include <Precision.hxx>
20 #include <SelectBasics_EntityOwner.hxx>
21
22 IMPLEMENT_STANDARD_RTTIEXT(Select3D_SensitiveEntity,SelectBasics_SensitiveEntity)
23
24 //=======================================================================
25 //function : Select3D_SensitiveEntity
26 //purpose  :
27 //=======================================================================
28 Select3D_SensitiveEntity::Select3D_SensitiveEntity (const Handle(SelectBasics_EntityOwner)& theOwnerId)
29 : SelectBasics_SensitiveEntity (theOwnerId) {}
30
31 //=======================================================================
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
36 //=======================================================================
37 Standard_Boolean Select3D_SensitiveEntity::Matches (SelectBasics_SelectingVolumeManager& /*theMgr*/,
38                                                     SelectBasics_PickResult& /*thePickResult*/)
39 {
40   return Standard_False;
41 }
42
43 //=======================================================================
44 //function : GetConnected
45 //purpose  : 
46 //=======================================================================
47
48 Handle(Select3D_SensitiveEntity) Select3D_SensitiveEntity::GetConnected()
49 {
50   Handle(Select3D_SensitiveEntity) aNewEntity;
51   return aNewEntity;
52 }
53
54 //=======================================================================
55 // function : BVH
56 // purpose  : Builds BVH tree for a sensitive if needed
57 //=======================================================================
58 void Select3D_SensitiveEntity::BVH()
59 {
60   return;
61 }
62
63 //=======================================================================
64 // function : Clear
65 // purpose  : Cleans up resources and memory
66 //=======================================================================
67 void Select3D_SensitiveEntity::Clear()
68 {
69   Set (NULL);
70 }
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 //=======================================================================
86 gp_GTrsf Select3D_SensitiveEntity::InvInitLocation() const
87 {
88   return gp_GTrsf();
89 }