Salome HOME
Issue #1366: "Partition" feature now modified to "Generalized Partition"
[modules/shaper.git] / src / SketchPlugin / SketchPlugin_Arc.h
index 296b849bc0bebb6204d094c1aec97b784095c37a..37d1d8ff63a9bd62f22352da08949a847ab8d03a 100644 (file)
@@ -38,6 +38,24 @@ class SketchPlugin_Arc : public SketchPlugin_SketchEntity, public GeomAPI_IPrese
     return MY_SKETCH_ARC_ID;
   }
 
+  inline static const std::string& ARC_TYPE()
+  {
+    static const std::string TYPE("ArcType");
+    return TYPE;
+  }
+
+  inline static const std::string& ARC_TYPE_TANGENT()
+  {
+    static const std::string TYPE("Tangent");
+    return TYPE;
+  }
+
+  static const std::string& TANGENT_POINT_ID()
+  {
+    static const std::string TANGENT_PNT("ArcTangentPoint");
+    return TANGENT_PNT;
+  }
+
   /// Central 2D point of the circle which contains the arc
   inline static const std::string& CENTER_ID()
   {
@@ -105,6 +123,15 @@ protected:
 private:
   /// Returns true if all obligatory attributes are initialized
   bool isFeatureValid();
+
+  /// Update attributes like passed point, radius and angle of the arc
+  void updateDependentAttributes();
+
+  /// Compose constraints to build tangency arc
+  void tangencyArcConstraints();
+
+  /// Project end point of arc to the circle
+  void projectEndPoint();
 };
 
 #endif