// Created on: 2003-09-29 // Created by: Alexander SOLOVYOV and Sergey LITONIN // Copyright (c) 2003-2014 OPEN CASCADE SAS // // This file is part of Open CASCADE Technology software library. // // This library is free software; you can redistribute it and/or modify it under // the terms of the GNU Lesser General Public License version 2.1 as published // by the Free Software Foundation, with special exception defined in the file // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT // distribution for complete text of the license and disclaimer of any warranty. // // Alternatively, this file may be used under the terms of Open CASCADE // commercial license or contractual agreement. #ifndef _MeshVS_DummySensitiveEntity_HeaderFile #define _MeshVS_DummySensitiveEntity_HeaderFile #include "Standard.hxx" #include "Select3D_SensitiveEntity.hxx" #include "SelectBasics_SelectingVolumeManager.hxx" //! This class allows to create owners to all elements or nodes, //! both hidden and shown, but these owners user cannot select "by hands" //! in viewer. They means for internal application tasks, for example, receiving //! all owners, both for hidden and shown entities. class MeshVS_DummySensitiveEntity : public Select3D_SensitiveEntity { public: Standard_EXPORT MeshVS_DummySensitiveEntity(const occ::handle& theOwnerId); Standard_EXPORT bool Matches(SelectBasics_SelectingVolumeManager& theMgr, SelectBasics_PickResult& thePickResult) override; Standard_EXPORT int NbSubElements() const override; Standard_EXPORT Select3D_BndBox3d BoundingBox() override; Standard_EXPORT void BVH() override; bool ToBuildBVH() const override { return false; } Standard_EXPORT void Clear() override; Standard_EXPORT bool HasInitLocation() const override; Standard_EXPORT gp_GTrsf InvInitLocation() const override; gp_Pnt CenterOfGeometry() const override { return gp_Pnt(); } DEFINE_STANDARD_RTTIEXT(MeshVS_DummySensitiveEntity, Select3D_SensitiveEntity) }; #endif // _MeshVS_DummySensitiveEntity_HeaderFile