Central application manager for Eve.
Manages elements, GUI, GL scenes and GL viewers.
Definition at line 49 of file TEveManager.h.
Classes | |
class | TExceptionHandler |
Exception handler for Eve exceptions. More... | |
class | TRedrawDisabler |
Public Member Functions | |
TEveManager (UInt_t w, UInt_t h, Bool_t map_window=kTRUE, Option_t *opt="FI") | |
virtual | ~TEveManager () |
Destructor. More... | |
TCanvas * | AddCanvasTab (const char *name) |
Add a new canvas tab. More... | |
void | AddElement (TEveElement *element, TEveElement *parent=0) |
Add an element. More... | |
TGListTreeItem * | AddEvent (TEveEventManager *event) |
Add a new event and make it the current event. More... | |
void | AddGlobalElement (TEveElement *element, TEveElement *parent=0) |
Add a global element, i.e. More... | |
TGListTreeItem * | AddToListTree (TEveElement *re, Bool_t open, TGListTree *lt=0) |
void | ClearOrphanage () |
Clear the orphanage. More... | |
void | ClearROOTClassSaved () |
Work-around uber ugly hack used in SavePrimitive and co. More... | |
void | CloseEveWindow () |
Close button has been clicked on EVE main window (browser). More... | |
void | DisableRedraw () |
void | DoRedraw3D () |
Perform 3D redraw of scenes and viewers whose contents has changed. More... | |
void | EditElement (TEveElement *element) |
Show element in default editor. More... | |
void | ElementChanged (TEveElement *element, Bool_t update_scenes=kTRUE, Bool_t redraw=kFALSE) |
Element was changed, perform framework side action. More... | |
Bool_t | ElementPaste (TEveElement *element) |
Paste has been called. More... | |
void | ElementSelect (TEveElement *element) |
Select an element. More... | |
void | ElementStamped (TEveElement *element) |
Mark element as changed – it will be processed on next redraw. More... | |
void | EnableRedraw () |
void | EnforceTimerActive (Bool_t ta) |
TEveElement * | FindVizDBEntry (const TString &tag) |
Find a visualization-parameter database entry corresponding to tag. More... | |
void | FullRedraw3D (Bool_t resetCameras=kFALSE, Bool_t dropLogicals=kFALSE) |
Perform 3D redraw of all scenes and viewers. More... | |
TEveBrowser * | GetBrowser () const |
TEveEventManager * | GetCurrentEvent () const |
TGeoManager * | GetDefaultGeometry () |
Get the default geometry. More... | |
TGLViewer * | GetDefaultGLViewer () const |
Get TGLViewer of the default TEveViewer. More... | |
TEveViewer * | GetDefaultViewer () const |
Returns the default viewer - the first one in the fViewers list. More... | |
TEveGedEditor * | GetEditor () const |
Returns main object editor. More... | |
TEveScene * | GetEventScene () const |
TExceptionHandler * | GetExcHandler () const |
TGeoManager * | GetGeometry (const TString &filename) |
Get geometry with given filename. More... | |
TGeoManager * | GetGeometryByAlias (const TString &alias) |
Get geometry with given alias. More... | |
TEveScene * | GetGlobalScene () const |
TEveSelection * | GetHighlight () const |
Bool_t | GetKeepEmptyCont () const |
TGListTree * | GetListTree () const |
Get default list-tree widget. More... | |
TEveGListTreeEditorFrame * | GetLTEFrame () const |
TMacro * | GetMacro (const char *name) const |
Find macro in fMacroFolder by name. More... | |
TFolder * | GetMacroFolder () const |
TGWindow * | GetMainWindow () const |
Get the main window, i.e. EVE-browser. More... | |
TEveElementList * | GetOrphanage () const |
TEveSceneList * | GetScenes () const |
TEveSelection * | GetSelection () const |
TGStatusBar * | GetStatusBar () const |
Returns main window status bar. More... | |
Bool_t | GetUseOrphanage () const |
TEveViewerList * | GetViewers () const |
Bool_t | GetVizDBReplace () const |
Bool_t | GetVizDBUpdate () const |
TEveWindowManager * | GetWindowManager () const |
Bool_t | InsertVizDBEntry (const TString &tag, TEveElement *model) |
Insert a new visualization-parameter database entry with the default parameters for replace and update, as specified by members fVizDBReplace(default=kTRUE) and fVizDBUpdate(default=kTRUE). More... | |
Bool_t | InsertVizDBEntry (const TString &tag, TEveElement *model, Bool_t replace, Bool_t update) |
Insert a new visualization-parameter database entry. More... | |
void | LoadVizDB (const TString &filename) |
Load visualization-parameter database from file filename. More... | |
void | LoadVizDB (const TString &filename, Bool_t replace, Bool_t update) |
Load visualization-parameter database from file filename. More... | |
void | PreDeleteElement (TEveElement *element) |
Called from TEveElement prior to its destruction so the framework components (like object editor) can unreference it. More... | |
TExMap * | PtrToStampedElements () |
void | Redraw3D (Bool_t resetCameras=kFALSE, Bool_t dropLogicals=kFALSE) |
void | RegisterGeometryAlias (const TString &alias, const TString &filename) |
Register 'name' as an alias for geometry file 'filename'. More... | |
void | RegisterRedraw3D () |
Register a request for 3D redraw. More... | |
void | RemoveElement (TEveElement *element, TEveElement *parent) |
Remove element from parent. More... | |
void | RemoveFromListTree (TEveElement *element, TGListTree *lt, TGListTreeItem *lti) |
Remove top-level element from list-tree with specified tree-item. More... | |
void | SaveVizDB (const TString &filename) |
Save visualization-parameter database to file filename. More... | |
void | ScenesChanged (TEveElement::List_t &scenes) |
Mark all scenes from the given list as changed. More... | |
void | SetCurrentEvent (TEveEventManager *mgr) |
void | SetKeepEmptyCont (Bool_t k) |
void | SetStatusLine (const char *text) |
Set the text in the right side of browser's status bar. More... | |
void | SetUseOrphanage (Bool_t o) |
void | SetVizDBReplace (Bool_t r) |
void | SetVizDBUpdate (Bool_t u) |
TEveScene * | SpawnNewScene (const char *name, const char *title="") |
Create a new scene. More... | |
TEveViewer * | SpawnNewViewer (const char *name, const char *title="", Bool_t embed=kTRUE) |
Create a new GL viewer. More... | |
Static Public Member Functions | |
static TEveManager * | Create (Bool_t map_window=kTRUE, Option_t *opt="FIV") |
If global TEveManager* gEve is not set initialize it. More... | |
static void | Terminate () |
Properly terminate global TEveManager. More... | |
Private Member Functions | |
TEveManager (const TEveManager &) | |
TEveManager & | operator= (const TEveManager &) |
#include <TEveManager.h>
|
private |
Definition at line 62 of file TEveManager.cxx.
|
virtual |
Destructor.
Definition at line 193 of file TEveManager.cxx.
TCanvas * TEveManager::AddCanvasTab | ( | const char * | name | ) |
Add a new canvas tab.
Definition at line 293 of file TEveManager.cxx.
void TEveManager::AddElement | ( | TEveElement * | element, |
TEveElement * | parent = 0 |
||
) |
Add an element.
If parent is not specified it is added into current event (which is created if does not exist).
Definition at line 530 of file TEveManager.cxx.
TGListTreeItem * TEveManager::AddEvent | ( | TEveEventManager * | event | ) |
Add a new event and make it the current event.
It is added into the event-scene and as a top-level list-tree item.
Definition at line 518 of file TEveManager.cxx.
void TEveManager::AddGlobalElement | ( | TEveElement * | element, |
TEveElement * | parent = 0 |
||
) |
Add a global element, i.e.
one that does not change on each event, like geometry or projection manager. If parent is not specified it is added to a global scene.
Definition at line 546 of file TEveManager.cxx.
TGListTreeItem * TEveManager::AddToListTree | ( | TEveElement * | re, |
Bool_t | open, | ||
TGListTree * | lt = 0 |
||
) |
Definition at line 488 of file TEveManager.cxx.
void TEveManager::ClearOrphanage | ( | ) |
Clear the orphanage.
Definition at line 241 of file TEveManager.cxx.
void TEveManager::ClearROOTClassSaved | ( | ) |
Work-around uber ugly hack used in SavePrimitive and co.
Definition at line 865 of file TEveManager.cxx.
void TEveManager::CloseEveWindow | ( | ) |
Close button has been clicked on EVE main window (browser).
Cleanup and terminate application.
Definition at line 879 of file TEveManager.cxx.
|
static |
If global TEveManager* gEve is not set initialize it.
Returns gEve.
Definition at line 895 of file TEveManager.cxx.
|
inline |
Definition at line 165 of file TEveManager.h.
void TEveManager::DoRedraw3D | ( | ) |
Perform 3D redraw of scenes and viewers whose contents has changed.
Definition at line 377 of file TEveManager.cxx.
void TEveManager::EditElement | ( | TEveElement * | element | ) |
Show element in default editor.
Definition at line 357 of file TEveManager.cxx.
void TEveManager::ElementChanged | ( | TEveElement * | element, |
Bool_t | update_scenes = kTRUE , |
||
Bool_t | redraw = kFALSE |
||
) |
Element was changed, perform framework side action.
Called from TEveElement::ElementChanged().
Definition at line 440 of file TEveManager.cxx.
Bool_t TEveManager::ElementPaste | ( | TEveElement * | element | ) |
Paste has been called.
Definition at line 598 of file TEveManager.cxx.
void TEveManager::ElementSelect | ( | TEveElement * | element | ) |
Select an element.
Now it only calls EditElement() - should also update selection state.
Definition at line 589 of file TEveManager.cxx.
void TEveManager::ElementStamped | ( | TEveElement * | element | ) |
Mark element as changed – it will be processed on next redraw.
Definition at line 470 of file TEveManager.cxx.
|
inline |
Definition at line 166 of file TEveManager.h.
Definition at line 236 of file TEveManager.h.
TEveElement * TEveManager::FindVizDBEntry | ( | const TString & | tag | ) |
Find a visualization-parameter database entry corresponding to tag.
If the entry is not found 0 is returned.
Definition at line 681 of file TEveManager.cxx.
Perform 3D redraw of all scenes and viewers.
Definition at line 430 of file TEveManager.cxx.
|
inline |
Definition at line 137 of file TEveManager.h.
|
inline |
Definition at line 149 of file TEveManager.h.
TGeoManager * TEveManager::GetDefaultGeometry | ( | ) |
Get the default geometry.
It should be registered via RegisterGeometryName("Default", <URL>).
Definition at line 838 of file TEveManager.cxx.
TGLViewer * TEveManager::GetDefaultGLViewer | ( | ) | const |
Get TGLViewer of the default TEveViewer.
Definition at line 268 of file TEveManager.cxx.
TEveViewer * TEveManager::GetDefaultViewer | ( | ) | const |
Returns the default viewer - the first one in the fViewers list.
Definition at line 260 of file TEveManager.cxx.
TEveGedEditor * TEveManager::GetEditor | ( | ) | const |
Returns main object editor.
Definition at line 277 of file TEveManager.cxx.
|
inline |
Definition at line 148 of file TEveManager.h.
|
inline |
Definition at line 127 of file TEveManager.h.
TGeoManager * TEveManager::GetGeometry | ( | const TString & | filename | ) |
Get geometry with given filename.
This is cached internally so the second time this function is called with the same argument the same geo-manager is returned. gGeoManager is set to the return value.
Definition at line 765 of file TEveManager.cxx.
TGeoManager * TEveManager::GetGeometryByAlias | ( | const TString & | alias | ) |
Get geometry with given alias.
The alias must be registered via RegisterGeometryAlias().
Definition at line 824 of file TEveManager.cxx.
|
inline |
Definition at line 147 of file TEveManager.h.
|
inline |
Definition at line 130 of file TEveManager.h.
|
inline |
Definition at line 178 of file TEveManager.h.
TGListTree * TEveManager::GetListTree | ( | ) | const |
Get default list-tree widget.
Definition at line 482 of file TEveManager.cxx.
|
inline |
Definition at line 138 of file TEveManager.h.
TMacro * TEveManager::GetMacro | ( | const char * | name | ) | const |
Find macro in fMacroFolder by name.
Definition at line 349 of file TEveManager.cxx.
|
inline |
Definition at line 160 of file TEveManager.h.
TGWindow * TEveManager::GetMainWindow | ( | ) | const |
Get the main window, i.e. EVE-browser.
Definition at line 252 of file TEveManager.cxx.
|
inline |
Definition at line 132 of file TEveManager.h.
|
inline |
Definition at line 144 of file TEveManager.h.
|
inline |
Definition at line 129 of file TEveManager.h.
TGStatusBar * TEveManager::GetStatusBar | ( | ) | const |
Returns main window status bar.
Definition at line 285 of file TEveManager.cxx.
|
inline |
Definition at line 133 of file TEveManager.h.
|
inline |
Definition at line 145 of file TEveManager.h.
|
inline |
Definition at line 213 of file TEveManager.h.
|
inline |
Definition at line 214 of file TEveManager.h.
|
inline |
Definition at line 142 of file TEveManager.h.
Bool_t TEveManager::InsertVizDBEntry | ( | const TString & | tag, |
TEveElement * | model | ||
) |
Insert a new visualization-parameter database entry with the default parameters for replace and update, as specified by members fVizDBReplace(default=kTRUE) and fVizDBUpdate(default=kTRUE).
See docs of the above function.
Definition at line 672 of file TEveManager.cxx.
Bool_t TEveManager::InsertVizDBEntry | ( | const TString & | tag, |
TEveElement * | model, | ||
Bool_t | replace, | ||
Bool_t | update | ||
) |
Insert a new visualization-parameter database entry.
Returns true if the element is inserted successfully. If entry with the same key already exists the behaviour depends on the 'replace' flag:
If insert is successful, the ownership of the model-element is transferred to the manager.
Definition at line 623 of file TEveManager.cxx.
Load visualization-parameter database from file filename.
State of data-members fVizDBReplace and fVizDBUpdate determine how the registered entries are handled.
Definition at line 710 of file TEveManager.cxx.
Load visualization-parameter database from file filename.
The replace, update arguments replace the values of fVizDBReplace and fVizDBUpdate members for the duration of the macro execution.
Definition at line 692 of file TEveManager.cxx.
|
private |
void TEveManager::PreDeleteElement | ( | TEveElement * | element | ) |
Called from TEveElement prior to its destruction so the framework components (like object editor) can unreference it.
Definition at line 567 of file TEveManager.cxx.
|
inline |
Definition at line 238 of file TEveManager.h.
Definition at line 168 of file TEveManager.h.
Register 'name' as an alias for geometry file 'filename'.
The old aliases are silently overwritten. After that the geometry can be retrieved also by calling: gEve->GetGeometryByName(name);
Definition at line 849 of file TEveManager.cxx.
void TEveManager::RegisterRedraw3D | ( | ) |
Register a request for 3D redraw.
Definition at line 367 of file TEveManager.cxx.
void TEveManager::RemoveElement | ( | TEveElement * | element, |
TEveElement * | parent | ||
) |
Remove element from parent.
Definition at line 557 of file TEveManager.cxx.
void TEveManager::RemoveFromListTree | ( | TEveElement * | element, |
TGListTree * | lt, | ||
TGListTreeItem * | lti | ||
) |
Remove top-level element from list-tree with specified tree-item.
Definition at line 502 of file TEveManager.cxx.
Save visualization-parameter database to file filename.
Definition at line 719 of file TEveManager.cxx.
void TEveManager::ScenesChanged | ( | TEveElement::List_t & | scenes | ) |
Mark all scenes from the given list as changed.
Definition at line 461 of file TEveManager.cxx.
|
inline |
Definition at line 151 of file TEveManager.h.
Definition at line 179 of file TEveManager.h.
void TEveManager::SetStatusLine | ( | const char * | text | ) |
Set the text in the right side of browser's status bar.
Definition at line 857 of file TEveManager.cxx.
Definition at line 134 of file TEveManager.h.
Definition at line 215 of file TEveManager.h.
Definition at line 216 of file TEveManager.h.
TEveScene * TEveManager::SpawnNewScene | ( | const char * | name, |
const char * | title = "" |
||
) |
Create a new scene.
Definition at line 339 of file TEveManager.cxx.
TEveViewer * TEveManager::SpawnNewViewer | ( | const char * | name, |
const char * | title = "" , |
||
Bool_t | embed = kTRUE |
||
) |
Create a new GL viewer.
Definition at line 305 of file TEveManager.cxx.
Properly terminate global TEveManager.
Definition at line 926 of file TEveManager.cxx.
|
protected |
Definition at line 92 of file TEveManager.h.
|
protected |
Definition at line 103 of file TEveManager.h.
|
protected |
Definition at line 108 of file TEveManager.h.
|
protected |
Definition at line 102 of file TEveManager.h.
|
protected |
Definition at line 83 of file TEveManager.h.
|
protected |
Definition at line 106 of file TEveManager.h.
|
protected |
Definition at line 89 of file TEveManager.h.
|
protected |
Definition at line 90 of file TEveManager.h.
|
protected |
Definition at line 101 of file TEveManager.h.
|
protected |
Definition at line 118 of file TEveManager.h.
|
protected |
Definition at line 109 of file TEveManager.h.
|
protected |
Definition at line 93 of file TEveManager.h.
|
protected |
Definition at line 95 of file TEveManager.h.
|
protected |
Definition at line 120 of file TEveManager.h.
|
protected |
Definition at line 105 of file TEveManager.h.
|
protected |
Definition at line 111 of file TEveManager.h.
|
protected |
Definition at line 107 of file TEveManager.h.
|
protected |
Definition at line 99 of file TEveManager.h.
|
protected |
Definition at line 117 of file TEveManager.h.
|
protected |
Definition at line 114 of file TEveManager.h.
|
protected |
Definition at line 110 of file TEveManager.h.
|
protected |
Definition at line 121 of file TEveManager.h.
|
protected |
Definition at line 98 of file TEveManager.h.
|
protected |
Definition at line 85 of file TEveManager.h.
|
protected |
Definition at line 86 of file TEveManager.h.
|
protected |
Definition at line 87 of file TEveManager.h.
|
protected |
Definition at line 97 of file TEveManager.h.