From: Eduardo Davila Date: Mon, 20 Apr 2009 15:48:21 +0000 (+0000) Subject: BUG Threshold actor X-Git-Tag: EED.02Oct2009~37 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=8c1e8d790d969626c886564e539b9ddec9ac2f8a;p=creaContours.git BUG Threshold actor --- diff --git a/lib/Interface_ManagerContour_NDimensions/wxContourMainFrame.cxx b/lib/Interface_ManagerContour_NDimensions/wxContourMainFrame.cxx index dacf90a..d16860f 100644 --- a/lib/Interface_ManagerContour_NDimensions/wxContourMainFrame.cxx +++ b/lib/Interface_ManagerContour_NDimensions/wxContourMainFrame.cxx @@ -593,10 +593,10 @@ void wxContourMainFrame::changeInstant() kernelManager->setInstant(instantVect); //_modelManager->setInstant( _actualInstant ); + updateActor(); updateInstantOutlines(); updateInstantImageData(); updateInstantAxes(); - updateActor(); } @@ -710,6 +710,8 @@ void wxContourMainFrame :: updateActor() //mapperImage->SetOutputFormatToRGBA( ); _thresholdActor->SetInput( mapperImage->GetOutput() ); + printf("EED wxContourMainFrame::updateActor %d \n" , z); + _thresholdActor->SetPosition( 0,0, 900-1 ); } } @@ -1860,15 +1862,12 @@ void wxContourMainFrame::onThreshold(int minVal, int maxVal) if (_thresholdActor==NULL) { _thresholdActor = vtkImageActor::New( ); - _thresholdActor->SetInput( mapperImage->GetOutput() ); _thresholdActor->SetOpacity( 0.6 ); - _thresholdActor->SetPosition( 0,0, z+1 ); _thresholdActor->InterpolateOn( ); } - else - { - _thresholdActor->SetInput( mapperImage->GetOutput() ); - } +printf("EED wxContourMainFrame::onThreshold \n"); + _thresholdActor->SetPosition( 0,0, z+1 ); + _thresholdActor->SetInput( mapperImage->GetOutput() ); baseView->GetRenderer()->AddActor( _thresholdActor ); _actorPresent = true; @@ -1953,6 +1952,9 @@ void wxContourMainFrame::onThresholdChange(int minVal, int maxVal) //mapperImage->SetOutputFormatToRGBA( ); _thresholdActor->SetInput( mapperImage->GetOutput() ); +printf("EED wxContourMainFrame::onThresholdChange \n"); + _thresholdActor->SetPosition( 0,0, z+1 ); + } RefreshInterface();