Salome HOME
++ shapefil
[modules/hydro.git] / src / HYDROGUI / HYDROGUI_ExportFileOp.h
index abab9c298f46841f28da1cba6491089826748347..3fd45f81738620c3119d9171c1928e5556ab0184 100644 (file)
 #include <vector>
 
 //extern "C" {
-#include <shapelib/shapefil.h> 
+#include <shapefil.h> 
 //};
 
 class SUIT_FileDlg;
 class gp_XYZ;
 class Handle_HYDROData_PolylineXY;
 class Handle_HYDROData_Polyline3D;
+class Handle_HYDROData_LandCover;
+class TopoDS_Face;
 
 class HYDROGUI_ExportFileOp : public HYDROGUI_Operation
 {
@@ -45,8 +47,11 @@ public:
 
 protected:
   virtual void startOperation();
-  void WriteObjectPolyXY(SHPHandle theShpHandle, Handle_HYDROData_PolylineXY thePoly );
-  void WriteObjectPoly3D(SHPHandle theShpHandle, Handle_HYDROData_Polyline3D thePoly );
+  int WriteObjectPolyXY(SHPHandle theShpHandle, Handle_HYDROData_PolylineXY thePoly );
+  int WriteObjectPoly3D(SHPHandle theShpHandle, Handle_HYDROData_Polyline3D thePoly );
+  int WriteObjectLC(SHPHandle theShpHandle, Handle_HYDROData_LandCover theLC );
+private:
+  void ProcessFace(TopoDS_Face theFace, SHPHandle theShpHandle);
  private:
   SUIT_FileDlg* myFileDlg;
   std::vector<SHPObject*> mySHPObjects;