How to configure camera to display X Y slices directions

Hey, I’m working on a little viewer that display image slices of a VTI file, (AXIAL, CORONAL, SAGITTAL), Using the example below I was able to display Z direction, but it doesn’t work for X and Y, I know I must change camera position and orientation, I tried camera.setPosition() and camera.getOrientationWXYZ() and camera.setViewUp() with some random values because I don’t know what I must enter as parameters, I’m not sure about the functions I must use as well.

This is what what I was looking for: it is working:

//For X

//For Y