Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:04:15

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 
0032   Standard_EXPORT MeshVS_DummySensitiveEntity (const Handle(SelectMgr_EntityOwner)& theOwnerId);
0033 
0034   Standard_EXPORT virtual Standard_Boolean Matches (SelectBasics_SelectingVolumeManager& theMgr,
0035                                                     SelectBasics_PickResult& thePickResult) Standard_OVERRIDE;
0036 
0037   Standard_EXPORT virtual Standard_Integer NbSubElements() const Standard_OVERRIDE;
0038 
0039   Standard_EXPORT virtual Select3D_BndBox3d BoundingBox() Standard_OVERRIDE;
0040 
0041   Standard_EXPORT virtual void BVH() Standard_OVERRIDE;
0042 
0043   virtual Standard_Boolean ToBuildBVH() const Standard_OVERRIDE { return Standard_False; }
0044 
0045   Standard_EXPORT virtual void Clear() Standard_OVERRIDE;
0046 
0047   Standard_EXPORT virtual Standard_Boolean HasInitLocation() const Standard_OVERRIDE;
0048 
0049   Standard_EXPORT virtual gp_GTrsf InvInitLocation() const Standard_OVERRIDE;
0050 
0051   virtual gp_Pnt CenterOfGeometry() const Standard_OVERRIDE { return gp_Pnt(); }
0052 
0053   DEFINE_STANDARD_RTTIEXT(MeshVS_DummySensitiveEntity, Select3D_SensitiveEntity)
0054 };
0055 
0056 DEFINE_STANDARD_HANDLE(MeshVS_DummySensitiveEntity, Select3D_SensitiveEntity)
0057 
0058 #endif // _MeshVS_DummySensitiveEntity_HeaderFile