Axes Thumbnail to interact with image.

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?


Luís Gonçalves


Do you mean something like the buttons below (indicated by the red arrows)?



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->SetViewport(0.0, 0.0, 0.2, 0.2);

I used QVTKOpenGLWidget as my VTK window, but what is important is to access the render window (vtkRenderWindow).

I hope this helps.