--- /dev/null
+// 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, 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
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+// Lesser General Public License for more details.
+//
+// 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
+//
+// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+//
+
+%ExportedHeaderCode
+#include <HYDROData_PolylineOperator.h>
+%End
+
+class HYDROData_PolylineOperator
+{
+
+%TypeHeaderCode
+#include <HYDROData_PolylineOperator.h>
+%End
+
+public:
+
+ HYDROData_PolylineOperator();
+
+ ~HYDROData_PolylineOperator();
+
+ bool Split( HYDROData_Document theDoc,
+ HYDROData_PolylineXY thePolyline,
+ double x, double y,
+ double theTolerance ) const
+ [bool (opencascade::handle<HYDROData_Document>&, opencascade::handle<HYDROData_PolylineXY>&, const gp_Pnt2d&, double)];
+ %MethodCode
+ Handle(HYDROData_PolylineXY) aPoly = Handle(HYDROData_PolylineXY)::DownCast( createHandle( a1 ) );
+ gp_Pnt2d aPnt( a2, a3 );
+ if ( !aPoly.IsNull() )
+ {
+ Py_BEGIN_ALLOW_THREADS
+ sipRes = sipSelfWasArg ? sipCpp->HYDROData_PolylineOperator::Split( a0, aPoly, aPnt, a4 ):
+ sipCpp->Split( a0, aPoly, aPnt, a4 );
+ Py_END_ALLOW_THREADS
+ }
+ %End
+
+ bool Split( HYDROData_Document theDoc,
+ HYDROData_PolylineXY thePolyline,
+ HYDROData_PolylineXY theTool,
+ double theTolerance,
+ bool& theIsIntersected) const
+ [bool (opencascade::handle<HYDROData_Document>&, opencascade::handle<HYDROData_PolylineXY>&, opencascade::handle<HYDROData_PolylineXY>&, double, bool&)];
+ %MethodCode
+ Handle(HYDROData_PolylineXY) aPoly = Handle(HYDROData_PolylineXY)::DownCast( createHandle( a1 ) );
+ Handle(HYDROData_PolylineXY) aTool = Handle(HYDROData_PolylineXY)::DownCast( createHandle( a2 ) );
+ if ( !aPoly.IsNull() && !aTool.IsNull())
+ {
+ Py_BEGIN_ALLOW_THREADS
+ sipRes = sipSelfWasArg ? sipCpp->HYDROData_PolylineOperator::Split( a0, aPoly, aTool, a3, a4 ):
+ sipCpp->Split( a0, aPoly, aTool, a3, a4 );
+ Py_END_ALLOW_THREADS
+ }
+ %End
+
+ bool Split( HYDROData_Document theDoc,
+ const HYDROData_SequenceOfObjects& thePolylines,
+ double theTolerance )
+ [bool (opencascade::handle<HYDROData_Document>&, const HYDROData_SequenceOfObjects&, double)];
+ %MethodCode
+ Py_BEGIN_ALLOW_THREADS
+ sipRes = sipSelfWasArg ? sipCpp->HYDROData_PolylineOperator::Split( a0, *a1, a2):
+ sipCpp->Split( a0, *a1, a2);
+ Py_END_ALLOW_THREADS
+ %End
+
+ bool Merge( HYDROData_Document theDoc,
+ const QString& theName,
+ const HYDROData_SequenceOfObjects& thePolylines,
+ bool isConnectByNewSegment,
+ double theTolerance )
+ [bool (opencascade::handle<HYDROData_Document>&, const QString&, const HYDROData_SequenceOfObjects&, bool, double)];
+ %MethodCode
+ Py_BEGIN_ALLOW_THREADS
+ sipRes = sipSelfWasArg ? sipCpp->HYDROData_PolylineOperator::Merge( a0, *a1, *a2, a3, a4):
+ sipCpp->Merge( a0, *a1, *a2, a3, a4);
+ Py_END_ALLOW_THREADS
+ %End
+};
+
+