2013年5月31日 星期五

I made a change on VtkImageViewer / QVtkWidget, but nothing happened until I click on it or do other things

Something like this



Solution :

  • Whenever you make changes to VTK's data objects it's your job to call qvtkWidget->update() or viewer->Render() afterward so the new changes get put onto the screen.

The most convenient way is to call the Render( ) method of VtkImageViewer

  • When you change the vtkImageData which is the VtkImageViewer's Input
  • When you need to change the showing slice( most of time is a 3D Data )  
  • Blah, blah
---------> Call Render( )


沒有留言:

張貼留言