Logo ROOT   master
Reference Guide
TEveEventManager.h
Go to the documentation of this file.
1 // @(#)root/eve:$Id$
2 // Authors: Matevz Tadel & Alja Mrak-Tadel: 2006, 2007
3 
4 /*************************************************************************
5  * Copyright (C) 1995-2007, Rene Brun and Fons Rademakers. *
6  * All rights reserved. *
7  * *
8  * For the licensing terms see $ROOTSYS/LICENSE. *
9  * For the list of contributors see $ROOTSYS/README/CREDITS. *
10  *************************************************************************/
11 
12 #ifndef ROOT_TEveEventManager
13 #define ROOT_TEveEventManager
14 
15 #include "TEveElement.h"
16 
17 #include <vector>
18 
20 {
21 protected:
22  std::vector<TString> fNewEventCommands;
23 
24 public:
25  TEveEventManager(const char* n="TEveEventManager", const char* t="");
26  virtual ~TEveEventManager() {}
27 
28  std::vector<TString>& GetNewEventCommands() { return fNewEventCommands; }
29 
30  virtual void Open() {}
31  virtual void GotoEvent(Int_t /*event*/) {}
32  virtual void NextEvent() {}
33  virtual void PrevEvent() {}
34  virtual void Close() {}
35 
36  virtual void AfterNewEventLoaded();
37 
38  virtual void AddNewEventCommand(const TString& cmd);
39  virtual void RemoveNewEventCommand(const TString& cmd);
40  virtual void ClearNewEventCommands();
41 
42  ClassDef(TEveEventManager, 0); // Base class for event management and navigation.
43 };
44 
45 #endif
Base class for event management and navigation.
virtual ~TEveEventManager()
virtual void ClearNewEventCommands()
Clear the list of commands to be executed on each new event.
Basic string class.
Definition: TString.h:131
std::vector< TString > fNewEventCommands
A list of TEveElements.
Definition: TEveElement.h:428
virtual void AddNewEventCommand(const TString &cmd)
Register a command to be executed on each new event.
#define ClassDef(name, id)
Definition: Rtypes.h:322
std::vector< TString > & GetNewEventCommands()
TEveEventManager(const char *n="TEveEventManager", const char *t="")
Constructor.
virtual void GotoEvent(Int_t)
virtual void NextEvent()
virtual void PrevEvent()
virtual void Open()
virtual void AfterNewEventLoaded()
Virtual function to be called after a new event is loaded.
const Int_t n
Definition: legend1.C:16
virtual void RemoveNewEventCommand(const TString &cmd)
Remove the first command equal to cmd.
virtual void Close()