// 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 // // 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. // // 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 %End class HYDROData_Calculation : HYDROData_Object { %TypeHeaderCode #include %End %ConvertToSubClassCode if ( !Handle(HYDROData_Calculation)::DownCast( sipCpp ).IsNull() ) sipClass = sipClass_HYDROData_Calculation; else sipClass = NULL; %End public: const ObjectKind GetKind() const; public: /** * Sets boundary polyline for calculation case. */ void SetBoundaryPolyline( HYDROData_Polyline thePolyline ) [void (const Handle_HYDROData_Polyline&)]; %MethodCode Handle(HYDROData_Polyline) aRefPolyline = Handle(HYDROData_Polyline)::DownCast( createHandle( a0 ) ); if ( !aRefPolyline.IsNull() ) { Py_BEGIN_ALLOW_THREADS sipSelfWasArg ? sipCpp->HYDROData_Calculation::SetBoundaryPolyline( aRefPolyline ) : sipCpp->SetBoundaryPolyline( aRefPolyline ); Py_END_ALLOW_THREADS } %End /** * Returns boundary polyline of calculation case. */ HYDROData_Polyline GetBoundaryPolyline() const [Handle_HYDROData_Polyline ()]; %MethodCode Handle(HYDROData_Polyline) aRefPolyline; Py_BEGIN_ALLOW_THREADS aRefPolyline = sipSelfWasArg ? sipCpp->HYDROData_Calculation::GetBoundaryPolyline() : sipCpp->GetBoundaryPolyline(); Py_END_ALLOW_THREADS sipRes = (HYDROData_Polyline*)createPointer( aRefPolyline ); %End /** * Removes boundary polyline of calculation case. */ void RemoveBoundaryPolyline(); /** * Returns number of refrence zones for calculation case. */ int NbZones() const; /** * Add new one refrence zone for calculation case. */ void AddZone( HYDROData_Zone theZone ) [void (const Handle_HYDROData_Zone&)]; %MethodCode Handle(HYDROData_Zone) aRefZone = Handle(HYDROData_Zone)::DownCast( createHandle( a0 ) ); if ( !aRefZone.IsNull() ) { Py_BEGIN_ALLOW_THREADS sipSelfWasArg ? sipCpp->HYDROData_Calculation::AddZone( aRefZone ) : sipCpp->AddZone( aRefZone ); Py_END_ALLOW_THREADS } %End /** * Replace the refrence zone for calculation case. */ void SetZone( const int theIndex, HYDROData_Zone theZone ) [void (const int, const Handle_HYDROData_Zone&)]; %MethodCode Handle(HYDROData_Zone) aRefZone = Handle(HYDROData_Zone)::DownCast( createHandle( a1 ) ); if ( !aRefZone.IsNull() ) { Py_BEGIN_ALLOW_THREADS sipSelfWasArg ? sipCpp->HYDROData_Calculation::SetZone( a0, aRefZone ) : sipCpp->SetZone( a0, aRefZone ); Py_END_ALLOW_THREADS } %End /** * Sets the refrence zones for calculation case. */ //void SetZones( const HYDROData_SequenceOfObjects& theZones ); /** * Returns refrence zone of calculation case by index. */ HYDROData_Zone GetZone( const int theIndex ) const [Handle_HYDROData_Zone (const int)]; %MethodCode Handle(HYDROData_Zone) aRefZone; Py_BEGIN_ALLOW_THREADS aRefZone = sipSelfWasArg ? sipCpp->HYDROData_Calculation::GetZone( a0 ) : sipCpp->GetZone( a0 ); Py_END_ALLOW_THREADS sipRes = (HYDROData_Zone*)createPointer( aRefZone ); %End /** * Returns all refrence zone of calculation case. */ //HYDROData_SequenceOfObjects GetZones() const; /** * Removes all refrence zone of calculation case. */ void RemoveZones(); /** * Returns number of regions for calculation case. */ int NbRegions() const; /** * Add new one region for calculation case. */ void AddRegion( HYDROData_Region theRegion ) [void (const Handle_HYDROData_Region&)]; %MethodCode Handle(HYDROData_Region) aRegion = Handle(HYDROData_Region)::DownCast( createHandle( a0 ) ); if ( !aRegion.IsNull() ) { Py_BEGIN_ALLOW_THREADS sipSelfWasArg ? sipCpp->HYDROData_Calculation::AddRegion( aRegion ) : sipCpp->AddRegion( aRegion ); Py_END_ALLOW_THREADS } %End /** * Replace the region for calculation case. */ void SetRegion( const int theIndex, HYDROData_Region theRegion ) [void (const int, const Handle_HYDROData_Region&)]; %MethodCode Handle(HYDROData_Region) aRegion = Handle(HYDROData_Region)::DownCast( createHandle( a1 ) ); if ( !aRegion.IsNull() ) { Py_BEGIN_ALLOW_THREADS sipSelfWasArg ? sipCpp->HYDROData_Calculation::SetRegion( a0, aRegion ) : sipCpp->SetRegion( a0, aRegion ); Py_END_ALLOW_THREADS } %End /** * Sets the refrence region for calculation case. */ //void SetRegions( const HYDROData_SequenceOfObjects& theRegions ); /** * Returns region of calculation case by index. */ HYDROData_Region GetRegion( const int theIndex ) const [Handle_HYDROData_Region (const int)]; %MethodCode Handle(HYDROData_Region) aRegion; Py_BEGIN_ALLOW_THREADS aRegion = sipSelfWasArg ? sipCpp->HYDROData_Calculation::GetRegion( a0 ) : sipCpp->GetRegion( a0 ); Py_END_ALLOW_THREADS sipRes = (HYDROData_Region*)createPointer( aRegion ); %End /** * Returns all regions of calculation case. */ //HYDROData_SequenceOfObjects GetRegions() const; /** * Removes all regions of calculation case. */ void RemoveRegions(); protected: /** * Creates new object in the internal data structure. Use higher level objects * to create objects with real content. */ HYDROData_Calculation(); /** * Destructs properties of the object and object itself, removes it from the document. */ ~HYDROData_Calculation(); };