Salome HOME
refs #744 (draft)
[modules/hydro.git] / src / HYDROData / HYDROData_LandCoverMap.h
index 8aea8443fce9d90c7579405a4818dcb96c065ac0..c6535eecbc321c69a61b93e7b0c9ad4cd9774bf7 100644 (file)
@@ -26,6 +26,8 @@
 #include <TopoDS_Face.hxx>
 #include <TopExp_Explorer.hxx>
 
+class Handle_HYDROData_StricklerTable;
+
 typedef NCollection_IndexedDataMap<TopoDS_Face, QString> HYDROData_MapOfFaceToStricklerType;
 
 DEFINE_STANDARD_HANDLE( HYDROData_LandCoverMap, HYDROData_Entity )
@@ -88,18 +90,25 @@ public:
 
   HYDRODATA_EXPORT virtual const ObjectKind GetKind() const;
 
+  HYDRODATA_EXPORT bool ImportSHP( const QString& theSHPFileName,
+                                   const QList<int>& theIndices = QList<int>() );
+  HYDRODATA_EXPORT bool ExportSHP( const QString& theSHPFileName, bool bUseDiscr = false, double theDefl = 0.1) const;
+
   HYDRODATA_EXPORT DBFStatus ImportDBF( const QString& theDBFFileName, 
                                         const QString& theFieldName, 
                                         const QStringList& DBFValues,
                                         const QStringList& StricklerTypes,
                                         const QList<int>& theIndices = QList<int>() );
+
   HYDRODATA_EXPORT void ExportDBF( const QString& theDBFFileName,
                                    const QString& theFieldName, 
                                    const QStringList& theDBFValues,
                                    const QStringList& theStricklerTypes ) const;
 
-  HYDRODATA_EXPORT bool ExportTelemac( const QString& theFileName, double theDeflection ) const;
+  HYDRODATA_EXPORT bool ExportTelemac( const QString& theFileName,
+                                       double theDeflection,
+                                       const Handle_HYDROData_StricklerTable& theTable ) const;
 
   HYDRODATA_EXPORT bool Add( const Handle( HYDROData_Object )&, const QString& theType );
   HYDRODATA_EXPORT bool Add( const Handle( HYDROData_PolylineXY )&, const QString& theType );
@@ -134,6 +143,8 @@ public:
 
   HYDRODATA_EXPORT TopoDS_Shape RemoveInternal(const TopoDS_Shape& InSh);
 
+  HYDRODATA_EXPORT bool CheckLinear();
+
 protected:
   void SetShape( const TopoDS_Shape& );