ROOT logo
ROOT » GRAF3D » EVE » TEveManager

class TEveManager


 Central aplication manager for Eve.
 Manages elements, GUI, GL scenes and GL viewers.

Function Members (Methods)

TEveManager(UInt_t w, UInt_t h, Bool_t map_window = kTRUE, Option_t* opt = "FI")
TCanvas*AddCanvasTab(const char* name)
voidAddElement(TEveElement* element, TEveElement* parent = 0)
TGListTreeItem*AddEvent(TEveEventManager* event)
voidAddGlobalElement(TEveElement* element, TEveElement* parent = 0)
TGListTreeItem*AddToListTree(TEveElement* re, Bool_t open, TGListTree* lt = 0)
static TClass*Class()
static TEveManager*Create(Bool_t map_window = kTRUE, Option_t* opt = "FIV")
voidEditElement(TEveElement* element)
voidElementChanged(TEveElement* element, Bool_t update_scenes = kTRUE, Bool_t redraw = kFALSE)
Bool_tElementPaste(TEveElement* element)
voidElementSelect(TEveElement* element)
voidElementStamped(TEveElement* element)
TEveElement*FindVizDBEntry(const TString& tag)
voidFullRedraw3D(Bool_t resetCameras = kFALSE, Bool_t dropLogicals = kFALSE)
TEveBrowser*GetBrowser() const
TEveEventManager*GetCurrentEvent() const
TGLViewer*GetDefaultGLViewer() const
TEveViewer*GetDefaultViewer() const
TEveGedEditor*GetEditor() const
TEveScene*GetEventScene() const
TEveManager::TExceptionHandler*GetExcHandler() const
TGeoManager*GetGeometry(const TString& filename)
TGeoManager*GetGeometryByAlias(const TString& alias)
TEveScene*GetGlobalScene() const
TEveSelection*GetHighlight() const
Bool_tGetKeepEmptyCont() const
TGListTree*GetListTree() const
TEveGListTreeEditorFrame*GetLTEFrame() const
TMacro*GetMacro(const char* name) const
TFolder*GetMacroFolder() const
TGWindow*GetMainWindow() const
TEveElementList*GetOrphanage() const
TEveSceneList*GetScenes() const
TEveSelection*GetSelection() const
TGStatusBar*GetStatusBar() const
Bool_tGetUseOrphanage() const
TEveViewerList*GetViewers() const
Bool_tGetVizDBReplace() const
Bool_tGetVizDBUpdate() const
TEveWindowManager*GetWindowManager() const
Bool_tInsertVizDBEntry(const TString& tag, TEveElement* model)
Bool_tInsertVizDBEntry(const TString& tag, TEveElement* model, Bool_t replace, Bool_t update)
virtual TClass*IsA() const
voidLoadVizDB(const TString& filename)
voidLoadVizDB(const TString& filename, Bool_t replace, Bool_t update)
voidPreDeleteElement(TEveElement* element)
voidRedraw3D(Bool_t resetCameras = kFALSE, Bool_t dropLogicals = kFALSE)
voidRegisterGeometryAlias(const TString& alias, const TString& filename)
voidRemoveElement(TEveElement* element, TEveElement* parent)
voidRemoveFromListTree(TEveElement* element, TGListTree* lt, TGListTreeItem* lti)
voidSaveVizDB(const TString& filename)
voidScenesChanged(TEveElement::List_t& scenes)
voidSetCurrentEvent(TEveEventManager* mgr)
voidSetKeepEmptyCont(Bool_t k)
voidSetStatusLine(const char* text)
voidSetUseOrphanage(Bool_t o)
voidSetVizDBReplace(Bool_t r)
voidSetVizDBUpdate(Bool_t u)
virtual voidShowMembers(TMemberInspector& insp)
TEveScene*SpawnNewScene(const char* name, const char* title = "")
TEveViewer*SpawnNewViewer(const char* name, const char* title = "", Bool_t embed = kTRUE)
virtual voidStreamer(TBuffer& b)
voidStreamerNVirtual(TBuffer& b)
static voidTerminate()

Data Members


Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

TEveManager(UInt_t w, UInt_t h, Bool_t map_window = kTRUE, Option_t* opt = "FI")
 If map_window is true, the TEveBrowser window is mapped.

 Option string is first parsed for the following characters:
   V - spawn a default GL viewer.

 The consumed characters are removed from the options and they
 are passed to TEveBrowser for creation of additional plugins.

 Default options: "FIV" - file-browser, command-line, GL-viewer.
void ClearOrphanage()
 Clear the orphanage.
TGWindow* GetMainWindow() const
 Get the main window, i.e. EVE-browser.
TEveViewer* GetDefaultViewer() const
 Returns the default viewer - the first one in the fViewers list.
TGLViewer* GetDefaultGLViewer() const
 Get TGLViewer of the default TEveViewer.
TEveGedEditor* GetEditor() const
 Returns main object editor.
TGStatusBar* GetStatusBar() const
 Returns main window status bar.
TCanvas* AddCanvasTab(const char* name)
 Add a new canvas tab.
TEveViewer* SpawnNewViewer(const char* name, const char* title = "", Bool_t embed = kTRUE)
 Create a new GL viewer.
TEveScene* SpawnNewScene(const char* name, const char* title = "")
 Create a new scene.
