0022048: Visualization, AIS_InteractiveContext - single object selection should alway...
[occt.git] / src / MeshVS / MeshVS_DummySensitiveEntity.cxx
CommitLineData
b311480e 1// Created on: 2003-09-29
2// Created by: Alexander SOLOVYOV and Sergey LITONIN
973c2be1 3// Copyright (c) 2003-2014 OPEN CASCADE SAS
b311480e 4//
973c2be1 5// This file is part of Open CASCADE Technology software library.
b311480e 6//
d5f74e42 7// This library is free software; you can redistribute it and/or modify it under
8// the terms of the GNU Lesser General Public License version 2.1 as published
973c2be1 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
f751596e 16#include <MeshVS_DummySensitiveEntity.hxx>
7fd59977 17
f751596e 18#include <Bnd_Box2d.hxx>
19#include <SelectBasics_EntityOwner.hxx>
20#include <TColgp_Array1OfPnt2d.hxx>
7fd59977 21
7fd59977 22
92efcf78 23IMPLEMENT_STANDARD_RTTIEXT(MeshVS_DummySensitiveEntity,SelectBasics_SensitiveEntity)
24
7fd59977 25//================================================================
f751596e 26// Function : Constructor MeshVS_DummySensitiveEntity
7fd59977 27// Purpose :
28//================================================================
f751596e 29MeshVS_DummySensitiveEntity::MeshVS_DummySensitiveEntity (const Handle(SelectBasics_EntityOwner)& theOwnerId)
30: SelectBasics_SensitiveEntity (theOwnerId)
31{}
7fd59977 32
33//================================================================
f751596e 34// Function : NbSubElements
7fd59977 35// Purpose :
36//================================================================
f751596e 37Standard_Integer MeshVS_DummySensitiveEntity::NbSubElements()
7fd59977 38{
f751596e 39 return -1;
7fd59977 40}
41
42//================================================================
43// Function : Matches
44// Purpose :
45//================================================================
f751596e 46Standard_Boolean MeshVS_DummySensitiveEntity::Matches (SelectBasics_SelectingVolumeManager& /*theMgr*/,
47 SelectBasics_PickResult& /*thePickResult*/)
7fd59977 48{
49 return Standard_False;
50}
51
52//================================================================
f751596e 53// Function : BoundingBox
7fd59977 54// Purpose :
55//================================================================
f751596e 56Select3D_BndBox3d MeshVS_DummySensitiveEntity::BoundingBox()
7fd59977 57{
f751596e 58 return Select3D_BndBox3d();
7fd59977 59}
60
61//================================================================
f751596e 62// Function : ElementsNb
7fd59977 63// Purpose :
64//================================================================
f751596e 65void MeshVS_DummySensitiveEntity::BVH()
66{}
7fd59977 67
68//================================================================
f751596e 69// Function : Clear
7fd59977 70// Purpose :
71//================================================================
f751596e 72void MeshVS_DummySensitiveEntity::Clear()
73{}
3bf9a45f 74
75//=======================================================================
76//function : HasInitLocation
77//purpose :
78//=======================================================================
79Standard_Boolean MeshVS_DummySensitiveEntity::HasInitLocation() const
80{
81 return Standard_False;
82}
83
84//=======================================================================
85//function : InvInitLocation
86//purpose :
87//=======================================================================
91d96372 88inline gp_GTrsf MeshVS_DummySensitiveEntity::InvInitLocation() const
3bf9a45f 89{
91d96372 90 return gp_GTrsf();
3bf9a45f 91}