view rotation around the geometric z-axis

Hello!
I would like to implement a view rotation around the geometric z-axis passing through the projected center of the screen. How can this be done? A view rotation around the geometric z-axis passing through (0,0,0) was easy by moving the eye(V3d_View::SetEye) on a circle parallel to the geometric xy-plane.
I'd be thankful for any hints,

Dirk

Dmitry Khabi's picture

If you choise the Mode "Rotate about Z Axis" yous have to set the deafult rotation Axis in V3d_View:
myV3d_View->SetAxis(0, 0, 0, 0, 0, 1);

to rotate the Eye you call the funktion:
myV3d_View->Rotate(aAngle, true);

Dirk B's picture

Thanks! I'm still experimenting with the first three parameters of SetAxis, but this seems to lead in the right direction.
Dirk