1 // Copyright (C) 2007-2013 CEA/DEN, EDF R&D, OPEN CASCADE
3 // Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
6 // This library is free software; you can redistribute it and/or
7 // modify it under the terms of the GNU Lesser General Public
8 // License as published by the Free Software Foundation; either
9 // version 2.1 of the License.
11 // This library is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 // Lesser General Public License for more details.
16 // You should have received a copy of the GNU Lesser General Public
17 // License along with this library; if not, write to the Free Software
18 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
24 #include <HYDROData_Calculation.h>
27 class HYDROData_Calculation : HYDROData_Object
31 #include <HYDROData_Calculation.h>
34 %ConvertToSubClassCode
35 if ( !Handle(HYDROData_Calculation)::DownCast( sipCpp ).IsNull() )
36 sipClass = sipClass_HYDROData_Calculation;
43 const ObjectKind GetKind() const;
48 * Sets boundary polyline for calculation case.
50 void SetBoundaryPolyline( HYDROData_Polyline thePolyline ) [void (const Handle_HYDROData_Polyline&)];
53 Handle(HYDROData_Polyline) aRefPolyline =
54 Handle(HYDROData_Polyline)::DownCast( createHandle( a0 ) );
55 if ( !aRefPolyline.IsNull() )
57 Py_BEGIN_ALLOW_THREADS
58 sipSelfWasArg ? sipCpp->HYDROData_Calculation::SetBoundaryPolyline( aRefPolyline ) :
59 sipCpp->SetBoundaryPolyline( aRefPolyline );
66 * Returns boundary polyline of calculation case.
68 HYDROData_Polyline GetBoundaryPolyline() const [Handle_HYDROData_Polyline ()];
71 Handle(HYDROData_Polyline) aRefPolyline;
73 Py_BEGIN_ALLOW_THREADS
74 aRefPolyline = sipSelfWasArg ? sipCpp->HYDROData_Calculation::GetBoundaryPolyline() :
75 sipCpp->GetBoundaryPolyline();
78 sipRes = (HYDROData_Polyline*)createPointer( aRefPolyline );
83 * Removes boundary polyline of calculation case.
85 void RemoveBoundaryPolyline();
90 * Returns number of refrence zones for calculation case.
95 * Add new one refrence zone for calculation case.
97 void AddZone( HYDROData_Zone theZone ) [void (const Handle_HYDROData_Zone&)];
100 Handle(HYDROData_Zone) aRefZone =
101 Handle(HYDROData_Zone)::DownCast( createHandle( a0 ) );
102 if ( !aRefZone.IsNull() )
104 Py_BEGIN_ALLOW_THREADS
105 sipSelfWasArg ? sipCpp->HYDROData_Calculation::AddZone( aRefZone ) :
106 sipCpp->AddZone( aRefZone );
113 * Replace the refrence zone for calculation case.
115 void SetZone( const int theIndex,
116 HYDROData_Zone theZone ) [void (const int, const Handle_HYDROData_Zone&)];
119 Handle(HYDROData_Zone) aRefZone =
120 Handle(HYDROData_Zone)::DownCast( createHandle( a1 ) );
121 if ( !aRefZone.IsNull() )
123 Py_BEGIN_ALLOW_THREADS
124 sipSelfWasArg ? sipCpp->HYDROData_Calculation::SetZone( a0, aRefZone ) :
125 sipCpp->SetZone( a0, aRefZone );
132 * Sets the refrence zones for calculation case.
134 //void SetZones( const HYDROData_SequenceOfObjects& theZones );
137 * Returns refrence zone of calculation case by index.
139 HYDROData_Zone GetZone( const int theIndex ) const [Handle_HYDROData_Zone (const int)];
142 Handle(HYDROData_Zone) aRefZone;
144 Py_BEGIN_ALLOW_THREADS
145 aRefZone = sipSelfWasArg ? sipCpp->HYDROData_Calculation::GetZone( a0 ) :
146 sipCpp->GetZone( a0 );
149 sipRes = (HYDROData_Zone*)createPointer( aRefZone );
154 * Returns all refrence zone of calculation case.
156 //HYDROData_SequenceOfObjects GetZones() const;
159 * Removes all refrence zone of calculation case.
166 * Returns number of regions for calculation case.
168 int NbRegions() const;
171 * Add new one region for calculation case.
173 void AddRegion( HYDROData_Region theRegion ) [void (const Handle_HYDROData_Region&)];
176 Handle(HYDROData_Region) aRegion =
177 Handle(HYDROData_Region)::DownCast( createHandle( a0 ) );
178 if ( !aRegion.IsNull() )
180 Py_BEGIN_ALLOW_THREADS
181 sipSelfWasArg ? sipCpp->HYDROData_Calculation::AddRegion( aRegion ) :
182 sipCpp->AddRegion( aRegion );
189 * Replace the region for calculation case.
191 void SetRegion( const int theIndex,
192 HYDROData_Region theRegion ) [void (const int, const Handle_HYDROData_Region&)];
195 Handle(HYDROData_Region) aRegion =
196 Handle(HYDROData_Region)::DownCast( createHandle( a1 ) );
197 if ( !aRegion.IsNull() )
199 Py_BEGIN_ALLOW_THREADS
200 sipSelfWasArg ? sipCpp->HYDROData_Calculation::SetRegion( a0, aRegion ) :
201 sipCpp->SetRegion( a0, aRegion );
208 * Sets the refrence region for calculation case.
210 //void SetRegions( const HYDROData_SequenceOfObjects& theRegions );
213 * Returns region of calculation case by index.
215 HYDROData_Region GetRegion( const int theIndex ) const [Handle_HYDROData_Region (const int)];
218 Handle(HYDROData_Region) aRegion;
220 Py_BEGIN_ALLOW_THREADS
221 aRegion = sipSelfWasArg ? sipCpp->HYDROData_Calculation::GetRegion( a0 ) :
222 sipCpp->GetRegion( a0 );
225 sipRes = (HYDROData_Region*)createPointer( aRegion );
230 * Returns all regions of calculation case.
232 //HYDROData_SequenceOfObjects GetRegions() const;
235 * Removes all regions of calculation case.
237 void RemoveRegions();
243 * Creates new object in the internal data structure. Use higher level objects
244 * to create objects with real content.
246 HYDROData_Calculation();
249 * Destructs properties of the object and object itself, removes it from the document.
251 ~HYDROData_Calculation();