]> Creatis software - creaContours.git/blobdiff - lib/Interface_ManagerContour_NDimensions/wxContourMainFrame.cxx
*** empty log message ***
[creaContours.git] / lib / Interface_ManagerContour_NDimensions / wxContourMainFrame.cxx
index 0c8433570f22364d0e07e1108b16f6ba24cdef6f..3536b2b0da69a62213b11f81e2c7f046ac8faa9e 100644 (file)
@@ -100,12 +100,12 @@ char wxContourMainFrame::COPY = 'C';
                if(images.size() > 0)
                {
                        _images = images;
-                       this->setVectImages();
+                       this->setVectImages(images);
                }
 
 }
 
-void wxContourMainFrame::setVectImages( )
+void wxContourMainFrame::setVectImages(std::vector<vtkImageData*> imgs)
 {
 
        #if defined(__GNUC__)
@@ -121,7 +121,7 @@ void wxContourMainFrame::setVectImages( )
        notebook = this->createNotebook();              
 
 
-       kernelManager = new KernelManagerContour( _images , _datadir+"/data/" , strCreaContourDataTmp );
+       kernelManager = new KernelManagerContour( imgs , _datadir+"/data/" , strCreaContourDataTmp );
 
 
        _instantPanel                           = new wxInstantChooserPanel( notebook, "Instant Chooser", true, false, "c" );
@@ -784,12 +784,14 @@ void wxContourMainFrame::onLoad(){
                fscanf(pFile,"%s",tmp); // Version
                fscanf(pFile,"%s",tmp); // 1.0.1 || 1.0.0
                std::string version(tmp);
-
+               
+               //AD:02-06-09
                if (version=="1.0.1")
                {
                        openContours(pFile,false);
                }
-
+               
+               //AD:02-06-09
                else if (version=="1.0.0")
                {
                        openContours(pFile,true);