Dear All,
I want to have a plane with a coupled thumbnail axes image. With interaction wit the thumbnail I can rotate the plane in the direction of each axis.
There is something in VTK that eases to do that?
Thanks,
Luís Gonçalves
Dear All,
I want to have a plane with a coupled thumbnail axes image. With interaction wit the thumbnail I can rotate the plane in the direction of each axis.
There is something in VTK that eases to do that?
Thanks,
Luís Gonçalves
No. Like the axes in left-lower corner. If rotate those axes with the mouse the figure rotates accordingly.
Then you can do:
_vtkwidget = new QVTKOpenGLWidget();
(...)
//----------------------adding the orientation axes-------------------------
vtkSmartPointer<vtkAxesActor> axes = vtkSmartPointer<vtkAxesActor>::New();
_vtkAxesWidget = vtkSmartPointer<vtkOrientationMarkerWidget>::New();
_vtkAxesWidget->SetOutlineColor(0.9300, 0.5700, 0.1300);
_vtkAxesWidget->SetOrientationMarker(axes);
_vtkAxesWidget->SetInteractor(_vtkwidget->GetRenderWindow()->GetInteractor());
_vtkAxesWidget->SetViewport(0.0, 0.0, 0.2, 0.2);
_vtkAxesWidget->SetEnabled(1);
_vtkAxesWidget->InteractiveOn();
//--------------------------------------------------------------------------
I used QVTKOpenGLWidget
as my VTK window, but what is important is to access the render window (vtkRenderWindow).
I hope this helps.