Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-09-12 09:18:00

0001 // Created on: 2003-09-29
0002 // Created by: Alexander SOLOVYOV and Sergey LITONIN
0003 // Copyright (c) 2003-2014 OPEN CASCADE SAS
0004 //
0005 // This file is part of Open CASCADE Technology software library.
0006 //
0007 // This library is free software; you can redistribute it and/or modify it under
0008 // the terms of the GNU Lesser General Public License version 2.1 as published
0009 // by the Free Software Foundation, with special exception defined in the file
0010 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
0011 // distribution for complete text of the license and disclaimer of any warranty.
0012 //
0013 // Alternatively, this file may be used under the terms of Open CASCADE
0014 // commercial license or contractual agreement.
0015 
0016 #ifndef _MeshVS_DummySensitiveEntity_HeaderFile
0017 #define _MeshVS_DummySensitiveEntity_HeaderFile
0018 
0019 #include <Standard.hxx>
0020 
0021 #include <Select3D_SensitiveEntity.hxx>
0022 #include <SelectBasics_SelectingVolumeManager.hxx>
0023 
0024 //! This class allows to create owners to all elements or nodes,
0025 //! both hidden and shown, but these owners user cannot select "by hands"
0026 //! in viewer. They means for internal application tasks, for example, receiving
0027 //! all owners, both for hidden and shown entities.
0028 class MeshVS_DummySensitiveEntity : public Select3D_SensitiveEntity
0029 {
0030 public:
0031   Standard_EXPORT MeshVS_DummySensitiveEntity(const occ::handle<SelectMgr_EntityOwner>& theOwnerId);
0032 
0033   Standard_EXPORT bool Matches(SelectBasics_SelectingVolumeManager& theMgr,
0034                                SelectBasics_PickResult&             thePickResult) override;
0035 
0036   Standard_EXPORT int NbSubElements() const override;
0037 
0038   Standard_EXPORT Select3D_BndBox3d BoundingBox() override;
0039 
0040   Standard_EXPORT void BVH() override;
0041 
0042   bool ToBuildBVH() const override { return false; }
0043 
0044   Standard_EXPORT void Clear() override;
0045 
0046   Standard_EXPORT bool HasInitLocation() const override;
0047 
0048   Standard_EXPORT gp_GTrsf InvInitLocation() const override;
0049 
0050   gp_Pnt CenterOfGeometry() const override { return gp_Pnt(); }
0051 
0052   DEFINE_STANDARD_RTTIEXT(MeshVS_DummySensitiveEntity, Select3D_SensitiveEntity)
0053 };
0054 
0055 #endif // _MeshVS_DummySensitiveEntity_HeaderFile