Salome HOME
bos#35152 [EDF] (2023-T1) Sketch Circle should allow user to position construction...
[modules/shaper.git] / src / SketchPlugin / SketchPlugin_Circle.h
index c5035fba26b9603e6b762ec420bcad3240218412..0f620d7a7459121405337e6310773b7e285a4c0d 100644 (file)
@@ -45,6 +45,20 @@ class SketchPlugin_Circle: public SketchPlugin_SketchEntity
     return ID;
   }
 
+  /// 2D point - rotate of the circle
+  inline static const std::string& ROTATE_ID()
+  {
+    static const std::string ID("circle_rotate");
+    return ID;
+  }
+
+  /// Contain created point as feature
+  inline static const std::string& ROTATE_REF_ID()
+  {
+    static const std::string ID("circle_rotate_point");
+    return ID;
+  }
+
   /// Radius of the circle
   inline static const std::string& RADIUS_ID()
   {
@@ -52,6 +66,13 @@ class SketchPlugin_Circle: public SketchPlugin_SketchEntity
     return ID;
   }
 
+  /// Angle of rotation sewing point of the circle
+  inline static const std::string& ANGLE_ID()
+  {
+    static const std::string ID("circle_angle");
+    return ID;
+  }
+
   /// Returns the kind of a feature
   SKETCHPLUGIN_EXPORT virtual const std::string& getKind()
   {
@@ -59,6 +80,16 @@ class SketchPlugin_Circle: public SketchPlugin_SketchEntity
     return MY_KIND;
   }
 
+  static const int THE_VERSION_0 = 0;
+  static const int THE_VERSION_1 = 20232206;
+
+  /// Attribute name of the version of Circle feature
+  inline static const std::string& VERSION_ID()
+  {
+    static const std::string MY_VERSION_ID("version");
+    return MY_VERSION_ID;
+  }
+
   /// Returns true is sketch element is under the rigid constraint
   SKETCHPLUGIN_EXPORT virtual bool isFixed();