Salome HOME
Avoid crash if there is no parent of selection attribute.
[modules/shaper.git] / src / SketchAPI / SketchAPI_Rectangle.h
index f604848268631aac2c2a5fedd8ba308b6f6b182c..b9fe8fced01cea8cf62f0b39a67c34861c4cf269 100644 (file)
@@ -14,7 +14,8 @@
 // License along with this library; if not, write to the Free Software
 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
 //
-// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com<mailto:webmaster.salome@opencascade.com>
+// See http://www.salome-platform.org/ or
+// email : webmaster.salome@opencascade.com<mailto:webmaster.salome@opencascade.com>
 //
 
 #ifndef SRC_SKETCHAPI_SKETCHAPI_RECTANGLE_H_
@@ -64,6 +65,9 @@ public:
   SKETCHAPI_EXPORT
   void setByPoints(const std::shared_ptr<GeomAPI_Pnt2d> & theStartPoint,
                    const std::shared_ptr<GeomAPI_Pnt2d> & theEndPoint);
+
+  /// List of lines composing rectangle
+  SKETCHAPI_EXPORT std::list<std::shared_ptr<SketchAPI_SketchEntity> > lines() const;
 };
 
 //! Pointer on Rectangle object