#include <TGLSAViewer.h>
Inheritance diagram for TGLSAViewer:
Definition at line 37 of file TGLSAViewer.h.
Definition at line 40 of file TGLSAViewer.h.
Definition at line 40 of file TGLSAViewer.h.
TGLSAViewer::TGLSAViewer | ( | const TGLSAViewer & | ) | [private] |
TGLSAViewer::TGLSAViewer | ( | TVirtualPad * | pad, | |
TGLFormat * | format = 0 | |||
) |
Definition at line 208 of file TGLSAViewer.cxx.
References TList::AddFirst(), CreateFrames(), CreateMenus(), fFrame, fgInitH, fgInitW, fgInitX, fgInitY, TList::First(), fLeftVerticalFrame, fMenuBut, TGCompositeFrame::GetDefaultSize(), TGCompositeFrame::GetList(), TGCompositeFrame::HideFrame(), kDeepCleanup, kMWMDecorAll, kMWMFuncAll, kMWMInputModeless, TGCompositeFrame::MapSubwindows(), TGFrame::MoveResize(), TList::Remove(), TGFrame::Resize(), TGMainFrame::SetClassHints(), TGCompositeFrame::SetCleanup(), TGMainFrame::SetMWMHints(), TGMainFrame::SetWindowName(), TGMainFrame::SetWMPosition(), and Show().
TGLSAViewer::TGLSAViewer | ( | const TGWindow * | parent, | |
TVirtualPad * | pad, | |||
TGedEditor * | ged = 0 , |
|||
TGLFormat * | format = 0 | |||
) |
Definition at line 256 of file TGLSAViewer.cxx.
References TList::AddFirst(), CreateFrames(), CreateMenus(), fFrame, TGLViewer::fGedEditor, fgInitH, fgInitW, TList::First(), fLeftVerticalFrame, fMenuBut, TGCompositeFrame::GetDefaultSize(), TGCompositeFrame::GetList(), TGCompositeFrame::HideFrame(), kDeepCleanup, TGCompositeFrame::MapSubwindows(), TList::Remove(), TGFrame::Resize(), TGCompositeFrame::SetCleanup(), and Show().
TGLSAViewer::~TGLSAViewer | ( | ) |
Definition at line 306 of file TGLSAViewer.cxx.
References DisableMenuBarHiding(), TGedEditor::DisconnectFromCanvas(), fCameraMenu, fDeleteMenuBar, fFileMenu, fFileSaveMenu, fFormat, fFrame, TGLViewer::fGedEditor, TGLViewer::fGLWidget, fHelpMenu, and fMenuBar.
TGLSAViewer::TGLSAViewer | ( | const TGLSAViewer & | ) | [private] |
TGLSAViewer::TGLSAViewer | ( | TVirtualPad * | pad, | |
TGLFormat * | format = 0 | |||
) |
TGLSAViewer::TGLSAViewer | ( | const TGWindow * | parent, | |
TVirtualPad * | pad, | |||
TGedEditor * | ged = 0 , |
|||
TGLFormat * | format = 0 | |||
) |
TGLSAViewer::~TGLSAViewer | ( | ) |
void TGLSAViewer::ResetMenuHidingTimer | ( | Bool_t | show_menu | ) | [private] |
Definition at line 618 of file TGLSAViewer.cxx.
References fgMenuHidingTimeout, fMenuHidingShowMenu, fMenuHidingTimer, TTimer::Reset(), TTimer::SetTime(), TTimer::TurnOff(), and TTimer::TurnOn().
Referenced by HandleMenuBarHiding().
void TGLSAViewer::CreateMenus | ( | ) | [private] |
Definition at line 377 of file TGLSAViewer.cxx.
References TGPopupMenu::AddEntry(), TGCompositeFrame::AddFrame(), TGMenuBar::AddPopup(), TGPopupMenu::AddPopup(), TGPopupMenu::AddSeparator(), TGPopupMenu::Associate(), TGFrame::ChangeOptions(), fCameraMenu, fFileMenu, fFileSaveMenu, fFrame, fHelpMenu, fMenuBar, fMenuBut, TGObject::GetClient(), TGClient::GetDefaultRoot(), TGObject::GetId(), gVirtualX, kEnterWindowMask, kExposureMask, kFixedHeight, kFocusChangeMask, kGLCloseViewer, kGLEditObject, kGLHelpAbout, kGLHelpViewer, kGLHideMenus, kGLOrthoDolly, kGLOrthoRotate, kGLPerspXOY, kGLPerspXOZ, kGLPerspYOZ, kGLQuitROOT, kGLSaveAnimGIF, kGLSaveAS, kGLSaveEPS, kGLSaveGIF, kGLSaveJPG, kGLSavePDF, kGLSavePNG, kGLXnOY, kGLXnOZ, kGLXOY, kGLXOZ, kGLZnOY, kGLZOY, kKeyPressMask, kLeaveWindowMask, kLHintsExpandX, kLHintsLeft, kLHintsNormal, kLHintsRight, kLHintsTop, kPointerMotionMask, kRaisedFrame, kStructureNotifyMask, TGFrame::Resize(), and TGFrame::SetBackgroundColor().
Referenced by TGLSAViewer().
void TGLSAViewer::CreateFrames | ( | ) | [private] |
Definition at line 440 of file TGLSAViewer.cxx.
References TGCompositeFrame::AddFrame(), TGFrame::ChangeOptions(), CreateGLWidget(), TGLViewer::fEventHandler, fFrame, TGLViewer::fGedEditor, fLeftVerticalFrame, fRightVerticalFrame, TGObject::GetClient(), TGClient::GetRoot(), TGedEditor::GetTGCanvas(), kFixedWidth, kHorizontalFrame, kLHintsExpandX, kLHintsExpandY, kLHintsLeft, kLHintsRight, kLHintsTop, kRaisedFrame, kTRUE, TGCompositeFrame::MapSubwindows(), TGCompositeFrame::RemoveFrame(), TGVSplitter::SetFrame(), TGClient::SetRoot(), and TGLViewer::TGLEventHandler.
Referenced by TGLSAViewer().
TGLSAViewer& TGLSAViewer::operator= | ( | const TGLSAViewer & | ) | [private] |
void TGLSAViewer::CreateGLWidget | ( | ) | [virtual] |
Reimplemented from TGLViewer.
Definition at line 335 of file TGLSAViewer.cxx.
References TGCompositeFrame::AddFrame(), TGLWidget::Create(), TObject::Error(), TGLViewer::fEventHandler, fFormat, fFrame, TGLViewer::fGLWidget, fRightVerticalFrame, kLHintsExpandX, kLHintsExpandY, kTRUE, TGCompositeFrame::Layout(), TGFrame::MapWindow(), and TGLWidget::SetEventHandler().
Referenced by CreateFrames().
void TGLSAViewer::DestroyGLWidget | ( | ) | [virtual] |
Reimplemented from TGLViewer.
Definition at line 358 of file TGLSAViewer.cxx.
References TGFrame::DeleteWindow(), TObject::Error(), TGLViewer::fGLWidget, fRightVerticalFrame, TGCompositeFrame::RemoveFrame(), TGLWidget::SetEventHandler(), and TGFrame::UnmapWindow().
virtual const char* TGLSAViewer::GetName | ( | ) | const [inline, virtual] |
void TGLSAViewer::SelectionChanged | ( | ) | [virtual] |
Reimplemented from TGLViewer.
Definition at line 480 of file TGLSAViewer.cxx.
References fFileMenu, TGLViewer::fGedEditor, TGLViewer::fPad, TGLPShapeObj::fPShape, TGLViewer::fPShapeWrap, TGLLogicalShape::GetExternal(), TGLPhysicalShape::GetLogical(), TGLViewer::GetSelected(), TGPopupMenu::IsEntryChecked(), kButton1Down, kGLEditObject, and TGedEditor::SetModel().
Referenced by ToggleEditObject().
void TGLSAViewer::Show | ( | ) |
Definition at line 500 of file TGLSAViewer.cxx.
References fFrame, TGLViewer::fGedEditor, TGLViewer::fPad, kButton1Down, TGFrame::MapRaised(), TGLViewer::RequestDraw(), and TGedEditor::SetModel().
Referenced by TGLSAViewer().
void TGLSAViewer::Close | ( | ) |
Definition at line 509 of file TGLSAViewer.cxx.
void TGLSAViewer::DeleteMenuBar | ( | ) |
void TGLSAViewer::DisableCloseMenuEntries | ( | ) |
Definition at line 525 of file TGLSAViewer.cxx.
References TGPopupMenu::DeleteEntry(), fFileMenu, kGLCloseViewer, and kGLQuitROOT.
void TGLSAViewer::EnableMenuBarHiding | ( | ) |
Definition at line 534 of file TGLSAViewer.cxx.
References TGPopupMenu::CheckEntry(), TQObject::Connect(), fFileMenu, fFrame, fHideMenuBar, fMenuBar, fMenuBut, fMenuHidingTimer, TGCompositeFrame::HideFrame(), kGLHideMenus, kTRUE, TGCompositeFrame::Layout(), and TGCompositeFrame::ShowFrame().
Referenced by ProcessFrameMessage().
void TGLSAViewer::DisableMenuBarHiding | ( | ) |
Definition at line 557 of file TGLSAViewer.cxx.
References TQObject::Disconnect(), fFileMenu, fFrame, fHideMenuBar, fMenuBar, fMenuBut, fMenuHidingTimer, TGCompositeFrame::HideFrame(), kFALSE, kGLHideMenus, TGCompositeFrame::Layout(), TGCompositeFrame::ShowFrame(), TTimer::TurnOff(), and TGPopupMenu::UnCheckEntry().
Referenced by ProcessFrameMessage(), and ~TGLSAViewer().
void TGLSAViewer::MenuHidingTimeout | ( | ) |
Definition at line 636 of file TGLSAViewer.cxx.
References fFrame, fMenuBar, fMenuBut, fMenuHidingShowMenu, fMenuHidingTimer, TGCompositeFrame::HideFrame(), TGCompositeFrame::Layout(), TGCompositeFrame::ShowFrame(), and TTimer::TurnOff().
void TGLSAViewer::HandleMenuBarHiding | ( | Event_t * | ev | ) |
Definition at line 581 of file TGLSAViewer.cxx.
References TQObject::Connect(), fMenuBar, fMenuBut, fMenuHidingTimer, Event_t::fType, Event_t::fX, Event_t::fY, TGMenuBar::GetCurrent(), gTQSender, kEnterNotify, kFALSE, kLeaveNotify, kTRUE, ResetMenuHidingTimer(), and TTimer::TurnOff().
Definition at line 661 of file TGLSAViewer.cxx.
References TRootHelpDialog::AddText(), DisableMenuBarHiding(), EnableMenuBarHiding(), TString::EndsWith(), TSystem::Exec(), fDirName, TGFileInfo::fFilename, TGFileInfo::fFileTypeIdx, TGFileInfo::fFileTypes, fFrame, fgHelpText1, fgHelpText2, fHideMenuBar, fi, TGFileInfo::fIniDir, fOverwrite, TGFileInfo::fOverwrite, fTypeIdx, gApplication, gClient, GET_MSG(), GET_SUBMSG(), TGClient::GetDefaultRoot(), TSystem::Getenv(), TROOT::GetVersion(), gGLSaveAsTypes, gHelpAbout, gROOT, gSystem, TString::Index(), TString::IsNull(), kC_COMMAND, TGLViewer::kCameraOrthoXnOY, TGLViewer::kCameraOrthoXnOZ, TGLViewer::kCameraOrthoXOY, TGLViewer::kCameraOrthoXOZ, TGLViewer::kCameraOrthoZnOY, TGLViewer::kCameraOrthoZOY, TGLViewer::kCameraPerspXOY, TGLViewer::kCameraPerspXOZ, TGLViewer::kCameraPerspYOZ, kCM_BUTTON, kCM_MENU, kFALSE, kFDSave, kGLCloseViewer, kGLEditObject, kGLHelpAbout, kGLHelpViewer, kGLHideMenus, kGLOrthoDolly, kGLOrthoRotate, kGLPerspXOY, kGLPerspXOZ, kGLPerspYOZ, kGLQuitROOT, kGLSaveAnimGIF, kGLSaveAS, kGLSaveEPS, kGLSaveGIF, kGLSaveJPG, kGLSavePDF, kGLSavePNG, kGLXnOY, kGLXnOZ, kGLXOY, kGLXOZ, kGLZnOY, kGLZOY, kTRUE, TString::Length(), match(), TRootHelpDialog::Popup(), TApplication::ReturnFromRun(), TGLViewer::SavePicture(), TGLViewer::SetCurrentCamera(), TTimer::SingleShot(), snprintf, str, StrDup(), TApplication::Terminate(), ToggleEditObject(), ToggleOrthoDolly(), and ToggleOrthoRotate().
Referenced by TGLSAFrame::ProcessMessage().
TGCompositeFrame * TGLSAViewer::GetFrame | ( | ) | const |
Definition at line 327 of file TGLSAViewer.cxx.
References fFrame.
Referenced by glViewerExercise().
TGCompositeFrame* TGLSAViewer::GetLeftVerticalFrame | ( | ) | const [inline] |
TGLFormat* TGLSAViewer::GetFormat | ( | ) | const [inline] |
void TGLSAViewer::ToggleEditObject | ( | ) |
Definition at line 819 of file TGLSAViewer.cxx.
References TGPopupMenu::CheckEntry(), fFileMenu, TGPopupMenu::IsEntryChecked(), kGLEditObject, SelectionChanged(), and TGPopupMenu::UnCheckEntry().
Referenced by ProcessFrameMessage().
void TGLSAViewer::ToggleOrthoRotate | ( | ) |
Definition at line 831 of file TGLSAViewer.cxx.
References TGPopupMenu::CheckEntry(), fCameraMenu, TGLViewer::fOrthoXnOYCamera, TGLViewer::fOrthoXnOZCamera, TGLViewer::fOrthoXOYCamera, TGLViewer::fOrthoXOZCamera, TGLViewer::fOrthoZnOYCamera, TGLViewer::fOrthoZOYCamera, TGPopupMenu::IsEntryChecked(), kGLOrthoRotate, TGLOrthoCamera::SetEnableRotate(), and TGPopupMenu::UnCheckEntry().
Referenced by ProcessFrameMessage().
void TGLSAViewer::ToggleOrthoDolly | ( | ) |
Definition at line 849 of file TGLSAViewer.cxx.
References TGPopupMenu::CheckEntry(), fCameraMenu, TGLViewer::fOrthoXOYCamera, TGLViewer::fOrthoXOZCamera, TGLViewer::fOrthoZOYCamera, TGPopupMenu::IsEntryChecked(), kGLOrthoDolly, TGLOrthoCamera::SetDollyToZoom(), and TGPopupMenu::UnCheckEntry().
Referenced by ProcessFrameMessage().
void TGLSAViewer::SetMenuHidingTimeout | ( | Long_t | timeout | ) | [static] |
Definition at line 652 of file TGLSAViewer.cxx.
References fgMenuHidingTimeout.
Referenced by G__G__GL_594_0_27(), and G__setup_memfuncTGLSAViewer().
TGLSAViewer::ClassDef | ( | TGLSAViewer | , | |
0 | ||||
) |
void TGLSAViewer::ResetMenuHidingTimer | ( | Bool_t | show_menu | ) | [private] |
void TGLSAViewer::CreateMenus | ( | ) | [private] |
void TGLSAViewer::CreateFrames | ( | ) | [private] |
TGLSAViewer& TGLSAViewer::operator= | ( | const TGLSAViewer & | ) | [private] |
virtual void TGLSAViewer::CreateGLWidget | ( | ) | [virtual] |
Reimplemented from TGLViewer.
virtual void TGLSAViewer::DestroyGLWidget | ( | ) | [virtual] |
Reimplemented from TGLViewer.
virtual const char* TGLSAViewer::GetName | ( | ) | const [inline, virtual] |
virtual void TGLSAViewer::SelectionChanged | ( | ) | [virtual] |
Reimplemented from TGLViewer.
void TGLSAViewer::Show | ( | ) |
void TGLSAViewer::Close | ( | ) |
void TGLSAViewer::DeleteMenuBar | ( | ) |
void TGLSAViewer::DisableCloseMenuEntries | ( | ) |
void TGLSAViewer::EnableMenuBarHiding | ( | ) |
void TGLSAViewer::DisableMenuBarHiding | ( | ) |
void TGLSAViewer::MenuHidingTimeout | ( | ) |
void TGLSAViewer::HandleMenuBarHiding | ( | Event_t * | ev | ) |
TGCompositeFrame* TGLSAViewer::GetFrame | ( | ) | const |
TGCompositeFrame* TGLSAViewer::GetLeftVerticalFrame | ( | ) | const [inline] |
TGLFormat* TGLSAViewer::GetFormat | ( | ) | const [inline] |
void TGLSAViewer::ToggleEditObject | ( | ) |
void TGLSAViewer::ToggleOrthoRotate | ( | ) |
void TGLSAViewer::ToggleOrthoDolly | ( | ) |
static void TGLSAViewer::SetMenuHidingTimeout | ( | Long_t | timeout | ) | [static] |
TGLSAViewer::ClassDef | ( | TGLSAViewer | , | |
0 | ||||
) |
TGLSAFrame* TGLSAViewer::fFrame [private] |
Definition at line 52 of file TGLSAViewer.h.
Referenced by CreateFrames(), CreateGLWidget(), CreateMenus(), DisableMenuBarHiding(), EnableMenuBarHiding(), GetFrame(), MenuHidingTimeout(), ProcessFrameMessage(), Show(), TGLSAViewer(), and ~TGLSAViewer().
TGLFormat* TGLSAViewer::fFormat [private] |
Definition at line 53 of file TGLSAViewer.h.
Referenced by CreateGLWidget(), GetFormat(), and ~TGLSAViewer().
TGPopupMenu* TGLSAViewer::fFileMenu [private] |
Definition at line 54 of file TGLSAViewer.h.
Referenced by CreateMenus(), DisableCloseMenuEntries(), DisableMenuBarHiding(), EnableMenuBarHiding(), SelectionChanged(), ToggleEditObject(), and ~TGLSAViewer().
TGPopupMenu* TGLSAViewer::fFileSaveMenu [private] |
TGPopupMenu* TGLSAViewer::fCameraMenu [private] |
Definition at line 56 of file TGLSAViewer.h.
Referenced by CreateMenus(), ToggleOrthoDolly(), ToggleOrthoRotate(), and ~TGLSAViewer().
TGPopupMenu* TGLSAViewer::fHelpMenu [private] |
TGCompositeFrame* TGLSAViewer::fLeftVerticalFrame [private] |
Definition at line 60 of file TGLSAViewer.h.
Referenced by CreateFrames(), GetLeftVerticalFrame(), and TGLSAViewer().
TGCompositeFrame* TGLSAViewer::fRightVerticalFrame [private] |
Definition at line 62 of file TGLSAViewer.h.
Referenced by CreateFrames(), CreateGLWidget(), and DestroyGLWidget().
TString TGLSAViewer::fDirName [private] |
Int_t TGLSAViewer::fTypeIdx [private] |
Bool_t TGLSAViewer::fOverwrite [private] |
TGMenuBar* TGLSAViewer::fMenuBar [private] |
Definition at line 67 of file TGLSAViewer.h.
Referenced by CreateMenus(), DisableMenuBarHiding(), EnableMenuBarHiding(), HandleMenuBarHiding(), MenuHidingTimeout(), and ~TGLSAViewer().
TGButton* TGLSAViewer::fMenuBut [private] |
Definition at line 68 of file TGLSAViewer.h.
Referenced by CreateMenus(), DisableMenuBarHiding(), EnableMenuBarHiding(), HandleMenuBarHiding(), MenuHidingTimeout(), and TGLSAViewer().
Bool_t TGLSAViewer::fHideMenuBar [private] |
Definition at line 69 of file TGLSAViewer.h.
Referenced by DisableMenuBarHiding(), EnableMenuBarHiding(), and ProcessFrameMessage().
TTimer* TGLSAViewer::fMenuHidingTimer [private] |
Definition at line 70 of file TGLSAViewer.h.
Referenced by DisableMenuBarHiding(), EnableMenuBarHiding(), HandleMenuBarHiding(), MenuHidingTimeout(), and ResetMenuHidingTimer().
Bool_t TGLSAViewer::fMenuHidingShowMenu [private] |
Definition at line 71 of file TGLSAViewer.h.
Referenced by MenuHidingTimeout(), and ResetMenuHidingTimer().
Bool_t TGLSAViewer::fDeleteMenuBar [private] |
static Long_t TGLSAViewer::fgMenuHidingTimeout [static, private] |
Definition at line 75 of file TGLSAViewer.h.
Referenced by ResetMenuHidingTimer(), and SetMenuHidingTimeout().
static const Int_t TGLSAViewer::fgInitX [static, private] |
static const Int_t TGLSAViewer::fgInitY [static, private] |
static const Int_t TGLSAViewer::fgInitW [static, private] |
static const Int_t TGLSAViewer::fgInitH [static, private] |
const char * TGLSAViewer::fgHelpText1 [static, private] |
const char * TGLSAViewer::fgHelpText2 [static, private] |
TGLSAFrame* TGLSAViewer::fFrame [private] |
Definition at line 52 of file TGLSAViewer.h.
TGLFormat* TGLSAViewer::fFormat [private] |
Definition at line 53 of file TGLSAViewer.h.
TGPopupMenu* TGLSAViewer::fFileMenu [private] |
Definition at line 54 of file TGLSAViewer.h.
TGPopupMenu* TGLSAViewer::fFileSaveMenu [private] |
Definition at line 55 of file TGLSAViewer.h.
TGPopupMenu* TGLSAViewer::fCameraMenu [private] |
Definition at line 56 of file TGLSAViewer.h.
TGPopupMenu* TGLSAViewer::fHelpMenu [private] |
Definition at line 57 of file TGLSAViewer.h.
TGCompositeFrame* TGLSAViewer::fLeftVerticalFrame [private] |
Definition at line 60 of file TGLSAViewer.h.
TGCompositeFrame* TGLSAViewer::fRightVerticalFrame [private] |
Definition at line 62 of file TGLSAViewer.h.
TGMenuBar* TGLSAViewer::fMenuBar [private] |
Definition at line 67 of file TGLSAViewer.h.
TGButton* TGLSAViewer::fMenuBut [private] |
Definition at line 68 of file TGLSAViewer.h.
TTimer* TGLSAViewer::fMenuHidingTimer [private] |
Definition at line 70 of file TGLSAViewer.h.
const char* TGLSAViewer::fgHelpText1 [static, private] |
Definition at line 85 of file TGLSAViewer.h.
const char* TGLSAViewer::fgHelpText2 [static, private] |
Definition at line 86 of file TGLSAViewer.h.