TMacro* GetMacro(const char* name) const
 Find macro in fMacroFolder by name.
void EditElement(TEveElement* element)
 Show element in default editor.
void RegisterRedraw3D()
 Register a request for 3D redraw.
void DoRedraw3D()
 Perform 3D redraw of scenes and viewers whose contents has
void FullRedraw3D(Bool_t resetCameras = kFALSE, Bool_t dropLogicals = kFALSE)
 Perform 3D redraw of all scenes and viewers.
void ElementChanged(TEveElement* element, Bool_t update_scenes = kTRUE, Bool_t redraw = kFALSE)
 Element was changed, perform framework side action.
 Called from TEveElement::ElementChanged().
void ScenesChanged(TEveElement::List_t& scenes)
 Mark all scenes from the given list as changed.
void ElementStamped(TEveElement* element)
 Mark element as changed -- it will be processed on next redraw.
TGListTree* GetListTree() const
 Get default list-tree widget.
AddToListTree(TEveElement* re, Bool_t open, TGListTree* lt = 0)
 Add element as a top-level to a list-tree.
 Only add a single copy of a render-element as a top level.
void RemoveFromListTree(TEveElement* element, TGListTree* lt, TGListTreeItem* lti)
 Remove top-level element from list-tree with specified tree-item.
TGListTreeItem* 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
void 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).
void 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.
void RemoveElement(TEveElement* element, TEveElement* parent)
 Remove element from parent.
void PreDeleteElement(TEveElement* element)
 Called from TEveElement prior to its destruction so the
 framework components (like object editor) can unreference it.
void ElementSelect(TEveElement* element)
 Select an element.
 Now it only calls EditElement() - should also update selection state.
Bool_t ElementPaste(TEveElement* element)
 Paste has been called.
Bool_t 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:
   true  - The old model is deleted and new one is inserted (default).
           Clients of the old model are transferred to the new one and
           if 'update' flag is true (default), the new model's parameters
           are assigned to all clients.
   false - The old model is kept, false is returned.

 If insert is successful, the ownership of the model-element is
 transferred to the manager.
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).
 See docs of the above function.
TEveElement* FindVizDBEntry(const TString& tag)
 Find a visualization-parameter database entry corresponding to tag.
 If the entry is not found 0 is returned.
void LoadVizDB(const TString& filename, Bool_t replace, Bool_t update)
 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
void 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.
void SaveVizDB(const TString& filename)
 Save visualization-parameter database to file filename.
TGeoManager* 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.
TGeoManager* GetGeometryByAlias(const TString& alias)
 Get geometry with given alias.
 The alias must be registered via RegisterGeometryAlias().
TGeoManager* GetDefaultGeometry()
 Get the default geometry.
 It should be registered via RegisterGeometryName("Default", <URL>).
void RegisterGeometryAlias(const TString& alias, const TString& filename)
 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:
void SetStatusLine(const char* text)
 Set the text in the right side of browser's status bar.
void ClearROOTClassSaved()
 Work-around uber ugly hack used in SavePrimitive and co.
void CloseEveWindow()
 Close button haas been clicked on EVE main window (browser).
 Cleanup and terminate application.
TEveManager* Create(Bool_t map_window = kTRUE, Option_t* opt = "FIV")
 If global TEveManager* gEve is not set initialize it.
 Returns gEve.
void Terminate()
 Properly terminate global TEveManager.
TEveManager(const TEveManager& )
TEveManager& operator=(const TEveManager& )
TExceptionHandler* GetExcHandler() const
{ return fExcHandler; }
TEveSelection* GetSelection() const
{ return fSelection; }
TEveSelection* GetHighlight() const
{ return fHighlight; }
TEveElementList* GetOrphanage() const
{ return fOrphanage; }
Bool_t GetUseOrphanage() const
{ return fUseOrphanage; }
void SetUseOrphanage(Bool_t o)
{ fUseOrphanage = o; }
TEveBrowser* GetBrowser() const
{ return fBrowser; }
TEveGListTreeEditorFrame* GetLTEFrame() const
{ return fLTEFrame; }
TEveWindowManager* GetWindowManager() const
{ return fWindowManager; }
TEveSceneList* GetScenes() const
{ return fScenes; }
TEveViewerList* GetViewers() const
{ return fViewers; }
TEveScene* GetGlobalScene() const
{ return fGlobalScene; }
TEveScene* GetEventScene() const
{ return fEventScene; }
TEveEventManager* GetCurrentEvent() const
{ return fCurrentEvent; }
void SetCurrentEvent(TEveEventManager* mgr)
{ fCurrentEvent = mgr; }
TFolder* GetMacroFolder() const
{ return fMacroFolder; }
void DisableRedraw()
void EnableRedraw()
void Redraw3D(Bool_t resetCameras = kFALSE, Bool_t dropLogicals = kFALSE)
Bool_t GetKeepEmptyCont() const
{ return fKeepEmptyCont; }
void SetKeepEmptyCont(Bool_t k)
Bool_t GetVizDBReplace() const
{ return fVizDBReplace; }
Bool_t GetVizDBUpdate() const
{ return fVizDBUpdate; }
void SetVizDBReplace(Bool_t r)
{ fVizDBReplace = r; }
void SetVizDBUpdate(Bool_t u)
{ fVizDBUpdate = u; }