00001 #ifndef __GTOSCONVERTER_H 00002 #define __GTOSCONVERTER_H 00003 00004 #include <iostream> 00005 #include "glimsproject.h" 00006 #include "ImageSelectionCube.h" 00007 #include "ImageInterface.h" 00008 00018 class GtoSConverter{ 00019 00020 public: 00021 GtoSConverter( GLIMSProject *proj );//the class that handles converting 00022 ~GtoSConverter();//deconstructor 00023 void convert(std::string path);//the accessor to the covert 00024 void convert(std::string path, std::string delim);//the accessor to the covert 00025 00026 protected: 00027 GLIMSProject *mProj;//the associated project 00028 ImageInterface *mImage;//the Image 00029 std::vector<Shape *> selectedShapes;//the Shapes that are selected 00030 std::vector<ImageSelectionCube *> selectedCubes;//cubes of values of the shapes 00031 std::string outputFilePath ; 00032 00037 void getSelectedShapeList(); 00038 00045 void getSelectedShapes(); 00046 00051 std::string getConversion(); 00052 00061 std::string getConversion(std::string delim); 00062 00071 void writeConversion(std::string str, std::string path); 00072 00073 }; 00074 00075 #endif 00076