]> 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 61aecea6b8ea90c4367725282a87c43ae95dd4db..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;
@@ -97,10 +115,13 @@ private:
        double _spacing[3];
        int _extent[6];
 
-       typedef vector<vector<double>> vectorXYZ;
+       typedef vector< vector<double> > vectorXYZ;
        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);