1 // Copyright (C) 2014-2015 EDF-R&D
2 // This library is free software; you can redistribute it and/or
3 // modify it under the terms of the GNU Lesser General Public
4 // License as published by the Free Software Foundation; either
5 // version 2.1 of the License, or (at your option) any later version.
7 // This library is distributed in the hope that it will be useful,
8 // but WITHOUT ANY WARRANTY; without even the implied warranty of
9 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10 // Lesser General Public License for more details.
12 // You should have received a copy of the GNU Lesser General Public
13 // License along with this library; if not, write to the Free Software
14 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
16 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
20 #include <HYDROData_LandCoverMap.h>
23 class HYDROData_LandCoverMap : public HYDROData_Entity
26 #include <HYDROData_LandCoverMap.h>
29 %ConvertToSubClassCode
30 switch ( sipCpp->GetKind() )
32 case KIND_LAND_COVER_MAP:
33 sipClass = sipClass_HYDROData_LandCoverMap;
37 // We don't recognise the type.
46 DBFStatus_DIFF_SIZE_ERROR,
47 DBFStatus_OPEN_FILE_ERROR,
48 DBFStatus_NO_SUCH_FIELD_ERROR,
49 DBFStatus_NO_DBFVALUES_CORRESPONDENCE_WARNING
52 HYDROData_LandCoverMap();
53 ~HYDROData_LandCoverMap();
55 DBFStatus ImportDBF( const QString& theDBFFileName,
56 const QString& theFieldName,
57 const QStringList& DBFValues,
58 const QStringList& StricklerTypes );
60 void ExportDBF( const QString& theDBFFileName,
61 const QString& theFieldName,
62 const QStringList& theDBFValues,
63 const QStringList& theStricklerTypes ) const;
65 bool ExportTelemac( const QString& theFileName, double theDeflection,
66 HYDROData_StricklerTable theTable ) const
67 [bool( const QString&, double, const Handle_HYDROData_StricklerTable& )];
69 Handle(HYDROData_StricklerTable) aRef =
70 Handle(HYDROData_StricklerTable)::DownCast( createHandle( a2 ) );
73 Py_BEGIN_ALLOW_THREADS
74 sipRes = sipSelfWasArg ? sipCpp->HYDROData_LandCoverMap::ExportTelemac( *a0, a1, aRef ):
75 sipCpp->ExportTelemac( *a0, a1, aRef );
80 bool Add( HYDROData_Object theObject, const QString& theType )
81 [bool ( const Handle_HYDROData_Object&, const QString& )];
83 Handle(HYDROData_Object) aRef =
84 Handle(HYDROData_Object)::DownCast( createHandle( a0 ) );
87 Py_BEGIN_ALLOW_THREADS
88 sipRes = sipSelfWasArg ? sipCpp->HYDROData_LandCoverMap::Add( aRef, *a1 ):
89 sipCpp->Add( aRef, *a1 );
94 bool Add( HYDROData_PolylineXY thePolyline, const QString& theType )
95 [bool ( const Handle_HYDROData_PolylineXY&, const QString& )];
97 Handle(HYDROData_PolylineXY) aRef =
98 Handle(HYDROData_PolylineXY)::DownCast( createHandle( a0 ) );
101 Py_BEGIN_ALLOW_THREADS
102 sipRes = sipSelfWasArg ? sipCpp->HYDROData_LandCoverMap::Add( aRef, *a1 ):
103 sipCpp->Add( aRef, *a1 );
108 bool Split( HYDROData_PolylineXY thePolyline )
109 [bool ( const Handle_HYDROData_PolylineXY& )];
111 Handle(HYDROData_PolylineXY) aRef =
112 Handle(HYDROData_PolylineXY)::DownCast( createHandle( a0 ) );
113 if ( !aRef.IsNull() )
115 Py_BEGIN_ALLOW_THREADS
116 sipRes = sipSelfWasArg ? sipCpp->HYDROData_LandCoverMap::Split( aRef ):
117 sipCpp->Split( aRef );