// 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 splitted zones for calculation case. */ int NbSplittedZones() const; /** * Add new one splitted zone for calculation case. */ void AddSplittedZone( 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::AddSplittedZone( aRefZone ) : sipCpp->AddSplittedZone( aRefZone ); Py_END_ALLOW_THREADS } %End /** * Replace the splitted zone for calculation case. */ void SetSplittedZone( 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::SetSplittedZone( a0, aRefZone ) : sipCpp->SetSplittedZone( a0, aRefZone ); Py_END_ALLOW_THREADS } %End /** * Sets the refrence zones for calculation case. */ //void SetSplittedZones( const HYDROData_SequenceOfObjects& theZones ); /** * Returns splitted zone of calculation case by index. */ HYDROData_Zone GetSplittedZone( const int theIndex ) const [Handle_HYDROData_Zone (const int)]; %MethodCode Handle(HYDROData_Zone) aRefZone; Py_BEGIN_ALLOW_THREADS aRefZone = sipSelfWasArg ? sipCpp->HYDROData_Calculation::GetSplittedZone( a0 ) : sipCpp->GetSplittedZone( a0 ); Py_END_ALLOW_THREADS sipRes = (HYDROData_Zone*)createPointer( aRefZone ); %End /** * Returns all splitted zones of calculation case. */ //HYDROData_SequenceOfObjects GetSplittedZones() const; /** * Removes all splitted refrence zone of calculation case. */ void RemoveSplittedZones(); 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(); };