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_Region.h>
27 class HYDROData_Region : HYDROData_Entity
31 #include <HYDROData_Region.h>
34 %ConvertToSubClassCode
35 switch ( sipCpp->GetKind() )
38 sipClass = sipClass_HYDROData_Region;
42 // We don't recognise the type.
50 * Create new one reference zone for region on child label.
51 * The new zone is not added into the list of reference zones.
53 HYDROData_Zone AddNewZone() [Handle_HYDROData_Zone ()];
56 Handle(HYDROData_Zone) aNewZone;
58 Py_BEGIN_ALLOW_THREADS
59 aNewZone = sipSelfWasArg ? sipCpp->HYDROData_Region::AddNewZone() :
63 sipRes = (HYDROData_Zone*)createPointer( aNewZone );
68 * Removes all child zones from region.
70 void RemoveChildZones();
74 * Returns number of reference zones of region.
79 * Add new one reference zone for region.
81 void AddZone( HYDROData_Zone theZone ) [void (const Handle_HYDROData_Zone&)];
84 Handle(HYDROData_Zone) aZone =
85 Handle(HYDROData_Zone)::DownCast( createHandle( a0 ) );
86 if ( !aZone.IsNull() )
88 Py_BEGIN_ALLOW_THREADS
89 sipSelfWasArg ? sipCpp->HYDROData_Region::AddZone( aZone ) :
90 sipCpp->AddZone( aZone );
97 * Replace the reference zone for region.
99 void SetZone( const int theIndex,
100 HYDROData_Zone theZone ) [void (const int, const Handle_HYDROData_Zone&)];
103 Handle(HYDROData_Zone) aZone =
104 Handle(HYDROData_Zone)::DownCast( createHandle( a1 ) );
105 if ( !aZone.IsNull() )
107 Py_BEGIN_ALLOW_THREADS
108 sipSelfWasArg ? sipCpp->HYDROData_Region::SetZone( a0, aZone ) :
109 sipCpp->SetZone( a0, aZone );
116 * Inserts the reference zone for region before given index.
118 void InsertZone( const int theBeforeIndex,
119 HYDROData_Zone theZone ) [void (const int, const Handle_HYDROData_Zone&)];
122 Handle(HYDROData_Zone) aZone =
123 Handle(HYDROData_Zone)::DownCast( createHandle( a1 ) );
124 if ( !aZone.IsNull() )
126 Py_BEGIN_ALLOW_THREADS
127 sipSelfWasArg ? sipCpp->HYDROData_Region::InsertZone( a0, aZone ) :
128 sipCpp->InsertZone( a0, aZone );
135 * Sets reference zones for calculation region.
137 //void SetZones( const HYDROData_SequenceOfObjects& theZones );
140 * Returns reference zone of region by index.
142 HYDROData_Zone GetZone( const int theIndex ) const [Handle_HYDROData_Zone (const int)];
145 Handle(HYDROData_Zone) aRefZone;
147 Py_BEGIN_ALLOW_THREADS
148 aRefZone = sipSelfWasArg ? sipCpp->HYDROData_Region::GetZone( a0 ) :
149 sipCpp->GetZone( a0 );
152 sipRes = (HYDROData_Zone*)createPointer( aRefZone );
157 * Returns all reference zone of region.
159 //void HYDROData_SequenceOfObjects GetZones() const;
162 * Removes reference zone from region.
164 void RemoveZone( HYDROData_Zone theZone ) const [void (const Handle_HYDROData_Zone&)];
167 Handle(HYDROData_Zone) aZone =
168 Handle(HYDROData_Zone)::DownCast( createHandle( a0 ) );
169 if ( !aZone.IsNull() )
171 Py_BEGIN_ALLOW_THREADS
172 sipSelfWasArg ? sipCpp->HYDROData_Region::RemoveZone( aZone ) :
173 sipCpp->RemoveZone( aZone );
180 * Removes reference zone from region by it index.
182 void RemoveZone( const int theIndex );
185 * Removes all reference zones from region.
193 * Creates new object in the internal data structure. Use higher level objects
194 * to create objects with real content.
199 * Destructs properties of the object and object itself, removes it from the document.