]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/SketchAPI/SketchAPI_Sketch.h
Salome HOME
Rework Sketch Rectangle feature.
[modules/shaper.git] / src / SketchAPI / SketchAPI_Sketch.h
index 866986e72ca9600bc2bc630dc23f690ad1f12b92..5f3b4e430134d03fa47208f6d5938ef34b91eb2d 100644 (file)
@@ -181,22 +181,10 @@ public:
       const std::shared_ptr<GeomAPI_Pnt2d> & theEndPoint);
   /// Add rectangle
   SKETCHAPI_EXPORT
-  std::shared_ptr<SketchAPI_Rectangle> addRectangle(
-      double theX1, double theY1, double theX2, double theY2, bool isFirstPointCenter);
-  /// Add rectangle
-  SKETCHAPI_EXPORT
-  std::shared_ptr<SketchAPI_Rectangle> addRectangle(
-      const std::shared_ptr<GeomAPI_Pnt2d> & theFirstPoint,
-      const std::shared_ptr<GeomAPI_Pnt2d> & theEndPoint,  bool isFirstPointCenter);
-  /// Add rectangle
-  SKETCHAPI_EXPORT
   std::shared_ptr<SketchAPI_Rectangle> addRectangleCentered(
-      double theX1, double theY1, double theX2, double theY2);
-  /// Add rectangle
-  SKETCHAPI_EXPORT
-  std::shared_ptr<SketchAPI_Rectangle> addRectangleCentered(
-      const std::shared_ptr<GeomAPI_Pnt2d> & theFirstPoint,
-      const std::shared_ptr<GeomAPI_Pnt2d> & theEndPoint);
+      const std::pair<std::shared_ptr<GeomAPI_Pnt2d>, ModelHighAPI_RefAttr> & theCenter,
+      const std::pair<std::shared_ptr<GeomAPI_Pnt2d>, ModelHighAPI_RefAttr> & theCorner);
+
   /// Add circle
   SKETCHAPI_EXPORT
   std::shared_ptr<SketchAPI_Circle> addCircle(