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_Zone.h>
27 class HYDROData_Zone : HYDROData_Object
31 #include <HYDROData_Zone.h>
34 %ConvertToSubClassCode
35 if ( !Handle(HYDROData_Zone)::DownCast( sipCpp ).IsNull() )
36 sipClass = sipClass_HYDROData_Zone;
43 const ObjectKind GetKind() const;
48 * Sets filling color for zone.
50 void SetFillingColor( const QColor& theColor );
53 * Returns filling color of zone.
55 QColor GetFillingColor() const;
58 * Sets border color for zone.
60 void SetBorderColor( const QColor& theColor );
63 * Returns border color of zone.
65 QColor GetBorderColor() const;
68 * Sets reference polyline object for zone.
70 void SetPolyline( HYDROData_Polyline thePolyline ) [void (const Handle_HYDROData_Polyline&)];
73 Handle(HYDROData_Polyline) aRefPolyline =
74 Handle(HYDROData_Polyline)::DownCast( createHandle( a0 ) );
75 if ( !aRefPolyline.IsNull() )
77 Py_BEGIN_ALLOW_THREADS
78 sipSelfWasArg ? sipCpp->HYDROData_Zone::SetPolyline( aRefPolyline ) :
79 sipCpp->SetPolyline( aRefPolyline );
86 * Returns reference polyline object of zone.
88 HYDROData_Polyline GetPolyline() const [Handle_HYDROData_Polyline ()];
91 Handle(HYDROData_Polyline) aRefPolyline;
93 Py_BEGIN_ALLOW_THREADS
94 aRefPolyline = sipSelfWasArg ? sipCpp->HYDROData_Zone::GetPolyline() :
95 sipCpp->GetPolyline();
98 sipRes = (HYDROData_Polyline*)createPointer( aRefPolyline );
103 * Remove reference polyline object of zone.
105 void RemovePolyline();
108 * Returns number of bathymetry objects for zone.
110 int NbBathymetries() const;
113 * Add reference bathymetry object for zone.
115 void AddBathymetry( HYDROData_Bathymetry theBathymetry ) [void (const Handle_HYDROData_Bathymetry&)];
118 Handle(HYDROData_Bathymetry) aRefBath =
119 Handle(HYDROData_Bathymetry)::DownCast( createHandle( a0 ) );
120 if ( !aRefBath.IsNull() )
122 Py_BEGIN_ALLOW_THREADS
123 sipSelfWasArg ? sipCpp->HYDROData_Zone::AddBathymetry( aRefBath ) :
124 sipCpp->AddBathymetry( aRefBath );
131 * Change reference bathymetry object with given index for zone.
133 void SetBathymetry( const int theIndex,
134 HYDROData_Bathymetry theBathymetry ) [void (const int, const Handle_HYDROData_Bathymetry&)];
137 Handle(HYDROData_Bathymetry) aRefBath =
138 Handle(HYDROData_Bathymetry)::DownCast( createHandle( a1 ) );
139 if ( !aRefBath.IsNull() )
141 Py_BEGIN_ALLOW_THREADS
142 sipSelfWasArg ? sipCpp->HYDROData_Zone::SetBathymetry( a0, aRefBath ) :
143 sipCpp->SetBathymetry( a0, aRefBath );
150 * Returns reference bathymetry object of zone by it index.
152 HYDROData_Bathymetry GetBathymetry( const int theIndex ) const [Handle_HYDROData_Bathymetry (const int)];
155 Handle(HYDROData_Bathymetry) aRefBath;
157 Py_BEGIN_ALLOW_THREADS
158 aRefBath = sipSelfWasArg ? sipCpp->HYDROData_Zone::GetBathymetry( a0 ) :
159 sipCpp->GetBathymetry( a0 );
162 sipRes = (HYDROData_Bathymetry*)createPointer( aRefBath );
167 * Returns list of all reference bathymetry objects of zone.
169 //HYDROData_SequenceOfObjects GetBathymetries() const;
172 * Clear list of bathymetry objects of zone.
174 void RemoveBathymetries();
177 * Returns the painter path. The painter path is construct by polyline
179 QPainterPath GetPainterPath() const;
184 * Creates new object in the internal data structure. Use higher level objects
185 * to create objects with real content.
190 * Destructs properties of the object and object itself, removes it from the document.