]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/ModelGeomAlgo/ModelGeomAlgo_Point2D.h
Salome HOME
Correction for restart of point create operation.
[modules/shaper.git] / src / ModelGeomAlgo / ModelGeomAlgo_Point2D.h
index b79aaff9d56b811800e123efe434a63967db24e4..b70ef961e3a62e19ff9dc97a94368d9fb2098252 100755 (executable)
@@ -10,6 +10,7 @@
 #include "ModelGeomAlgo.h"
 
 class ModelAPI_Feature;
+class ModelAPI_Object;
 class GeomAPI_Shape;
 class GeomAPI_Pnt;
 class GeomAPI_Dir;
@@ -17,6 +18,7 @@ class GeomAPI_Dir;
 class GeomDataAPI_Point2D;
 
 #include <memory>
+#include <string>
 #include <set>
 
 
@@ -36,13 +38,13 @@ namespace ModelGeomAlgo_Point2D {
 
   /// Fills container of point 2D attributes, which refer to the feature through the references
   /// features with the given kind
-  /// \param theFeature a feature where references should be searched (e.g. a sketch line)
+  /// \param theObject an object where references should be searched (e.g. a sketch line or result)
   /// \param theReferenceFeatureKind a kind of the feature to be processed (e.g. coincidence constraint)
   /// \param theAttributes a container of found point 2D attributes
   /// \param theObjectFeatureKind a feature kind in object of attribute that satisfies the search
   /// \param theObjectFeatureAttribute a feature attribute in object that satisfies the search
   /// \returns found point attribute or NULL
-  MODELGEOMALGO_EXPORT void getPointsOfReference(const std::shared_ptr<ModelAPI_Feature>& theFeature,
+  MODELGEOMALGO_EXPORT void getPointsOfReference(const std::shared_ptr<ModelAPI_Object>& theObject,
                                           const std::string& theReferenceFeatureKind,
                                           std::set<std::shared_ptr<GeomDataAPI_Point2D> >& theAttributes,
                                           const std::string& theObjectFeatureKind = "",
@@ -62,6 +64,14 @@ namespace ModelGeomAlgo_Point2D {
                               const std::shared_ptr<GeomAPI_Dir>& theDirX,
                               const std::shared_ptr<GeomAPI_Dir>& theDirY,
                               std::set<std::shared_ptr<GeomAPI_Pnt> >& thePoints);
+
+  /// Finds projected point to the given shape line
+  /// \param theBaseShape a shape of check
+  /// \param thePoint [in] a point to project
+  /// \param theProjectedPoint [out] a projected point
+  MODELGEOMALGO_EXPORT bool isPointOnEdge(const std::shared_ptr<GeomAPI_Shape> theBaseShape,
+                                          const std::shared_ptr<GeomAPI_Pnt>& thePoint,
+                                          std::shared_ptr<GeomAPI_Pnt>& theProjectedPoint);
 }
 
 #endif