class TEveManager

 TEveManager

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

Function Members (Methods)

public:
TEveManager(UInt_t w, UInt_t h, Bool_t map_window = kTRUE, Option_t* opt = "FI")
virtual~TEveManager()
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()
voidClearOrphanage()
voidClearROOTClassSaved()
voidCloseEveWindow()
static TEveManager*Create(Bool_t map_window = kTRUE, Option_t* opt = "FIV")
voidDisableRedraw()
voidDoRedraw3D()
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)
voidEnableRedraw()
TEveElement*FindVizDBEntry(const TString& tag)
voidFullRedraw3D(Bool_t resetCameras = kFALSE, Bool_t dropLogicals = kFALSE)
TEveBrowser*GetBrowser() const
TEveEventManager*GetCurrentEvent() const
TGeoManager*GetDefaultGeometry()
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 Text_t* 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)
voidRegisterRedraw3D()
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, char* parent)
TEveScene*SpawnNewScene(const Text_t* name, const Text_t* title = "")
TEveViewer*SpawnNewViewer(const Text_t* name, const Text_t* title = "", Bool_t embed = kTRUE)
virtual voidStreamer(TBuffer& b)
voidStreamerNVirtual(TBuffer& b)
static voidTerminate()
private:
TEveManager(const TEveManager&)
TEveManager&operator=(const TEveManager&)

Data Members

protected:
TEveSelection*fHighlight
TEveElementList*fOrphanage
TEveSelection*fSelection
set<TEveElement*,less<TEveElement*>,allocator<TEveElement*> >fStampedElements
Bool_tfUseOrphanage
private:
TEveBrowser*fBrowser
TEveEventManager*fCurrentEvent
Bool_tfDropLogicals
TEveGedEditor*fEditor
TEveScene*fEventScene
TEveManager::TExceptionHandler*fExcHandler
Bool_tfFullRedraw
TMap*fGeometries
TMap*fGeometryAliases
TEveScene*fGlobalScene
Bool_tfKeepEmptyCont
TEveGListTreeEditorFrame*fLTEFrame
TFolder*fMacroFolder
Int_tfRedrawDisabled
TTimerfRedrawTimer
Bool_tfResetCameras
TEveSceneList*fScenes
TGStatusBar*fStatusBar
Bool_tfTimerActive
TEveViewerList*fViewers
TMap*fVizDB
Bool_tfVizDBReplace
Bool_tfVizDBUpdate
TEveWindowManager*fWindowManager

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")
 Constructor.
 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.
~TEveManager()
 Destructor.
void ClearOrphanage()
 Clear the orphanage.
TCanvas* AddCanvasTab(const char* name)
 Add a new canvas tab.
TGWindow* GetMainWindow() const
 Get the main window, i.e. the first created reve-browser.
TEveViewer* GetDefaultViewer() const
 Returns the default viewer - the first one in the fViewers list.
TGLViewer* GetDefaultGLViewer() const
 Get TGLViewer of the default TEveViewer.
TEveViewer* SpawnNewViewer(const Text_t* name, const Text_t* title = "", Bool_t embed = kTRUE)
 Create a new GL viewer.
TEveScene* SpawnNewScene(const Text_t* name, const Text_t* title = "")
 Create a new scene.
TMacro* GetMacro(const Text_t* 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
 changed.
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.
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
 item.
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
 execution.
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:
   gEve->GetGeometryByName(name);
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; }
TEveGedEditor* GetEditor() const
{ return fEditor; }
TGStatusBar* GetStatusBar() const
{ return fStatusBar; }
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()
{ ++fRedrawDisabled; }
void EnableRedraw()
{ --fRedrawDisabled; if (fRedrawDisabled <= 0) Redraw3D(); }
void Redraw3D(Bool_t resetCameras = kFALSE, Bool_t dropLogicals = kFALSE)
Bool_t GetKeepEmptyCont() const
{ return fKeepEmptyCont; }
void SetKeepEmptyCont(Bool_t k)
{ fKeepEmptyCont = k; }
void ElementStamped(TEveElement* element)
 Fine grained updates via stamping.
{ fStampedElements.insert(element); }
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; }

Last change: root/eve:$Id: TEveManager.h 26717 2008-12-07 22:07:55Z matevz $
Last generated: 2008-12-16 12:24
Copyright (C) 1995-2007, Rene Brun and Fons Rademakers. *

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.