]> Creatis software - creaContours.git/commitdiff
BUG Threshold actor
authorEduardo Davila <Eduardo.Davila@creatis.insa-lyon.fr>
Mon, 20 Apr 2009 09:31:21 +0000 (09:31 +0000)
committerEduardo Davila <Eduardo.Davila@creatis.insa-lyon.fr>
Mon, 20 Apr 2009 09:31:21 +0000 (09:31 +0000)
lib/Interface_ManagerContour_NDimensions/wxContourMainFrame.cxx

index 365cd88bf99817ae26d9000b2435a21b3e6d6215..dacf90a2c674a1d5931280cbd5fcef98ee401ead 100644 (file)
@@ -660,7 +660,7 @@ void wxContourMainFrame :: updateActor()
                        img->Update();
                        img->UpdateInformation();
 
-                       wxVtkBaseView * baseView = _theViewPanel->getWxVtkBaseView();
+//EED???                       wxVtkBaseView * baseView = _theViewPanel->getWxVtkBaseView();
                        
                        double range[2];
                        img->GetScalarRange(range);
@@ -1688,7 +1688,7 @@ void wxContourMainFrame::referenceLine()
                _refLineModel->SetCloseContour(false);
                _refLineControl->CreateNewManualContour();
 
-               double z = _refLineControl->GetZ();
+//EED??                double z = _refLineControl->GetZ();
        /*
                _refLineControl->AddPoint(50,100,z);
                _refLineControl->AddPoint(80,40,z);
@@ -1862,7 +1862,8 @@ void wxContourMainFrame::onThreshold(int minVal, int maxVal)
                        _thresholdActor = vtkImageActor::New( );
                        _thresholdActor->SetInput( mapperImage->GetOutput() );
                        _thresholdActor->SetOpacity( 0.6 );
-                       _thresholdActor->InterpolateOn( ); 
+                       _thresholdActor->SetPosition( 0,0, z+1 );
+                       _thresholdActor->InterpolateOn(  ); 
                }
                else
                {
@@ -1905,7 +1906,7 @@ void wxContourMainFrame::onThresholdChange(int minVal, int maxVal)
                img->Update();
                img->UpdateInformation();
 
-               wxVtkBaseView * baseView = _theViewPanel->getWxVtkBaseView();
+//EED??                wxVtkBaseView * baseView = _theViewPanel->getWxVtkBaseView();
                
                double range[2];
                img->GetScalarRange(range);