Salome HOME
compilation on Linux
[modules/hydro.git] / src / HYDROPy / HYDROData_PolylineXY.sip
index 40781bdf3c0e03d52858d125c104cae2ef6a78c4..a8d7d68e92276f747bf1c6d9c9545f58afe74542 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2007-2013  CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2015  CEA/DEN, EDF R&D, OPEN CASCADE
 //
 // Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
@@ -6,7 +6,7 @@
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
 // License as published by the Free Software Foundation; either
-// version 2.1 of the License.
+// version 2.1 of the License, or (at your option) any later version.
 //
 // This library is distributed in the hope that it will be useful,
 // but WITHOUT ANY WARRANTY; without even the implied warranty of
@@ -24,7 +24,7 @@
 #include <HYDROData_PolylineXY.h>
 %End
 
-class HYDROData_PolylineXY : HYDROData_IPolyline
+class HYDROData_PolylineXY : public HYDROData_IPolyline
 {
 
 %TypeHeaderCode
@@ -65,6 +65,29 @@ public:
   virtual bool IsEditable() const;
 
   
+public:
+
+  /**
+   * Imports shape from IOR.
+   * \param theIOR the IOR of Geom object
+   * \return \c true if shape has been successfully imported
+   */
+  bool ImportFromGeomIOR( const TCollection_AsciiString& theIOR );
+
+  /**
+   * Stores the study entry of the imported GEOM object.
+   * \param theEntry GEOM object entry
+   */
+  void SetGeomObjectEntry( const TCollection_AsciiString& theEntry );
+
+  /**
+   * Returns the imported GEOM object entry.
+   */
+  TCollection_AsciiString GetGeomObjectEntry() const;
+
+
+public:
+
   /**
    * Returns true if polyline is closed
    * \param theIsSimpleCheck flag indicating the type of checking
@@ -87,9 +110,9 @@ public:
    * \param theSectionType type of section
    * \param theIsClosed flag indicates closures of section
    */
-  void GetSections( NCollection_Sequence<TCollection_AsciiString>& theSectNames,
-                    NCollection_Sequence<HYDROData_IPolyline::SectionType>& theSectTypes,
-                    NCollection_Sequence<bool>& theSectClosures ) const;
+  void GetSections( NCollection_Sequence<TCollection_AsciiString>& theSectNames /Out/,
+                    NCollection_Sequence<HYDROData_IPolyline::SectionType>& theSectTypes /Out/,
+                    NCollection_Sequence<bool>& theSectClosures /Out/ ) const;
 
   /**
    * Replaces point for section with index "theSectionIndex".