Salome HOME
Simplification of environment due to SALOME standards
[modules/shaper.git] / src / PartSet / PartSet_WidgetPoint2d.h
index 449b890f3686df3db718150784a9c8b01c9ad1d2..3c0f8c3604bb265a7558a22285ffd84332ecb218 100755 (executable)
@@ -118,7 +118,7 @@ public slots:
 protected:
   /// Saves the internal parameters to the given feature
   /// \return True in success
-  virtual bool storeValueCustom() const;
+  virtual bool storeValueCustom();
 
   /// Restore value from attribute data to the widget's control
   virtual bool restoreValueCustom();
@@ -182,6 +182,14 @@ protected:
    static bool isOrphanPoint(const FeaturePtr& theFeature, const CompositeFeaturePtr& theSketch,
                              double theX, double theY);
 
+   /// Explode the given shape by vertices and found closed to the point vertes
+   /// \param theShape a shape to be exploded
+   /// \param thePoint a point
+   /// \return boolean value
+   static bool shapeContainsPoint(const std::shared_ptr<GeomAPI_Shape>& theShape,
+                                  const std::shared_ptr<GeomAPI_Pnt2d>& thePoint,
+                                  const CompositeFeaturePtr& theSketch);
+
 protected:
   ModuleBase_IWorkshop* myWorkshop; ///< workshop