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)
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()
static TEveManager*Create(Bool_t map_window = kTRUE)
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()
TEveViewer*GetDefViewer() const
TEveGedEditor*GetEditor() const
TEveScene*GetEventScene() const
TEveManager::TExceptionHandler*GetExcHandler() const
TGeoManager*GetGeometry(const TString& filename)
TGeoManager*GetGeometryByAlias(const TString& alias)
TEveScene*GetGlobalScene() const
TGLViewer*GetGLViewer() 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
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)
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)
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
TEveViewer*fViewerFirst / default gl-viewer.
TEveViewerList*fViewers
TMap*fVizDB
Bool_tfVizDBReplace
Bool_tfVizDBUpdate

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

TEveManager(UInt_t w, UInt_t h, Bool_t map_window = kTRUE)
 Constructor.
~TEveManager()
 Destructor.
void ClearOrphanage()
 Clear the orphanage.
TCanvas* AddCanvasTab(const char* name)
 Add a new canvas tab.
TGWindow* GetMainWindow()
 Get the main window, i.e. the first created reve-browser.
TGLViewer* GetGLViewer()
 Get default TGLViewer.
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()
 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.
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.
TEveManager* Create(Bool_t map_window = kTRUE)
 If global TEveManager* gEve is not set initialize it.
 Returns gEve.
TEveManager(const TEveManager& )
TEveManager& operator=(const TEveManager& )
TExceptionHandler* GetExcHandler()
{ return fExcHandler; }
TEveSelection* GetSelection()
{ return fSelection; }
TEveSelection* GetHighlight()
{ return fHighlight; }
TEveElementList* GetOrphanage()
{ return fOrphanage; }
Bool_t GetUseOrphanage()
{ return fUseOrphanage; }
void SetUseOrphanage(Bool_t o)
{ fUseOrphanage = o; }
TEveBrowser* GetBrowser()
{ return fBrowser; }
TEveGListTreeEditorFrame* GetLTEFrame()
{ return fLTEFrame; }
TEveGedEditor* GetEditor()
{ return fEditor; }
TGStatusBar* GetStatusBar()
{ return fStatusBar; }
TEveSceneList* GetScenes()
{ return fScenes; }
TEveViewerList* GetViewers()
{ return fViewers; }
TEveViewer* GetDefViewer()
{ return fViewer; }
TEveScene* GetGlobalScene()
{ return fGlobalScene; }
TEveScene* GetEventScene()
{ return fEventScene; }
TEveEventManager* GetCurrentEvent()
{ return fCurrentEvent; }
TFolder* GetMacroFolder()
{ 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()
{ return fKeepEmptyCont; }
void SetKeepEmptyCont(Bool_t k)
{ fKeepEmptyCont = k; }
void ElementStamped(TEveElement* element)
 Fine grained updates via stamping.
{ fStampedElements.insert(element); }
Bool_t GetVizDBReplace()
{ return fVizDBReplace; }
Bool_t GetVizDBUpdate()
{ return fVizDBUpdate; }
void SetVizDBReplace(Bool_t r)
{ fVizDBReplace = r; }
void SetVizDBUpdate(Bool_t u)
{ fVizDBUpdate = u; }

Last change: root/eve:$Id: TEveManager.h 24449 2008-06-20 21:37:48Z matevz $
Last generated: 2008-06-25 08:37
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.