File indexing completed on 2025-01-18 10:04:16
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016 #ifndef _MeshVS_SensitiveQuad_HeaderFile
0017 #define _MeshVS_SensitiveQuad_HeaderFile
0018
0019 #include <SelectMgr_EntityOwner.hxx>
0020
0021 #include <TColgp_Array1OfPnt.hxx>
0022
0023
0024
0025 class MeshVS_SensitiveQuad : public Select3D_SensitiveEntity
0026 {
0027 public:
0028
0029
0030 Standard_EXPORT MeshVS_SensitiveQuad (const Handle(SelectMgr_EntityOwner)& theOwner, const TColgp_Array1OfPnt& theQuadVerts);
0031
0032
0033 Standard_EXPORT MeshVS_SensitiveQuad (const Handle(SelectMgr_EntityOwner)& theOwner,
0034 const gp_Pnt& thePnt1,
0035 const gp_Pnt& thePnt2,
0036 const gp_Pnt& thePnt3,
0037 const gp_Pnt& thePnt4);
0038
0039
0040 virtual Standard_Integer NbSubElements() const Standard_OVERRIDE
0041 {
0042 return 1;
0043 };
0044
0045
0046 Standard_EXPORT virtual Handle(Select3D_SensitiveEntity) GetConnected() Standard_OVERRIDE;
0047
0048
0049 Standard_EXPORT virtual Standard_Boolean Matches (SelectBasics_SelectingVolumeManager& theMgr,
0050 SelectBasics_PickResult& thePickResult) Standard_OVERRIDE;
0051
0052
0053 Standard_EXPORT virtual gp_Pnt CenterOfGeometry() const Standard_OVERRIDE;
0054
0055
0056 Standard_EXPORT virtual Select3D_BndBox3d BoundingBox() Standard_OVERRIDE;
0057
0058 DEFINE_STANDARD_RTTIEXT (MeshVS_SensitiveQuad, Select3D_SensitiveEntity)
0059
0060 private:
0061
0062 gp_Pnt myVertices[4];
0063 };
0064
0065 DEFINE_STANDARD_HANDLE (MeshVS_SensitiveQuad, Select3D_SensitiveEntity)
0066
0067 #endif