Logo ROOT  
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{
21protected:
22 std::vector<TString> fNewEventCommands;
23
24public:
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
#define ClassDef(name, id)
Definition: Rtypes.h:335
A list of TEveElements.
Definition: TEveElement.h:433
Base class for event management and navigation.
std::vector< TString > & GetNewEventCommands()
virtual void Close()
virtual void NextEvent()
virtual void AddNewEventCommand(const TString &cmd)
Register a command to be executed on each new event.
virtual void Open()
virtual void PrevEvent()
virtual void ClearNewEventCommands()
Clear the list of commands to be executed on each new event.
virtual void GotoEvent(Int_t)
TEveEventManager(const char *n="TEveEventManager", const char *t="")
Constructor.
virtual void AfterNewEventLoaded()
Virtual function to be called after a new event is loaded.
virtual ~TEveEventManager()
virtual void RemoveNewEventCommand(const TString &cmd)
Remove the first command equal to cmd.
std::vector< TString > fNewEventCommands
Basic string class.
Definition: TString.h:136
const Int_t n
Definition: legend1.C:16