File indexing completed on 2024-11-15 09:48:30
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017 #ifndef _Select3D_SensitivePoint_HeaderFile
0018 #define _Select3D_SensitivePoint_HeaderFile
0019
0020 #include <Select3D_SensitiveEntity.hxx>
0021 #include <SelectMgr_SelectingVolumeManager.hxx>
0022
0023
0024 class Select3D_SensitivePoint : public Select3D_SensitiveEntity
0025 {
0026 DEFINE_STANDARD_RTTIEXT(Select3D_SensitivePoint, Select3D_SensitiveEntity)
0027 public:
0028
0029
0030
0031 Standard_EXPORT Select3D_SensitivePoint (const Handle(SelectMgr_EntityOwner)& theOwnerId, const gp_Pnt& thePoint);
0032
0033
0034 Standard_EXPORT virtual Standard_Integer NbSubElements() const Standard_OVERRIDE;
0035
0036 Standard_EXPORT virtual Handle(Select3D_SensitiveEntity) GetConnected() Standard_OVERRIDE;
0037
0038
0039 Standard_EXPORT virtual Standard_Boolean Matches (SelectBasics_SelectingVolumeManager& theMgr,
0040 SelectBasics_PickResult& thePickResult) Standard_OVERRIDE;
0041
0042
0043 const gp_Pnt& Point() const { return myPoint; }
0044
0045
0046
0047 Standard_EXPORT virtual gp_Pnt CenterOfGeometry() const Standard_OVERRIDE;
0048
0049
0050
0051 Standard_EXPORT virtual Select3D_BndBox3d BoundingBox() Standard_OVERRIDE;
0052
0053
0054 virtual Standard_Boolean ToBuildBVH() const Standard_OVERRIDE { return Standard_False; }
0055
0056
0057 Standard_EXPORT virtual void DumpJson (Standard_OStream& theOStream, Standard_Integer theDepth = -1) const Standard_OVERRIDE;
0058
0059 private:
0060
0061 gp_Pnt myPoint;
0062 };
0063
0064 DEFINE_STANDARD_HANDLE(Select3D_SensitivePoint, Select3D_SensitiveEntity)
0065
0066 #endif