Salome HOME
Using test for testing number of sub-shapes.
[modules/shaper.git] / src / SketcherPrs / SketcherPrs_SensitivePoint.h
index 408bec8e4887034f1e34bdbe5386709303d0aeba..132140beef42639df3c68c4bc5b08342161c814e 100644 (file)
@@ -20,20 +20,24 @@ DEFINE_STANDARD_HANDLE(SketcherPrs_SensitivePoint, Select3D_SensitiveEntity)
 */
 class SketcherPrs_SensitivePoint : public Select3D_SensitiveEntity
 {
-public: 
+public:
   //! Constructs a sensitive point object defined by the
-  //! owner OwnerId and the point Point.
-  Standard_EXPORT SketcherPrs_SensitivePoint(const Handle(SelectBasics_EntityOwner)& OwnerId, int theId);
-  
+  //! \param OwnerId an Id of the Owner.
+  //! \param theId and Id of its point
+  Standard_EXPORT SketcherPrs_SensitivePoint(const Handle(SelectBasics_EntityOwner)& OwnerId,
+                                             int theId);
+
+  /// Returns number of sub-elements
   Standard_EXPORT virtual Standard_Integer NbSubElements() Standard_OVERRIDE;
 
   //! Update location of the point
-  //! \param aLocation a new location
   Standard_EXPORT virtual Handle(Select3D_SensitiveEntity) GetConnected() Standard_OVERRIDE;
 
   //! Checks whether the point overlaps current selecting volume
-  Standard_EXPORT virtual Standard_Boolean Matches (SelectBasics_SelectingVolumeManager& theMgr,
-                                                    SelectBasics_PickResult& thePickResult) Standard_OVERRIDE;
+  //! \param theMgr selection manager
+  //! \param thePickResult returns pick result
+  Standard_EXPORT virtual Standard_Boolean Matches(SelectBasics_SelectingVolumeManager& theMgr,
+                                     SelectBasics_PickResult& thePickResult) Standard_OVERRIDE;
 
   //! Returns the point used at the time of construction.
   Standard_EXPORT gp_Pnt Point() const;
@@ -45,11 +49,13 @@ public:
   //! Returns bounding box of the point. If location
   //! transformation is set, it will be applied
   Standard_EXPORT virtual Select3D_BndBox3d BoundingBox() Standard_OVERRIDE;
-  
 
-  DEFINE_STANDARD_RTTI(SketcherPrs_SensitivePoint)
+  /// Clear sub-elements
+  Standard_EXPORT virtual void Clear() Standard_OVERRIDE;
+
+  DEFINE_STANDARD_RTTIEXT(SketcherPrs_SensitivePoint, Select3D_SensitiveEntity)
 
-private: 
+private:
   int myId;
 };