]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/SketchPlugin/SketchPlugin_IntersectionPoint.h
Salome HOME
Task 2.3. Sketch Point created by intersectionPoints
[modules/shaper.git] / src / SketchPlugin / SketchPlugin_IntersectionPoint.h
index ab0dcd6fc5d6b0075930d49c92592138c08b330d..2ddebd6b1fa044eeccae4a100f35727b5b5eacac 100644 (file)
 #ifndef SketchPlugin_IntersectionPoint_H_
 #define SketchPlugin_IntersectionPoint_H_
 
-#include "SketchPlugin_Point.h"
+#include "SketchPlugin_SketchEntity.h"
 
 /**\class SketchPlugin_IntersectionPoint
  * \ingroup Plugins
  * \brief Feature for creation of external point as an intersection
  *        between external edge and a plane of the sketch.
  */
-class SketchPlugin_IntersectionPoint : public SketchPlugin_Point
+class SketchPlugin_IntersectionPoint : public SketchPlugin_SketchEntity
 {
 public:
   /// Point feature kind
@@ -50,6 +50,12 @@ public:
     return MY_FEATURE_ID;
   }
 
+  static const std::string& INTERSECTION_POINTS_ID()
+  {
+    static std::string MY_INTERSECTIONS_ID("IntersectionPoints");
+    return MY_INTERSECTIONS_ID;
+  }
+
   static const std::string& INCLUDE_INTO_RESULT()
   {
     static std::string MY_INCLUDE("IncludeToResult");
@@ -80,7 +86,9 @@ protected:
 
 private:
   /// \brief Find intersection between a line and a sketch plane
-  void computePoint();
+  void computePoint(const std::string& theID);
+
+  bool myIsComputing;
 };
 
 #endif