Warning, file /include/opencascade/Select3D_SensitiveSegment.hxx was not indexed
or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017 #ifndef _Select3D_SensitiveSegment_HeaderFile
0018 #define _Select3D_SensitiveSegment_HeaderFile
0019
0020 #include <Select3D_SensitiveEntity.hxx>
0021 #include <SelectMgr_SelectingVolumeManager.hxx>
0022
0023
0024
0025 class Select3D_SensitiveSegment : public Select3D_SensitiveEntity
0026 {
0027 DEFINE_STANDARD_RTTIEXT(Select3D_SensitiveSegment, Select3D_SensitiveEntity)
0028 public:
0029
0030
0031
0032 Standard_EXPORT Select3D_SensitiveSegment (const Handle(SelectMgr_EntityOwner)& theOwnerId,
0033 const gp_Pnt& theFirstPnt,
0034 const gp_Pnt& theLastPnt);
0035
0036
0037 void SetStartPoint (const gp_Pnt& thePnt) { myStart = thePnt; }
0038
0039
0040 void SetEndPoint (const gp_Pnt& thePnt) { myEnd = thePnt; }
0041
0042
0043 const gp_Pnt& StartPoint() const { return myStart; }
0044
0045
0046 const gp_Pnt& EndPoint() const { return myEnd; }
0047
0048
0049 Standard_EXPORT virtual Standard_Integer NbSubElements() const Standard_OVERRIDE;
0050
0051 Standard_EXPORT virtual Handle(Select3D_SensitiveEntity) GetConnected() Standard_OVERRIDE;
0052
0053
0054 Standard_EXPORT virtual Standard_Boolean Matches (SelectBasics_SelectingVolumeManager& theMgr,
0055 SelectBasics_PickResult& thePickResult) Standard_OVERRIDE;
0056
0057
0058
0059 Standard_EXPORT virtual gp_Pnt CenterOfGeometry() const Standard_OVERRIDE;
0060
0061
0062
0063 Standard_EXPORT virtual Select3D_BndBox3d BoundingBox() Standard_OVERRIDE;
0064
0065
0066 virtual Standard_Boolean ToBuildBVH() const Standard_OVERRIDE { return Standard_False; }
0067
0068 public:
0069
0070
0071 void StartPoint (const gp_Pnt& thePnt) { myStart = thePnt; }
0072
0073
0074 void EndPoint (const gp_Pnt& thePnt) { myEnd = thePnt; }
0075
0076
0077 Standard_EXPORT virtual void DumpJson (Standard_OStream& theOStream, Standard_Integer theDepth = -1) const Standard_OVERRIDE;
0078
0079 private:
0080
0081 gp_Pnt myStart;
0082 gp_Pnt myEnd;
0083 };
0084
0085 DEFINE_STANDARD_HANDLE(Select3D_SensitiveSegment, Select3D_SensitiveEntity)
0086
0087 #endif