X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FHYDROPy%2FHYDROData_ImmersibleZone.sip;h=3f5f6116361cf52e8c56e265a4f37dfa07ef273e;hb=58bb6b7459bebeeb089c9ed486c4683a8bae7288;hp=5346eb3b85dfcab5a17bfb24c98c01dad9e6380e;hpb=84f8b4a57d3cdad820bc1333a5066699cd1c8ae3;p=modules%2Fhydro.git diff --git a/src/HYDROPy/HYDROData_ImmersibleZone.sip b/src/HYDROPy/HYDROData_ImmersibleZone.sip index 5346eb3b..3f5f6116 100644 --- a/src/HYDROPy/HYDROData_ImmersibleZone.sip +++ b/src/HYDROPy/HYDROData_ImmersibleZone.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_ImmersibleZone : HYDROData_NaturalObject +class HYDROData_ImmersibleZone : public HYDROData_NaturalObject { %TypeHeaderCode @@ -46,34 +42,14 @@ class HYDROData_ImmersibleZone : HYDROData_NaturalObject public: - /** - * Sets filling color for zone. - */ - void SetFillingColor( const QColor& theColor ); - - /** - * Returns filling color of zone. - */ - QColor GetFillingColor() const; - - /** - * Sets border color for zone. - */ - void SetBorderColor( const QColor& theColor ); - - /** - * Returns border color of zone. - */ - QColor GetBorderColor() const; - /** * Sets reference polyline object for zone. */ - void SetPolyline( HYDROData_Polyline thePolyline ) [void (const Handle_HYDROData_Polyline&)]; + void SetPolyline( HYDROData_PolylineXY thePolyline ) [void (const opencascade::handle&)]; %MethodCode - Handle(HYDROData_Polyline) aRefPolyline = - Handle(HYDROData_Polyline)::DownCast( createHandle( a0 ) ); + Handle(HYDROData_PolylineXY) aRefPolyline = + Handle(HYDROData_PolylineXY)::DownCast( createHandle( a0 ) ); if ( !aRefPolyline.IsNull() ) { Py_BEGIN_ALLOW_THREADS @@ -87,17 +63,17 @@ public: /** * Returns reference polyline object of zone. */ - HYDROData_Polyline GetPolyline() const [Handle_HYDROData_Polyline ()]; + HYDROData_PolylineXY GetPolyline() const [opencascade::handle ()]; %MethodCode - Handle(HYDROData_Polyline) aRefPolyline; + Handle(HYDROData_PolylineXY) aRefPolyline; Py_BEGIN_ALLOW_THREADS aRefPolyline = sipSelfWasArg ? sipCpp->HYDROData_ImmersibleZone::GetPolyline() : sipCpp->GetPolyline(); Py_END_ALLOW_THREADS - sipRes = (HYDROData_Polyline*)createPointer( aRefPolyline ); + sipRes = (HYDROData_PolylineXY*)createPointer( aRefPolyline ); %End @@ -106,46 +82,6 @@ public: */ void RemovePolyline(); - /** - * Set reference bathymetry object for zone. - */ - void SetBathymetry( HYDROData_Bathymetry theBathymetry ) [void (const Handle_HYDROData_Bathymetry&)]; - %MethodCode - - Handle(HYDROData_Bathymetry) aRefBath = - Handle(HYDROData_Bathymetry)::DownCast( createHandle( a0 ) ); - if ( !aRefBath.IsNull() ) - { - Py_BEGIN_ALLOW_THREADS - sipSelfWasArg ? sipCpp->HYDROData_ImmersibleZone::SetBathymetry( aRefBath ) : - sipCpp->SetBathymetry( aRefBath ); - Py_END_ALLOW_THREADS - } - - %End - - /** - * Returns reference bathymetry object of zone. - */ - HYDROData_Bathymetry GetBathymetry() const [Handle_HYDROData_Bathymetry ()]; - %MethodCode - - Handle(HYDROData_Bathymetry) aRefBath; - - Py_BEGIN_ALLOW_THREADS - aRefBath = sipSelfWasArg ? sipCpp->HYDROData_ImmersibleZone::GetBathymetry() : - sipCpp->GetBathymetry(); - Py_END_ALLOW_THREADS - - sipRes = (HYDROData_Bathymetry*)createPointer( aRefBath ); - - %End - - /** - * Clear the bathymetry object for zone. - */ - void RemoveBathymetry(); - protected: /**