#ifndef ROOT_TGLSAViewer
#define ROOT_TGLSAViewer
#ifndef ROOT_TGLViewer
#include "TGLViewer.h"
#endif
#ifndef ROOT_TString
#include "TString.h"
#endif
class TGWindow;
class TGFrame;
class TGCompositeFrame;
class TGPopupMenu;
class TGLSAFrame;
class TGedEditor;
class TGLPShapeObj;
class TGLRenderArea;
class TGLSAViewer : public TGLViewer
{
public:
enum EGLSACommands {
kGLHelpAbout, kGLHelpViewer,
kGLPerspYOZ, kGLPerspXOZ, kGLPerspXOY,
kGLXOY, kGLXOZ, kGLZOY,
kGLOrthoRotate, kGLOrthoDolly,
kGLSaveEPS, kGLSavePDF, kGLSavePNG, kGLSaveGIF,
kGLSaveJPG, kGLSaveAS, kGLCloseViewer, kGLQuitROOT,
kGLEditObject };
private:
TGLSAFrame *fFrame;
TGPopupMenu *fFileMenu;
TGPopupMenu *fFileSaveMenu;
TGPopupMenu *fCameraMenu;
TGPopupMenu *fHelpMenu;
TGLRenderArea *fGLArea;
TGCompositeFrame *fLeftVerticalFrame;
TGedEditor *fGedEditor;
TGLPShapeObj *fPShapeWrap;
TString fDirName;
Int_t fTypeIdx;
Bool_t fOverwrite;
TString fPictureFileName;
static const Int_t fgInitX;
static const Int_t fgInitY;
static const Int_t fgInitW;
static const Int_t fgInitH;
static const char * fgHelpText1;
static const char * fgHelpText2;
void CreateMenus();
void CreateFrames();
TGLSAViewer(const TGLSAViewer &);
TGLSAViewer & operator = (const TGLSAViewer &);
public:
TGLSAViewer(TVirtualPad *pad);
TGLSAViewer(const TGWindow *parent, TVirtualPad *pad, TGedEditor *ged = 0);
~TGLSAViewer();
virtual const char* GetName() const { return "GLViewer"; }
virtual void SelectionChanged();
virtual void OverlayDragFinished();
virtual void RefreshPadEditor(TObject* changed=0);
void Show();
void Close();
void SavePicture();
void SavePicture(const TString &fileName);
Bool_t ProcessFrameMessage(Long_t msg, Long_t parm1, Long_t);
TGLSAFrame* GetFrame() const { return fFrame; }
TGCompositeFrame* GetLeftVerticalFrame() const { return fLeftVerticalFrame; }
TGedEditor* GetGedEditor() const { return fGedEditor; }
void ToggleEditObject();
void ToggleOrthoRotate();
void ToggleOrthoDolly();
ClassDef(TGLSAViewer, 0)
};
#endif
Last update: Thu Jan 17 08:52:16 2008
This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.