#include <TEventChangeManager.hxx>
Public Member Functions | |
TEventChangeManager () | |
virtual | ~TEventChangeManager () |
void | ChangeEvent (int change=1) |
void | AddNewEventHandler (EDep::TVEventChangeHandler *handler) |
void | AddUpdateHandler (EDep::TVEventChangeHandler *handler) |
void | SetShowGeometry (bool f) |
Set the flag to show (or not show) the geometry. More... | |
bool | GetShowGeometry () const |
void | AddVolumeToShow (const std::string &name) |
Add the name of a volume to be drawn. More... | |
void | ClearVolumesToShow () |
Clear the list of volumes to be shown. More... | |
void | SetEventSource (TFile *source) |
TFile * | GetEventSource () |
Private Types | |
typedef std::vector< EDep::TVEventChangeHandler * > | Handlers |
Private Member Functions | |
void | NewEvent () |
void | UpdateEvent () |
ClassDef (TEventChangeManager, 0) | |
Private Attributes | |
TFile * | fEventSource |
The input source of events. More... | |
Handlers | fUpdateHandlers |
The event update handlers. More... | |
Handlers | fNewEventHandlers |
The new event handlers. More... | |
bool | fShowGeometry |
Flag to determine if the geometry will be drawn. More... | |
std::vector< std::string > | fVolumesToShow |
A collection of volume names to be shown if the geometry is being drawn. More... | |
A class to handle a new event becoming available to the event display. There is a single instance of this class owned by TEventDisplay. This must be created after the GUI has been initialized.
Definition at line 16 of file TEventChangeManager.hxx.
|
private |
Definition at line 71 of file TEventChangeManager.hxx.
EDep::TEventChangeManager::TEventChangeManager | ( | ) |
Definition at line 77 of file TEventChangeManager.cxx.
|
virtual |
Definition at line 105 of file TEventChangeManager.cxx.
void EDep::TEventChangeManager::AddNewEventHandler | ( | EDep::TVEventChangeHandler * | handler | ) |
Add a handler (taking ownership of the handler) for when the event changes (e.g. a new event is read). These handlers are for "once-per-event" actions and are executed by the NewEvent() method.
Definition at line 139 of file TEventChangeManager.cxx.
void EDep::TEventChangeManager::AddUpdateHandler | ( | EDep::TVEventChangeHandler * | handler | ) |
Add a handler (taking ownership of the handler) for when the event needs to be redrawn. These handlers are executed by the UpdateEvent() method.
Definition at line 144 of file TEventChangeManager.cxx.
|
inline |
Add the name of a volume to be drawn.
Definition at line 48 of file TEventChangeManager.hxx.
void EDep::TEventChangeManager::ChangeEvent | ( | int | change = 1 | ) |
Trigger an event change. The argument says how many events to read. If it's positive, then it reads forward in the file. If the change is zero, then the current event is just redrawn. This is connected to the GUI buttons.
Definition at line 149 of file TEventChangeManager.cxx.
|
private |
|
inline |
Clear the list of volumes to be shown.
Definition at line 53 of file TEventChangeManager.hxx.
|
inline |
Definition at line 24 of file TEventChangeManager.hxx.
|
inline |
Definition at line 45 of file TEventChangeManager.hxx.
|
private |
This updates the event display for a new event using the event change handlers. It is used to do once-per-event initializations and does not call UpdateEvent().
Definition at line 168 of file TEventChangeManager.cxx.
void EDep::TEventChangeManager::SetEventSource | ( | TFile * | source | ) |
Set or get the event source. When the event source is set, the first event is read.
Definition at line 107 of file TEventChangeManager.cxx.
|
inline |
Set the flag to show (or not show) the geometry.
Definition at line 44 of file TEventChangeManager.hxx.
|
private |
This updates the event display for an event using the event change handlers.
Definition at line 181 of file TEventChangeManager.cxx.
|
private |
The input source of events.
Definition at line 69 of file TEventChangeManager.hxx.
|
private |
The new event handlers.
Definition at line 77 of file TEventChangeManager.hxx.
|
private |
Flag to determine if the geometry will be drawn.
Definition at line 80 of file TEventChangeManager.hxx.
|
private |
The event update handlers.
Definition at line 74 of file TEventChangeManager.hxx.
|
private |
A collection of volume names to be shown if the geometry is being drawn.
Definition at line 83 of file TEventChangeManager.hxx.