From 87b12401590633f92d2d16874c6fb36a877bb084 Mon Sep 17 00:00:00 2001 From: Eduardo Davila Date: Mon, 20 Apr 2009 09:31:21 +0000 Subject: [PATCH] BUG Threshold actor --- .../wxContourMainFrame.cxx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/lib/Interface_ManagerContour_NDimensions/wxContourMainFrame.cxx b/lib/Interface_ManagerContour_NDimensions/wxContourMainFrame.cxx index 365cd88..dacf90a 100644 --- a/lib/Interface_ManagerContour_NDimensions/wxContourMainFrame.cxx +++ b/lib/Interface_ManagerContour_NDimensions/wxContourMainFrame.cxx @@ -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); -- 2.45.1