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. | |
TCanvas * | AddCanvasTab (const char *name) |
Add a new canvas tab. | |
void | AddElement (TEveElement *element, TEveElement *parent=nullptr) |
Add an element. | |
TGListTreeItem * | AddEvent (TEveEventManager *event) |
Add a new event and make it the current event. | |
void | AddGlobalElement (TEveElement *element, TEveElement *parent=nullptr) |
Add a global element, i.e. | |
TGListTreeItem * | AddToListTree (TEveElement *re, Bool_t open, TGListTree *lt=nullptr) |
void | ClearOrphanage () |
Clear the orphanage. | |
void | ClearROOTClassSaved () |
Work-around uber ugly hack used in SavePrimitive and co. | |
void | CloseEveWindow () |
Close button has been clicked on EVE main window (browser). | |
void | DisableRedraw () |
void | DoRedraw3D () |
Perform 3D redraw of scenes and viewers whose contents has changed. | |
void | EditElement (TEveElement *element) |
Show element in default editor. | |
void | ElementChanged (TEveElement *element, Bool_t update_scenes=kTRUE, Bool_t redraw=kFALSE) |
Element was changed, perform framework side action. | |
Bool_t | ElementPaste (TEveElement *element) |
Paste has been called. | |
void | ElementSelect (TEveElement *element) |
Select an element. | |
void | ElementStamped (TEveElement *element) |
Mark element as changed – it will be processed on next redraw. | |
void | EnableRedraw () |
void | EnforceTimerActive (Bool_t ta) |
TEveElement * | FindVizDBEntry (const TString &tag) |
Find a visualization-parameter database entry corresponding to tag. | |
void | FullRedraw3D (Bool_t resetCameras=kFALSE, Bool_t dropLogicals=kFALSE) |
Perform 3D redraw of all scenes and viewers. | |
TEveBrowser * | GetBrowser () const |
TEveEventManager * | GetCurrentEvent () const |
TGeoManager * | GetDefaultGeometry () |
Get the default geometry. | |
TGLViewer * | GetDefaultGLViewer () const |
Get TGLViewer of the default TEveViewer. | |
TEveViewer * | GetDefaultViewer () const |
Returns the default viewer - the first one in the fViewers list. | |
TEveGedEditor * | GetEditor () const |
Returns main object editor. | |
TEveScene * | GetEventScene () const |
TExceptionHandler * | GetExcHandler () const |
TGeoManager * | GetGeometry (const TString &filename) |
Get geometry with given filename. | |
TGeoManager * | GetGeometryByAlias (const TString &alias) |
Get geometry with given alias. | |
TEveScene * | GetGlobalScene () const |
TEveSelection * | GetHighlight () const |
Bool_t | GetKeepEmptyCont () const |
TGListTree * | GetListTree () const |
Get default list-tree widget. | |
TEveGListTreeEditorFrame * | GetLTEFrame () const |
TMacro * | GetMacro (const char *name) const |
Find macro in fMacroFolder by name. | |
TFolder * | GetMacroFolder () const |
TGWindow * | GetMainWindow () const |
Get the main window, i.e. EVE-browser. | |
TEveElementList * | GetOrphanage () const |
TEveSceneList * | GetScenes () const |
TEveSelection * | GetSelection () const |
TGStatusBar * | GetStatusBar () const |
Returns main window status bar. | |
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). | |
Bool_t | InsertVizDBEntry (const TString &tag, TEveElement *model, Bool_t replace, Bool_t update) |
Insert a new visualization-parameter database entry. | |
virtual TClass * | IsA () const |
void | LoadVizDB (const TString &filename) |
Load visualization-parameter database from file filename. | |
void | LoadVizDB (const TString &filename, Bool_t replace, Bool_t update) |
Load visualization-parameter database from file filename. | |
void | PreDeleteElement (TEveElement *element) |
Called from TEveElement prior to its destruction so the framework components (like object editor) can unreference it. | |
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'. | |
void | RegisterRedraw3D () |
Register a request for 3D redraw. | |
void | RemoveElement (TEveElement *element, TEveElement *parent) |
Remove element from parent. | |
void | RemoveFromListTree (TEveElement *element, TGListTree *lt, TGListTreeItem *lti) |
Remove top-level element from list-tree with specified tree-item. | |
void | SaveVizDB (const TString &filename) |
Save visualization-parameter database to file filename. | |
void | ScenesChanged (TEveElement::List_t &scenes) |
Mark all scenes from the given list as changed. | |
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. | |
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. | |
TEveViewer * | SpawnNewViewer (const char *name, const char *title="", Bool_t embed=kTRUE) |
Create a new GL viewer. | |
virtual void | Streamer (TBuffer &) |
void | StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b) |
Static Public Member Functions | |
static TClass * | Class () |
static const char * | Class_Name () |
static constexpr Version_t | Class_Version () |
static TEveManager * | Create (Bool_t map_window=kTRUE, Option_t *opt="FIV") |
If global TEveManager* gEve is not set initialize it. | |
static const char * | DeclFileName () |
static void | Terminate () |
Properly terminate global TEveManager. | |
Private Member Functions | |
TEveManager (const TEveManager &) | |
TEveManager & | operator= (const TEveManager &) |
#include <TEveManager.h>
|
private |
Definition at line 59 of file TEveManager.cxx.
|
virtual |
Destructor.
Definition at line 190 of file TEveManager.cxx.
TCanvas * TEveManager::AddCanvasTab | ( | const char * | name | ) |
Add a new canvas tab.
Definition at line 290 of file TEveManager.cxx.
void TEveManager::AddElement | ( | TEveElement * | element, |
TEveElement * | parent = nullptr |
||
) |
Add an element.
If parent is not specified it is added into current event (which is created if does not exist).
Definition at line 527 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 515 of file TEveManager.cxx.
void TEveManager::AddGlobalElement | ( | TEveElement * | element, |
TEveElement * | parent = nullptr |
||
) |
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 543 of file TEveManager.cxx.
TGListTreeItem * TEveManager::AddToListTree | ( | TEveElement * | re, |
Bool_t | open, | ||
TGListTree * | lt = nullptr |
||
) |
Definition at line 485 of file TEveManager.cxx.
|
static |
|
inlinestaticconstexpr |
Definition at line 240 of file TEveManager.h.
void TEveManager::ClearOrphanage | ( | ) |
Clear the orphanage.
Definition at line 238 of file TEveManager.cxx.
void TEveManager::ClearROOTClassSaved | ( | ) |
Work-around uber ugly hack used in SavePrimitive and co.
Definition at line 862 of file TEveManager.cxx.
void TEveManager::CloseEveWindow | ( | ) |
Close button has been clicked on EVE main window (browser).
Cleanup and terminate application.
Definition at line 876 of file TEveManager.cxx.
|
static |
If global TEveManager* gEve is not set initialize it.
Returns gEve.
Definition at line 892 of file TEveManager.cxx.
|
inlinestatic |
Definition at line 240 of file TEveManager.h.
|
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 374 of file TEveManager.cxx.
void TEveManager::EditElement | ( | TEveElement * | element | ) |
Show element in default editor.
Definition at line 354 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 437 of file TEveManager.cxx.
Bool_t TEveManager::ElementPaste | ( | TEveElement * | element | ) |
Paste has been called.
Definition at line 595 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 586 of file TEveManager.cxx.
void TEveManager::ElementStamped | ( | TEveElement * | element | ) |
Mark element as changed – it will be processed on next redraw.
Definition at line 467 of file TEveManager.cxx.
|
inline |
Definition at line 166 of file TEveManager.h.
|
inline |
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 678 of file TEveManager.cxx.
Perform 3D redraw of all scenes and viewers.
Definition at line 427 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 835 of file TEveManager.cxx.
TGLViewer * TEveManager::GetDefaultGLViewer | ( | ) | const |
Get TGLViewer of the default TEveViewer.
Definition at line 265 of file TEveManager.cxx.
TEveViewer * TEveManager::GetDefaultViewer | ( | ) | const |
Returns the default viewer - the first one in the fViewers list.
Definition at line 257 of file TEveManager.cxx.
TEveGedEditor * TEveManager::GetEditor | ( | ) | const |
Returns main object editor.
Definition at line 274 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 762 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 821 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 479 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 346 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 249 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 282 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 669 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 620 of file TEveManager.cxx.
|
inlinevirtual |
Definition at line 240 of file TEveManager.h.
void TEveManager::LoadVizDB | ( | const TString & | filename | ) |
Load visualization-parameter database from file filename.
State of data-members fVizDBReplace and fVizDBUpdate determine how the registered entries are handled.
Definition at line 707 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 689 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 564 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 846 of file TEveManager.cxx.
void TEveManager::RegisterRedraw3D | ( | ) |
Register a request for 3D redraw.
Definition at line 364 of file TEveManager.cxx.
void TEveManager::RemoveElement | ( | TEveElement * | element, |
TEveElement * | parent | ||
) |
Remove element from parent.
Definition at line 554 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 499 of file TEveManager.cxx.
void TEveManager::SaveVizDB | ( | const TString & | filename | ) |
Save visualization-parameter database to file filename.
Definition at line 716 of file TEveManager.cxx.
void TEveManager::ScenesChanged | ( | TEveElement::List_t & | scenes | ) |
Mark all scenes from the given list as changed.
Definition at line 458 of file TEveManager.cxx.
|
inline |
Definition at line 151 of file TEveManager.h.
|
inline |
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 854 of file TEveManager.cxx.
|
inline |
Definition at line 134 of file TEveManager.h.
|
inline |
Definition at line 215 of file TEveManager.h.
|
inline |
Definition at line 216 of file TEveManager.h.
TEveScene * TEveManager::SpawnNewScene | ( | const char * | name, |
const char * | title = "" |
||
) |
Create a new scene.
Definition at line 336 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 302 of file TEveManager.cxx.
|
virtual |
|
inline |
Definition at line 240 of file TEveManager.h.
|
static |
Properly terminate global TEveManager.
Definition at line 923 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.