Camera focus on the cursor point

Hi evrey one,
I am on vtk 8.2, and I try on a 3d view (perspective enable) to zoom with wheel mouse on the current cursor position.
For zooming I am using the Dolly function from vtkCamera.

I’am zooming then I apply a translation to my camera director vector (postion, focal) to set the camera at the attended postion.

But the result is not good, I think this is not th good way. If some one as an idea.
Thank you.

I’m not sure if I understand your question correctly, but I believe what you are looking for is a way to zoom towards the point under the mouse cursor, is that correct? ParaView has a feature like this, and is open source. I believe the function in the ParaView source is called “DollyToPosition”. Hope this helps.