Is it possible to get camera position/direction from a Pad, using geometry package

Hey guys

I am working with the Geometry package, drawing some setups. I want to extract the camera position and direction from the view. This is easily done with OpenGL, from the TGLCamera class. Is it possible to do something similar when drawing on a Pad (it needs to be able to work both with and whitout OpenGL)?

Hi,

You can get some camera properties from the TView class (see TView.h), but these are not quite the same as the GL ones. Once you have a geometry drawn in the pad, you can do:
TView *view = gPad->GetView(), then get view parameters.

An example on using the camera in the pad: $ROOTSYS/tutorials/geom/geodemo.C in function autorotate()

Regards,