]> Creatis software - creaContours.git/commitdiff
Works with Visual Studio 2009
authorJuan Prieto <Juan.Prieto@creatis.insa-lyon.fr>
Mon, 5 Oct 2009 19:42:30 +0000 (19:42 +0000)
committerJuan Prieto <Juan.Prieto@creatis.insa-lyon.fr>
Mon, 5 Oct 2009 19:42:30 +0000 (19:42 +0000)
appli/wxContourGUIExample/CMakeLists.txt
lib/Interface_ManagerContour_NDimensions/wxInstantChooserPanel.cxx

index f893d2c18e43883d7e8dcc4e76d01a8d35960364..6ba1b9845608959a434e092e3c23b3f006a76666 100644 (file)
@@ -8,6 +8,7 @@ ELSE(WIN32)
 ENDIF(WIN32)
 
 INCLUDE_DIRECTORIES(${Boost_INCLUDE_DIRS})
+INCLUDE_DIRECTORIES(${creaImageIO2_INCLUDE_DIRS})
 
 TARGET_LINK_LIBRARIES( wxContourGUIExample
 #                     ${WXWIDGETS_LIBRARIES}
index ea1cfeaf9a1180866d618e6e63f90d2c61e33758..8f5894efe9e02fc06585099e3d84410ba7a86420 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((double) 2,(double) _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( (double)2, (double)_resolutionSlider->GetValue() ));
                int minTmp   = value - delta/2;
                int maxTmp   = value + delta/2;
                if (minTmp<min)