<div>Hi all,</div><div><br></div><div>I wanted to decrease the rotation speed of my vtk window, hence I changed the code as below.</div><div><br></div><div><div>vtkRenderWindowInteractor *iren = vtkRenderWindowInteractor::New();</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>iren->SetRenderWindow(renWin);</div><div><span class="Apple-tab-span" style="white-space:pre">        </span> vtkSmartPointer<vtkInteractorStyleTrackballActor> style = </div>
<div> vtkSmartPointer<vtkInteractorStyleTrackballActor>::New();</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>iren->SetInteractorStyle(style);</div></div><div><br></div><div>This worked well, but it allows rotating objects separately, hence the axes is not rotating according to the object.</div>
<div>Please help me on how to allow rotating of the axes. Thanks in advance.</div><div>Below is how I set the axes.</div><div><br></div><div> vtkAxesActor *axes = vtkAxesActor::New();</div><div>vtkOrientationMarkerWidget *widget = vtkOrientationMarkerWidget::New();</div>
<div><div>widget->SetOrientationMarker(axes);</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>widget->SetInteractor(iren);</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>widget->SetEnabled(1);</div>
</div><div><br></div>