Salome HOME
Crash when searching duplicated constraints
[modules/shaper.git] / src / SketchPlugin / SketchPlugin_Arc.h
index 4d2df1417c024db8c8dafe54bb1c7410d830033a..0464ebeadb30d60da9aa89f6937af6657f29508c 100644 (file)
@@ -27,6 +27,9 @@ class SketchPlugin_Arc : public SketchPlugin_SketchEntity, public GeomAPI_IPrese
   /// to avoid (if possible) additional modification of changed coordinate (issue #855)
   double myXEndBefore, myYEndBefore;
 
+  /// to define in which direction draw arc
+  double myParamBefore;
+
  public:
   /// Arc feature kind
   inline static const std::string& ID()
@@ -54,6 +57,13 @@ class SketchPlugin_Arc : public SketchPlugin_SketchEntity, public GeomAPI_IPrese
     return MY_END_ID;
   }
 
+  /// Inversed flag
+  inline static const std::string& INVERSED_ID()
+  {
+    static const std::string MY_INVERSED_ID("InversedArc");
+    return MY_INVERSED_ID;
+  }
+
   /// Returns the kind of a feature
   SKETCHPLUGIN_EXPORT virtual const std::string& getKind()
   {
@@ -82,6 +92,12 @@ class SketchPlugin_Arc : public SketchPlugin_SketchEntity, public GeomAPI_IPrese
   /// \param theDeltaY the delta for Y coordinate is moved
   SKETCHPLUGIN_EXPORT virtual void move(const double theDeltaX, const double theDeltaY);
 
+  /// Updates the "reversed" flag
+  /// \param isReversed  whether the arc will be reversed
+  void setReversed(bool isReversed);
+  /// Returns \c true is the arc is reversed
+  bool isReversed();
+
   /// Use plugin manager for features creation
   SketchPlugin_Arc();