X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSketchAPI%2FSketchAPI_Rectangle.h;h=3f3242c7f27033832af5e6eea8e8ec22f15f430c;hb=252a8b06667f8ca9b26f8e10d7219da807e5a5b3;hp=b9fe8fced01cea8cf62f0b39a67c34861c4cf269;hpb=a94fc319f2aa64b43c9a73b5ff7063923648faec;p=modules%2Fshaper.git diff --git a/src/SketchAPI/SketchAPI_Rectangle.h b/src/SketchAPI/SketchAPI_Rectangle.h index b9fe8fced..3f3242c7f 100644 --- a/src/SketchAPI/SketchAPI_Rectangle.h +++ b/src/SketchAPI/SketchAPI_Rectangle.h @@ -1,4 +1,4 @@ -// Copyright (C) 2014-2017 CEA/DEN, EDF R&D +// Copyright (C) 2014-2022 CEA/DEN, EDF R&D // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -12,10 +12,9 @@ // // You should have received a copy of the GNU Lesser General Public // License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // -// See http://www.salome-platform.org/ or -// email : webmaster.salome@opencascade.com +// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com // #ifndef SRC_SKETCHAPI_SKETCHAPI_RECTANGLE_H_ @@ -25,6 +24,7 @@ #include "SketchAPI.h" #include "SketchAPI_SketchEntity.h" + //-------------------------------------------------------------------------------------- class ModelHighAPI_Selection; //-------------------------------------------------------------------------------------- @@ -45,16 +45,27 @@ public: /// Constructor with values SKETCHAPI_EXPORT SketchAPI_Rectangle(const std::shared_ptr & theFeature, - const std::shared_ptr & theStartPoint, + const std::shared_ptr & theFirstPoint, const std::shared_ptr & theEndPoint); /// Destructor SKETCHAPI_EXPORT virtual ~SketchAPI_Rectangle(); - INTERFACE_3("SketchRectangle", - startPoint, "RectStartPoint", GeomDataAPI_Point2D, /** Start point */, - endPoint, "RectEndPoint", GeomDataAPI_Point2D, /** End point */, - linesList, "RectangleList", ModelAPI_AttributeRefList, /** Lines list */ + INTERFACE_7("SketchRectangle", + type, "RectangleType", ModelAPI_AttributeString, + /** Creation type of rectangle */, + startPoint, "RectStartPoint", GeomDataAPI_Point2D, + /** Start point */, + endPoint, "RectEndPoint", GeomDataAPI_Point2D, + /** End point */, + centerPoint, "RectCenterPoint", GeomDataAPI_Point2D, + /** Center point */, + centerPointRef, "RectCenterPointRef", ModelAPI_AttributeRefAttr, + /** Reference to center point */, + cornerPoint, "RectCornerPoint", GeomDataAPI_Point2D, + /** Corner point */, + linesList, "RectangleList", ModelAPI_AttributeRefList, + /** Lines list */ ) /// Set by coordinates @@ -63,8 +74,8 @@ public: /// Set by points SKETCHAPI_EXPORT - void setByPoints(const std::shared_ptr & theStartPoint, - const std::shared_ptr & theEndPoint); + void setByPoints(const std::shared_ptr & theFirstPoint, + const std::shared_ptr & theSecondPoint); /// List of lines composing rectangle SKETCHAPI_EXPORT std::list > lines() const;