Salome HOME
Revert "bos#35152 [EDF] (2023-T1) Sketch Circle should allow user to position constru...
[modules/shaper.git] / src / SketchAPI / SketchAPI_MacroCircle.h
index ee278b9f9af806508e08271df4d73ab24b3ce99f..725edeacba82f16b2e5a647fbb6f84f2c40308ee 100644 (file)
@@ -43,37 +43,33 @@ public:
                         double theCenterX,
                         double theCenterY,
                         double thePassedX,
-                        double thePassedY,
-                        double theAngle);
+                        double thePassedY);
 
   /// Constructor with values.
   SKETCHAPI_EXPORT
   SketchAPI_MacroCircle(const std::shared_ptr<ModelAPI_Feature>& theFeature,
                         const std::shared_ptr<GeomAPI_Pnt2d>& theCenterPoint,
-                        const std::shared_ptr<GeomAPI_Pnt2d>& thePassedPoint,
-                        double theAngle);
+                        const std::shared_ptr<GeomAPI_Pnt2d>& thePassedPoint);
 
   /// Constructor with values.
   SKETCHAPI_EXPORT
   SketchAPI_MacroCircle(const std::shared_ptr<ModelAPI_Feature>& theFeature,
                         double theX1, double theY1,
                         double theX2, double theY2,
-                        double theX3, double theY3,
-                        double theAngle);
+                        double theX3, double theY3);
 
   /// Constructor with values.
   SKETCHAPI_EXPORT
   SketchAPI_MacroCircle(const std::shared_ptr<ModelAPI_Feature>& theFeature,
                         const std::shared_ptr<GeomAPI_Pnt2d>& thePoint1,
                         const std::shared_ptr<GeomAPI_Pnt2d>& thePoint2,
-                        const std::shared_ptr<GeomAPI_Pnt2d>& thePoint3,
-                        double theAngle);
+                        const std::shared_ptr<GeomAPI_Pnt2d>& thePoint3);
 
   /// Destructor.
   SKETCHAPI_EXPORT
   virtual ~SketchAPI_MacroCircle();
 
-  INTERFACE_7(SketchPlugin_MacroCircle::ID(),
+  INTERFACE_6(SketchPlugin_MacroCircle::ID(),
               circleType, SketchPlugin_MacroCircle::CIRCLE_TYPE(),
               ModelAPI_AttributeString, /** Circle type */,
               centerPoint, SketchPlugin_MacroCircle::CENTER_POINT_ID(),
@@ -85,35 +81,26 @@ public:
               secondPoint, SketchPlugin_MacroCircle::SECOND_POINT_ID(),
               GeomDataAPI_Point2D, /** Second point */,
               thirdPoint, SketchPlugin_MacroCircle::THIRD_POINT_ID(),
-              GeomDataAPI_Point2D, /** Third point */,
-              angle, SketchPlugin_MacroCircle::CIRCLE_ROTATE_ANGLE_ID(),
-              ModelAPI_AttributeDouble, /** Angle */)
+              GeomDataAPI_Point2D, /** Third point */)
 
-    /// Returns created points on circle
-    SKETCHAPI_EXPORT
-    std::shared_ptr<SketchAPI_SketchEntity> createdPoint() const;
 private:
   /// Set by center and passed points.
   void setByCenterAndPassedPoints(double theCenterX, double theCenterY,
-                                  double thePassedX, double thePassedY,
-                                  double theAngle);
+                                  double thePassedX, double thePassedY);
 
   /// Set by center and passed points.
   void setByCenterAndPassedPoints(const std::shared_ptr<GeomAPI_Pnt2d>& theCenterPoint,
-                                  const std::shared_ptr<GeomAPI_Pnt2d>& thePassedPoint,
-                                  double theAngle);
+                                  const std::shared_ptr<GeomAPI_Pnt2d>& thePassedPoint);
 
   /// Set by three points.
   void setByThreePoints(double theX1, double theY1,
                         double theX2, double theY2,
-                        double theX3, double theY3,
-                        double theAngle);
+                        double theX3, double theY3);
 
   /// Set by three points.
   void setByThreePoints(const std::shared_ptr<GeomAPI_Pnt2d>& thePoint1,
                         const std::shared_ptr<GeomAPI_Pnt2d>& thePoint2,
-                        const std::shared_ptr<GeomAPI_Pnt2d>& thePoint3,
-                        double theAngle);
+                        const std::shared_ptr<GeomAPI_Pnt2d>& thePoint3);
 };
 
 /// Pointer on Circle object.