[vtkusers] QVTKWidget with interactorStyleImage does not work
Jothy
jothybasu at gmail.com
Wed Feb 16 06:19:04 EST 2011
Hi all,
I am trying to set the interactor style to image ina QVTKWidget.I am
setting it by calling the interactor by
QVTKWidget->GetInteractor()->SetInteractorStyle().
But it doesn't work. The image doesn't rotate as expected for a 2D
image interactor, but the W/L and W/W don't change on mouse move!
Here is the bit of that code
this->axialRenderer ->AddActor(slicer.axialSlice);
this->ui->AxialWidget->GetInteractor()->SetInteractorStyle(this->imageInteractorStyle);
this->ui->AxialWidget->GetRenderWindow()->AddRenderer(this->axialRenderer);
this->ui->AxialWidget->GetRenderWindow()->Render();
//this->ui->AxialWidget->show();
Thanks
Jothy
More information about the vtkusers
mailing list