1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
3 // File: SketcherPrs_SensitivePoint.h
4 // Created: 24 March 2015
5 // Author: Vitaly SMETANNIKOV
7 #ifndef SketcherPrs_SensitivePoint_H
8 #define SketcherPrs_SensitivePoint_H
10 #include <Select3D_SensitiveEntity.hxx>
11 #include <Standard_DefineHandle.hxx>
14 DEFINE_STANDARD_HANDLE(SketcherPrs_SensitivePoint, Select3D_SensitiveEntity)
18 * This sensitive point is done in order to optimize process of the sinzitive area update
19 * It referes on point array directly and this lets to avoid procedure of the point synchronisation
21 class SketcherPrs_SensitivePoint : public Select3D_SensitiveEntity
24 //! Constructs a sensitive point object defined by the
25 //! owner OwnerId and the point Point.
26 Standard_EXPORT SketcherPrs_SensitivePoint(const Handle(SelectBasics_EntityOwner)& OwnerId, int theId);
28 Standard_EXPORT virtual Standard_Integer NbSubElements() Standard_OVERRIDE;
30 //! Update location of the point
31 //! \param aLocation a new location
32 Standard_EXPORT virtual Handle(Select3D_SensitiveEntity) GetConnected() Standard_OVERRIDE;
34 //! Checks whether the point overlaps current selecting volume
35 Standard_EXPORT virtual Standard_Boolean Matches (SelectBasics_SelectingVolumeManager& theMgr,
36 SelectBasics_PickResult& thePickResult) Standard_OVERRIDE;
38 //! Returns the point used at the time of construction.
39 Standard_EXPORT gp_Pnt Point() const;
41 //! Returns center of point. If location transformation
42 //! is set, it will be applied
43 Standard_EXPORT virtual gp_Pnt CenterOfGeometry() const Standard_OVERRIDE;
45 //! Returns bounding box of the point. If location
46 //! transformation is set, it will be applied
47 Standard_EXPORT virtual Select3D_BndBox3d BoundingBox() Standard_OVERRIDE;
49 Standard_EXPORT virtual void Clear() Standard_OVERRIDE;
51 DEFINE_STANDARD_RTTI(SketcherPrs_SensitivePoint)