X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FHYDROPy%2FHYDROData_PolylineXY.sip;h=f4dc0df54922d961635da37b6ed074b0d4ebbb33;hb=5ff8b7c83d889d383998207a55792c165afbf146;hp=082269e8e828778c5b27386fdc97205fc93b763c;hpb=0dac688e40d37aa25c144d0d55f7feab357faeb6;p=modules%2Fhydro.git diff --git a/src/HYDROPy/HYDROData_PolylineXY.sip b/src/HYDROPy/HYDROData_PolylineXY.sip index 082269e8..f4dc0df5 100644 --- a/src/HYDROPy/HYDROData_PolylineXY.sip +++ b/src/HYDROPy/HYDROData_PolylineXY.sip @@ -1,12 +1,8 @@ -// Copyright (C) 2007-2013 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 -// +// Copyright (C) 2014-2015 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 // 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 +20,7 @@ #include %End -class HYDROData_PolylineXY : HYDROData_IPolyline +class HYDROData_PolylineXY : public HYDROData_IPolyline { %TypeHeaderCode @@ -65,6 +61,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,17 +106,17 @@ public: * \param theSectionType type of section * \param theIsClosed flag indicates closures of section */ -/*TODO: void GetSections( NCollection_Sequence& theSectNames, - NCollection_Sequence& theSectTypes, - NCollection_Sequence& theSectClosures /Constrained/) const; -*/ + void GetSections( NCollection_Sequence& theSectNames /Out/, + NCollection_Sequence& theSectTypes /Out/, + NCollection_Sequence& theSectClosures /Out/ ) const; + /** * Replaces point for section with index "theSectionIndex". * \param theSectionIndex index of section * \param thePoints new points */ void SetPoints( const int theSectionIndex, - const PointsList& thePoints ); + const HYDROData_IPolyline::PointsList& thePoints ); /** * Returns the painter path.