Salome HOME
refs #640: correct width for non-georeferenced profile
[modules/hydro.git] / src / HYDROGUI / HYDROGUI_ImportPolylineOp.h
index 20b2f6e2ee657f03a0124221aab41729005e38da..01ea70a7ca8717ed8e34268848ce0bcb70ed9633 100644 (file)
 #include "HYDROGUI_Operation.h"
 #include <vector>
 
-//extern "C" {
-#include <shapelib/shapefil.h> 
-//};
+#include <NCollection_Sequence.hxx>
 
 class SUIT_FileDlg;
-class QFile;
-class gp_XYZ;
-
-struct HYDROGUI_CurveBlock
-{
-  //HYDROGUI_CurveBlock() : myType(-1), myIsConnected(false), myIsClosed(false), myName(""), myCurvePlane(-1), myRefRatio(1.0) 
-    //{};
-  std::vector<gp_XYZ> myXYZPoints;
-  int myType;
-  bool myIsConnected;
-  bool myIsClosed;
-  int myCurvePlane;
-  QString myName;
-  std::vector<double> myAdditionalCurveInfo;
-  std::vector<double> myRefCoords;
-  double myRefRatio;
-};
+class Handle_HYDROData_Entity;
 
 class HYDROGUI_ImportPolylineOp : public HYDROGUI_Operation
 {
@@ -60,15 +42,10 @@ public:
 protected:
   virtual void startOperation();
   virtual void onApply();
-  void ProcessSX();
-  bool Parse( QFile& theFile );
-  void Parse( SHPHandle theHandle);
-  void ProcessSHPPolyXY(SHPObject* anObj, QString theFileName, int theInd);
-  void ProcessSHPPoly3D(SHPObject* anObj, QString theFileName, int theInd);
+  void UpdateView( NCollection_Sequence<Handle_HYDROData_Entity>& anEntities);
+
 private:
   SUIT_FileDlg* myFileDlg;
-  std::vector<HYDROGUI_CurveBlock> myCurveBlocks;
-  std::vector<SHPObject*> mySHPObjects;
 };
 
 #endif