how to control vtkResliceImageViewer via api

I have add vtkResliceImageViewer to my app and it works well. The reslice mode was set to oblique . The viewer can render nifti image and be controlled by mouse interaction.

2020-04-12_133107

Now I want to control the viewer via api. I’m able to set normal of the image plane in the viewer so the viewer can render changing images along the normal direction as the following code:

viewer->getReslice()->SetNormal(normalArray);

But I can not find any way to set image slice index/position, slice origion and some other parameters successfully. I’ll be very appreciated if someone give me some tips!