SHAPER  9.12.0
SketcherPrs_SensitivePoint.h
1 // Copyright (C) 2014-2023 CEA, EDF
2 //
3 // This library is free software; you can redistribute it and/or
4 // modify it under the terms of the GNU Lesser General Public
5 // License as published by the Free Software Foundation; either
6 // version 2.1 of the License, or (at your option) any later version.
7 //
8 // This library is distributed in the hope that it will be useful,
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 // Lesser General Public License for more details.
12 //
13 // You should have received a copy of the GNU Lesser General Public
14 // License along with this library; if not, write to the Free Software
15 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
16 //
17 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18 //
19 
20 #ifndef SketcherPrs_SensitivePoint_H
21 #define SketcherPrs_SensitivePoint_H
22 
23 #include <SelectBasics_EntityOwner.hxx>
24 #include <Select3D_SensitiveEntity.hxx>
25 #include <Standard_DefineHandle.hxx>
26 #include <Standard_Version.hxx>
27 
28 
30 
31 
37 {
38 public:
42  Standard_EXPORT SketcherPrs_SensitivePoint(const Handle(SelectBasics_EntityOwner)& OwnerId,
43  int theId);
44 
46 #if OCC_VERSION_HEX > 0x070400
47  Standard_EXPORT virtual Standard_Integer NbSubElements() const Standard_OVERRIDE;
48 #else
49  Standard_EXPORT virtual Standard_Integer NbSubElements() Standard_OVERRIDE;
50 #endif
52  Standard_EXPORT virtual Handle(Select3D_SensitiveEntity) GetConnected() Standard_OVERRIDE;
53 
57  Standard_EXPORT virtual Standard_Boolean Matches(SelectBasics_SelectingVolumeManager& theMgr,
58  SelectBasics_PickResult& thePickResult) Standard_OVERRIDE;
59 
61  Standard_EXPORT gp_Pnt Point() const;
62 
65  Standard_EXPORT virtual gp_Pnt CenterOfGeometry() const Standard_OVERRIDE;
66 
69  Standard_EXPORT virtual Select3D_BndBox3d BoundingBox() Standard_OVERRIDE;
70 
72  Standard_EXPORT virtual void Clear() Standard_OVERRIDE;
73 
75 
76 private:
77  int myId;
78 };
79 
80 
81 #endif
This sensitive point is done in order to optimize process of the sinzitive area update It referes on ...
Definition: SketcherPrs_SensitivePoint.h:37