<p dir="ltr">Hi all,</p>
<p dir="ltr">I'm using the vtkResliceImageViewer class to display a 3D volume in oblique mode, essentially as is done in the FourPaneViewer example program.The reslice cursor widget lets me reorient a given reslice plane with the mouse, but I would also like to set its orientation via the API. To this end, I have tried:</p>
<p dir="ltr">viewer->GetResliceCursor()->SetYAxis(yaxis);<br>
viewer->GetResliceCursor()->Modified();<br>
viewer->Render();</p>
<p dir="ltr">where 'viewer' is an instance of vtkResliceImageViewer and 'yaxis' has type double[3].</p>
<p dir="ltr">Unfortunately, however, the code has no effect on the orientation of the slice. Indeed, after the call to Render(), calling GetYAxis() reveals that the changes have been overwritten.</p>
<p dir="ltr">I'm afraid that I'm entirely new to VTK, and so am perhaps missing something embarrassingly obvious. I would be very grateful for any suggestions. I should mention that I'm hoping there might be a solution that is compatible with the existing vtkResliceCursorWidget (i.e., rather than using vtkResliceImage directly), as I still need to allow reorienting via the mouse.</p>
<p dir="ltr">Many thanks!</p>
<p dir="ltr">Colin</p>