kernelManager->setInstant(instantVect);
//_modelManager->setInstant( _actualInstant );
+ updateActor();
updateInstantOutlines();
updateInstantImageData();
updateInstantAxes();
- updateActor();
}
img->Update();
img->UpdateInformation();
- wxVtkBaseView * baseView = _theViewPanel->getWxVtkBaseView();
+//EED??? wxVtkBaseView * baseView = _theViewPanel->getWxVtkBaseView();
double range[2];
img->GetScalarRange(range);
//mapperImage->SetOutputFormatToRGBA( );
_thresholdActor->SetInput( mapperImage->GetOutput() );
+ printf("EED wxContourMainFrame::updateActor %d \n" , z);
+ _thresholdActor->SetPosition( 0,0, 900-1 );
}
}
_refLineModel->SetCloseContour(false);
_refLineControl->CreateNewManualContour();
- double z = _refLineControl->GetZ();
+//EED?? double z = _refLineControl->GetZ();
/*
_refLineControl->AddPoint(50,100,z);
_refLineControl->AddPoint(80,40,z);
if (_thresholdActor==NULL)
{
_thresholdActor = vtkImageActor::New( );
- _thresholdActor->SetInput( mapperImage->GetOutput() );
_thresholdActor->SetOpacity( 0.6 );
- _thresholdActor->InterpolateOn( );
- }
- else
- {
- _thresholdActor->SetInput( mapperImage->GetOutput() );
+ _thresholdActor->InterpolateOn( );
}
+printf("EED wxContourMainFrame::onThreshold \n");
+ _thresholdActor->SetPosition( 0,0, z+1 );
+ _thresholdActor->SetInput( mapperImage->GetOutput() );
baseView->GetRenderer()->AddActor( _thresholdActor );
_actorPresent = true;
img->Update();
img->UpdateInformation();
- wxVtkBaseView * baseView = _theViewPanel->getWxVtkBaseView();
+//EED?? wxVtkBaseView * baseView = _theViewPanel->getWxVtkBaseView();
double range[2];
img->GetScalarRange(range);
//mapperImage->SetOutputFormatToRGBA( );
_thresholdActor->SetInput( mapperImage->GetOutput() );
+printf("EED wxContourMainFrame::onThresholdChange \n");
+ _thresholdActor->SetPosition( 0,0, z+1 );
+
}
RefreshInterface();