I wonder which is the professional command-line way of storing the output of TVirtualViewer3D on a gif or jpg or similar. The viewer I am concerned with is the one I get when displaying a TGeoManager’s geometry - I guess it is TGLSAViewer. It allows me to produce a gif via menu “File” - “Save” etc. I smartly checked the source code and found out that the member function I am after is indeed there, called TGLSAViewer::SavePicture, except, guess what, it is private. So what should one call instead?
“gl.gif” is properly generated from the current GLViewer. Is that what you are looking for ?
Let me know. I’ll commit the change in CVS if that’s what you need.
I have done the modification. TGLSAViewer::SavePicture is now a public method. Therefore it is now possible to generate gif files of the GL-Viewer from the command line
doing:
Between each call to glv->SavePicture(“gl.gif+”), the GL-Viewer display has been modified. Then gl.gif is an amination build from the various images displayed in the GL-Viewer.