]> Creatis software - creaContours.git/blobdiff - lib/kernel_ManagerContour_NDimensions/ParserOsirix/OsirixParser.h
export contours data
[creaContours.git] / lib / kernel_ManagerContour_NDimensions / ParserOsirix / OsirixParser.h
index 2b19e444e6be1ed4df148c4c8673f290b09681aa..346cd7adf44f65fcc34d8cb68ccff80d3de36ef5 100644 (file)
@@ -59,6 +59,22 @@ public:
 
        std::string getContoursFileName();
 
+       // Return ROI as lists of points
+       const std::map<int, vector< vector<double> > >& getContoursMapMM() {
+         return contoursmapMM;
+       }
+       const std::map<int, vector< vector<double> > >& getContoursMapPX() {
+         return contoursmapPX;
+       }
+
+       // Return ROI names
+       const std::map<int, std::string>& getContoursNameMM() {
+         return contoursnameMM;
+       }
+       const std::map<int, std::string>& getContoursNamePX() {
+         return contoursnamePX;
+       }
+
 private:
 
        std::string schema;
@@ -66,6 +82,7 @@ private:
        std::string errorline;  
 
        int _imageindex;
+       std::string _roiname;
 
        const char* OSIRIX_DICT;
        const char* OSIRIX_KEY;
@@ -78,7 +95,8 @@ private:
        const char* OSIRIX_POINT_MM;
        const char* OSIRIX_POINT_PX;
        const char* OSIRIX_STRING;              
-       
+       const char* OSIRIX_NAME;
+
        const char* CREACONTOUR;
        const char* CREACONTOUR_VERSION;
        const char* CREACONTOUR_IMAGEDIMENSIONS;
@@ -101,6 +119,9 @@ private:
        std::map<int, vectorXYZ> contoursmapMM; 
        std::map<int, vectorXYZ> contoursmapPX;
 
+       std::map<int, std::string> contoursnameMM;
+       std::map<int, std::string> contoursnamePX;
+
        void saveCreaContoursFormat();
 
        void writeHeader(FILE* pFile);