]> Creatis software - creaContours.git/commitdiff
*** empty log message ***
authorEduardo Davila <Eduardo.Davila@creatis.insa-lyon.fr>
Wed, 4 Nov 2009 18:03:09 +0000 (18:03 +0000)
committerEduardo Davila <Eduardo.Davila@creatis.insa-lyon.fr>
Wed, 4 Nov 2009 18:03:09 +0000 (18:03 +0000)
appli/wxContourGUIExample/wxContourGUIExample.cxx
lib/Interface_ManagerContour_NDimensions/wxContourMainFrame.cxx
lib/Interface_ManagerContour_NDimensions/wxInstantChooserPanel.cxx

index 5ba7580971cc9cbb9ed1e092f52cfae4470f415f..1fc7f77c75f1151ac1ce0ce4168ea3e51ad2835c 100644 (file)
@@ -271,10 +271,14 @@ bool wxTheApplication :: OnInit()
        int output_dim = NATIVE;
        int threads = 1;
 
+       std::vector<vtkImageData*> images;
+
        //creaImageIO::WxGimmickDialog w(0,-1,_T("WxGimmickDialog test"),wxDefaultPosition,wxSize(1200,800),max_image_type,threads);
+
        creaImageIO::WxGimmickReaderDialog w(0,-1,_T("WxGimmickDialog test"),wxDefaultPosition,wxSize(1200,800),min_image_type,max_image_type,output_dim,threads);
        w.ShowModal();
 
+
 //JCP
        //std::string datadir(  crea::wx2std(GetExecutablePath()) );    
        std::string datadir(  GetExecutablePath() );
@@ -285,7 +289,6 @@ bool wxTheApplication :: OnInit()
                #endif // MACOSX        
                
                
-               std::vector<vtkImageData*> images;
 
                        if(w.GetReturnCode() == wxID_OK)
                        {
@@ -313,6 +316,8 @@ bool wxTheApplication :: OnInit()
                                return -1;
                        }   
 
+
+
        wxFrame* frame1 = new wxFrame(NULL, wxID_ANY, wxT("ROI Application  -    Evaluation version, 09 Feb 2009 "), wxPoint(400,50), wxSize(800, 600) );
 
        //frame = new wxContourMainFrame( frame1, wxID_ANY, wxString(_T("")), wxPoint(50,50), wxSize(800, 600), images ); 
index 41a380463ed91a7f30274c5cbc61635ffa5b6293..4491a012dc333ccbb0161625a03068428ea55ea5 100644 (file)
@@ -2995,9 +2995,10 @@ int wxContourMainFrame::getType ()
                std::string cloneName = currentSelection [0];
                manualBaseModel * manualModel = kernelManager->getOutlineByKeyName(cloneName);
                tipo = manualModel-> GetTypeModel();    
-               return tipo;
        }
+       return tipo;
 }
+
 double wxContourMainFrame::getContourSizeInPixels()
 {
        double contourSize = 0; 
index ea1cfeaf9a1180866d618e6e63f90d2c61e33758..43af5d9acefa8fffb82e99a0993c5956dee42007 100644 (file)
@@ -134,7 +134,7 @@ DEFINE_EVENT_TYPE( wxINSTANT_CHOOSER_CHANGE )
                int value = _lastConceptUpdated->getActualValue();
                int min = _lastConceptUpdated->getMinValue();
                int max = _lastConceptUpdated->getMaxValue();
-               int delta = (int) (pow( 2, _resolutionSlider->GetValue() ));
+               int delta = (int) (pow( 2.0, _resolutionSlider->GetValue() ));
                int minTmp   = value - delta/2;
                int maxTmp   = value + delta/2;
                if (minTmp<min)
@@ -388,7 +388,7 @@ DEFINE_EVENT_TYPE( wxINSTANT_CHOOSER_CHANGE )
                int value = theConceptToUpdate->getActualValue();
                int min = theConceptToUpdate->getMinValue();
                int max = theConceptToUpdate->getMaxValue();
-               int delta = (int) (pow( 2, _resolutionSlider->GetValue() ));
+               int delta = (int) (pow( 2.0, _resolutionSlider->GetValue() ));
                int minTmp   = value - delta/2;
                int maxTmp   = value + delta/2;
                if (minTmp<min)