Salome HOME
oubli
[modules/shaper.git] / src / SketchAPI / SketchAPI_IntersectionPoint.h
index ba0ef3825e7b6104689210716cfd1184f52143f8..627e54fb5054ba611c557befa9d00aa0a18db6f9 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2014-2017  CEA/DEN, EDF R&D
+// Copyright (C) 2014-2022  CEA/DEN, EDF R&D
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
 //
 // You should have received a copy of the GNU Lesser General Public
 // License along with this library; if not, write to the Free Software
-// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
 //
-// See http://www.salome-platform.org/ or
-// email : webmaster.salome@opencascade.com<mailto:webmaster.salome@opencascade.com>
+// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 //
 
 #ifndef SRC_SKETCHAPI_SKETCHAPI_INTERSECTIONPOINT_H_
@@ -47,14 +46,12 @@ public:
   /// Constructor with values
   SKETCHAPI_EXPORT
   SketchAPI_IntersectionPoint(const std::shared_ptr<ModelAPI_Feature> & theFeature,
-                 const std::string & theExternalName);
+                 const std::wstring & theExternalName);
   /// Destructor
   SKETCHAPI_EXPORT
   virtual ~SketchAPI_IntersectionPoint();
 
-  INTERFACE_4(SketchPlugin_IntersectionPoint::ID(),
-              coordinates, SketchPlugin_IntersectionPoint::COORD_ID(),
-              GeomDataAPI_Point2D, /** IntersectionPoint coordinates */,
+  INTERFACE_3(SketchPlugin_IntersectionPoint::ID(),
               externalFeature, SketchPlugin_IntersectionPoint::EXTERNAL_FEATURE_ID(),
               ModelAPI_AttributeSelection, /** External edge */,
               external, SketchPlugin_IntersectionPoint::EXTERNAL_ID(),
@@ -65,11 +62,19 @@ public:
 
   /// Set by external
   SKETCHAPI_EXPORT
-  void setByExternalLine(const ModelHighAPI_Selection & theExternalLine);
+  void setByExternalEdge(const ModelHighAPI_Selection & theExternaEdge);
 
   /// Set by external name
   SKETCHAPI_EXPORT
-  void setByExternalLineName(const std::string & theExternalLineName);
+  void setByExternalEdgeName(const std::wstring & theExternalEdgeName);
+
+  /// Set flag to include projection to result or not
+  SKETCHAPI_EXPORT
+  void setIncludeToResult(bool theKeepResult);
+
+  /// Returns created intersection points
+  SKETCHAPI_EXPORT
+  std::list<std::shared_ptr<SketchAPI_SketchEntity> > intersectionPoints() const;
 
   /// Dump wrapped feature
   SKETCHAPI_EXPORT