![]() |
Belle II Software release-09-00-04
|
Responsible for arranging the GL viewers and providing related functionality. More...
#include <SplitGLView.h>


Public Types | |
| enum | EMenuCommands { kGLPerspYOZ , kGLPerspXOZ , kGLPerspXOY , kGLXOY , kGLXOZ , kGLZOY , kGLOrthoRotate , kGLOrthoDolly , kGLStereo , kSceneUpdate , kSceneUpdateAll , kShowScale , kSaveGeometryExtract } |
| Which menu command was selected? More... | |
Public Member Functions | |
| SplitGLView () | |
| constructor. | |
| virtual | ~SplitGLView () |
| destructor. | |
| void | itemClicked (TGListTreeItem *item, Int_t btn, Int_t x, Int_t y=43) |
| handler for clicks inside GL viewer. | |
| void | handleMenu (Int_t menuCommand) |
| menu item handler | |
| void | onClicked (TObject *obj) |
| make current viewer active & show name of obj in status bar. | |
| void | onMouseOver (TGLPhysicalShape *shape) |
| show name of shape in status bar. | |
| void | updateCamera (int cameraAction) |
| change camera type, given one of EMenuCommands. | |
| void | toggleOrthoRotate () |
| toggle wether the active viewer may be rotated (not that useful for projections). | |
| void | toggleOrthoDolly () |
| Toggle state of the 'Ortho allow dolly' menu entry. | |
| void | toggleStereo () |
| Toggle stereo viewing for perspective viewer. | |
| void | toggleShowScale () |
| Toggle visibility of axes for projections. | |
| TEveProjectionManager * | getRPhiMgr () const |
| return R-Phi projection manager. | |
| TEveProjectionManager * | getRhoZMgr () const |
| return Rho-Z projection manager. | |
| TGLEmbeddedViewer * | getActiveGLViewer () |
| return TGLEmbeddedViewer that is active right now. | |
| InfoWidget * | getInfoWidget () const |
| text-based info viewer. | |
Private Member Functions | |
| void | setActiveViewer (TGLEmbeddedViewer *v) |
| set m_activeViewer and update UI accordingly. | |
Private Attributes | |
| TGLEmbeddedViewer * | m_glViewer [3] |
| GL viewers. | |
| TEveWindow * | m_window [3] |
| corresponding windows | |
| int | m_activeViewer |
| selected viewer/window, or -1. | |
| TEveProjectionManager * | m_rphiManager |
| R-Phi projection. | |
| TEveProjectionManager * | m_rhozManager |
| Rho-Z projection. | |
| TGPopupMenu * | m_cameraMenu |
| 'Camera' popup menu | |
| TGPopupMenu * | m_sceneMenu |
| 'Scene' popup menu | |
| TGStatusBar * | m_statusBar |
| status bar | |
| InfoWidget * | m_infoWidget |
| text-based info viewer. | |
Responsible for arranging the GL viewers and providing related functionality.
Adapted from alice_esd_split.C example.
Definition at line 30 of file SplitGLView.h.
| enum EMenuCommands |
Which menu command was selected?
Definition at line 67 of file SplitGLView.h.
|
explicit |
constructor.
Definition at line 43 of file SplitGLView.cc.
|
virtual |
destructor.
Definition at line 163 of file SplitGLView.cc.
| TGLEmbeddedViewer * getActiveGLViewer | ( | ) |
return TGLEmbeddedViewer that is active right now.
Definition at line 297 of file SplitGLView.cc.
|
inline |
|
inline |
|
inline |
| void handleMenu | ( | Int_t | menuCommand | ) |
menu item handler
Definition at line 207 of file SplitGLView.cc.
| void itemClicked | ( | TGListTreeItem * | item, |
| Int_t | btn, | ||
| Int_t | x, | ||
| Int_t | y = 43 |
||
| ) |
handler for clicks inside GL viewer.
Definition at line 413 of file SplitGLView.cc.
| void onClicked | ( | TObject * | obj | ) |
make current viewer active & show name of obj in status bar.
Definition at line 254 of file SplitGLView.cc.
| void onMouseOver | ( | TGLPhysicalShape * | shape | ) |
show name of shape in status bar.
Definition at line 354 of file SplitGLView.cc.
|
private |
set m_activeViewer and update UI accordingly.
Definition at line 314 of file SplitGLView.cc.
| void toggleOrthoDolly | ( | ) |
Toggle state of the 'Ortho allow dolly' menu entry.
Definition at line 378 of file SplitGLView.cc.
| void toggleOrthoRotate | ( | ) |
toggle wether the active viewer may be rotated (not that useful for projections).
Definition at line 368 of file SplitGLView.cc.
| void toggleShowScale | ( | ) |
Toggle visibility of axes for projections.
Definition at line 396 of file SplitGLView.cc.
| void toggleStereo | ( | ) |
Toggle stereo viewing for perspective viewer.
Definition at line 388 of file SplitGLView.cc.
| void updateCamera | ( | int | cameraAction | ) |
change camera type, given one of EMenuCommands.
Definition at line 174 of file SplitGLView.cc.
|
private |
selected viewer/window, or -1.
Definition at line 79 of file SplitGLView.h.
|
private |
'Camera' popup menu
Definition at line 83 of file SplitGLView.h.
|
private |
GL viewers.
Definition at line 77 of file SplitGLView.h.
|
private |
text-based info viewer.
Definition at line 88 of file SplitGLView.h.
|
private |
Rho-Z projection.
Definition at line 81 of file SplitGLView.h.
|
private |
R-Phi projection.
Definition at line 80 of file SplitGLView.h.
|
private |
'Scene' popup menu
Definition at line 84 of file SplitGLView.h.
|
private |
status bar
Definition at line 85 of file SplitGLView.h.
|
private |
corresponding windows
Definition at line 78 of file SplitGLView.h.