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
6 // This file is part of Open CASCADE Technology software library.
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.
14 // Alternatively, this file may be used under the terms of Open CASCADE
15 // commercial license or contractual agreement.
17 #include <Select3D_SensitiveEntity.hxx>
19 #include <Precision.hxx>
20 #include <SelectBasics_EntityOwner.hxx>
22 IMPLEMENT_STANDARD_RTTIEXT(Select3D_SensitiveEntity,SelectBasics_SensitiveEntity)
24 //=======================================================================
25 //function : Select3D_SensitiveEntity
27 //=======================================================================
28 Select3D_SensitiveEntity::Select3D_SensitiveEntity (const Handle(SelectBasics_EntityOwner)& theOwnerId)
29 : SelectBasics_SensitiveEntity (theOwnerId) {}
31 //=======================================================================
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*/)
40 return Standard_False;
43 //=======================================================================
44 //function : GetConnected
46 //=======================================================================
48 Handle(Select3D_SensitiveEntity) Select3D_SensitiveEntity::GetConnected()
50 Handle(Select3D_SensitiveEntity) aNewEntity;
54 //=======================================================================
56 // purpose : Builds BVH tree for a sensitive if needed
57 //=======================================================================
58 void Select3D_SensitiveEntity::BVH()
63 //=======================================================================
65 // purpose : Cleans up resources and memory
66 //=======================================================================
67 void Select3D_SensitiveEntity::Clear()
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
78 return Standard_False;
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