Slice extraction of 3D data

I am a VTK beginner.
Currently, I was able to display the 3D data I have using SimpleRayCast.

Next, I want to extract any slice (2D image) on that 3D.
I want to extract slices on a line in 3D data displayed by SimpleRayCast.

I think that it is necessary to combine with vtkImageReslice.
Is it possible to achieve it?
Please give me some advice.