Salome HOME
Issue #2741: Undo of distance argument change produces crash
[modules/shaper.git] / src / SketchAPI / SketchAPI_IntersectionPoint.h
index ba0ef3825e7b6104689210716cfd1184f52143f8..cc1b4e947a107f780ff058eec33d5acc77ee5f7d 100644 (file)
@@ -52,9 +52,7 @@ public:
   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 +63,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::string & 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