I would kike to calcule the actual view orientation.
For that, I execute this code, to get the vertical of the observer and the normal to the plane of projection :
Visual3d_ViewOrientation *myViewOrientation = new Visual3d_ViewOrientation();
*myViewOrientation = myView->ViewOrientation();
Graphic3d_Vector *myViewRefUp = new Graphic3d_Vector();
Graphic3d_Vector *myViewRefPlane = new Graphic3d_Vector();
*myViewRefUp = myViewOrientation->ViewReferenceUp();
*myViewRefPlane = myViewOrientation->ViewReferencePlane();
Now I would like to calculate the three angles of my view, alpha, beta and gamma :
alpha = asin(myViewRefPlane->Y()) * 180 / Pi;
beta = asin(myViewRefUp->X()) * 180 / Pi;
gamma = asin(myViewRefUp->Y()) * 180 / Pi;
It seems to be wrong but I don't know which vector coordinates I must use to get the good view orientation.
Anybody can help me ?