CbmRoot
|
GUI elements for CbmTimesliceManager. Automatically loaded by TBrowser. Cannot be used standalone! More...
#include <CbmTimesliceManagerEditor.h>
Public Member Functions | |
CbmTimesliceManagerEditor (const TGWindow *p=0, Int_t width=250, Int_t height=30, UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground()) | |
virtual | ~CbmTimesliceManagerEditor ()=default |
CbmTimesliceManagerEditor (const CbmTimesliceManagerEditor &)=delete | |
CbmTimesliceManagerEditor & | operator= (const CbmTimesliceManagerEditor &)=delete |
void | SwitchBackground (Bool_t light_background) |
void | SwitchPdgColorTrack (Bool_t pdg_color) |
virtual void | Init () |
virtual void | SelectSingleTimeslice () |
Select timeslice depending on GUI elements values, after clearing display. RESERVED FOR GUI CALLS! | |
virtual void | SelectTimeslice () |
Select timeslice depending on GUI elements values and load its first event. RESERVED FOR GUI CALLS! | |
virtual void | PrevTimeslice () |
Select previous timeslice and load its first event. RESERVED FOR GUI CALLS! | |
virtual void | NextTimeslice () |
Select next timeslice and load its first event. RESERVED FOR GUI CALLS! | |
virtual void | SelectSingleEvent () |
Select event in timeslice depending on GUI elements values, after clearing display. RESERVED FOR GUI CALLS! | |
virtual void | SelectEvent () |
Select event in timeslice depending on GUI elements values. RESERVED FOR GUI CALLS! | |
virtual void | PrevEvent () |
Select previous event in timeslice. RESERVED FOR GUI CALLS! | |
virtual void | NextEvent () |
Select next event in timeslice. RESERVED FOR GUI CALLS! | |
void | SetModel (TObject *obj) |
virtual void | StartAnimation () |
Start display: to be called by GUI element, see HowTo for description of options. | |
void | MakeScreenshot () |
Screenshot(s) generation: to be called by GUI element. | |
Protected Member Functions | |
void | SetTimesliceTimeLabel (Double_t time) |
void | SetEventTimeLabel (Double_t time) |
Protected Attributes | |
TObject * | fObject = nullptr |
CbmTimesliceManager * | fManager = nullptr |
TGNumberEntry * | fCurrentTimeslice = nullptr |
TGNumberEntry * | fCurrentEvent = nullptr |
TGNumberEntry * | fGlobalTransparency = nullptr |
TGLabel * | fTimesliceTime = nullptr |
TGTextButton * | fSelTs = nullptr |
TGTextButton * | fPrevTs = nullptr |
TGTextButton * | fNextTs = nullptr |
TGLabel * | fEventNb = nullptr |
TGLabel * | fEventTime = nullptr |
TGTextButton * | fUpdateEvent = nullptr |
TGTextButton * | fPrevEvent = nullptr |
TGTextButton * | fNextEvent = nullptr |
TGComboBox * | fScreenshotOpt = nullptr |
CbmTsEveAnimationControl * | fAnimation = nullptr |
uint32_t | fNbTs = 0 |
TClonesArray * | fCbmEvents = nullptr |
uint32_t | fNbEventsInTs = 0 |
Private Member Functions | |
ClassDef (CbmTimesliceManagerEditor, 1) | |
GUI elements for CbmTimesliceManager. Automatically loaded by TBrowser. Cannot be used standalone!
Based on FairEventManagerEditor class of FairRoot v18.6.7
Definition at line 32 of file CbmTimesliceManagerEditor.h.
CbmTimesliceManagerEditor::CbmTimesliceManagerEditor | ( | const TGWindow * | p = 0, |
Int_t | width = 250, | ||
Int_t | height = 30, | ||
UInt_t | options = kChildFrame, | ||
Pixel_t | back = GetDefaultFrameBackground() ) |
Definition at line 47 of file CbmTimesliceManagerEditor.cxx.
References Init().
|
virtualdefault |
|
delete |
|
private |
|
virtual |
Disable all Prev/Next TS buttons until first TS loaded/selected!
Disable all Events buttons until first TS loaded/selected!
Definition at line 71 of file CbmTimesliceManagerEditor.cxx.
References fAnimation, fCbmEvents, fCurrentEvent, fCurrentTimeslice, fEventNb, fEventTime, fNbTs, fNextEvent, fNextTs, fPrevEvent, fPrevTs, fScreenshotOpt, fSelTs, fTimesliceTime, fUpdateEvent, CbmTsEveAnimationControl::Init(), CbmTimesliceManager::Instance(), CbmTsEveAnimationControl::k3D, CbmTsEveAnimationControl::kAll, CbmTsEveAnimationControl::kXY, CbmTsEveAnimationControl::kZ, CbmTsEveAnimationControl::kZX, CbmTsEveAnimationControl::kZY, CbmTsEveAnimationControl::SetDisplayMcbm(), and CbmTsEveAnimationControl::SetTsNb().
Referenced by CbmTimesliceManagerEditor().
void CbmTimesliceManagerEditor::MakeScreenshot | ( | ) |
Screenshot(s) generation: to be called by GUI element.
Definition at line 469 of file CbmTimesliceManagerEditor.cxx.
References fManager, fScreenshotOpt, and CbmTimesliceManager::MakeScreenshot().
|
virtual |
Select next event in timeslice. RESERVED FOR GUI CALLS!
Definition at line 344 of file CbmTimesliceManagerEditor.cxx.
References fCurrentEvent, fNbEventsInTs, and SelectSingleEvent().
|
virtual |
Select next timeslice and load its first event. RESERVED FOR GUI CALLS!
Definition at line 297 of file CbmTimesliceManagerEditor.cxx.
References fCurrentTimeslice, fNbTs, and SelectSingleTimeslice().
|
delete |
|
virtual |
Select previous event in timeslice. RESERVED FOR GUI CALLS!
Definition at line 330 of file CbmTimesliceManagerEditor.cxx.
References fCurrentEvent, and SelectSingleEvent().
|
virtual |
Select previous timeslice and load its first event. RESERVED FOR GUI CALLS!
Definition at line 283 of file CbmTimesliceManagerEditor.cxx.
References fCurrentTimeslice, and SelectSingleTimeslice().
|
virtual |
Select event in timeslice depending on GUI elements values. RESERVED FOR GUI CALLS!
Definition at line 317 of file CbmTimesliceManagerEditor.cxx.
References fCurrentEvent, fManager, fNbEventsInTs, fNextEvent, fPrevEvent, CbmTimesliceManager::GotoEvent(), CbmTimesliceManager::Instance(), SetEventTimeLabel(), CbmTimesliceManager::SetEvtNumberText(), and CbmTimesliceManager::SetEvtTimeText().
Referenced by SelectSingleEvent(), SelectTimeslice(), and StartAnimation().
|
virtual |
Select event in timeslice depending on GUI elements values, after clearing display. RESERVED FOR GUI CALLS!
Definition at line 311 of file CbmTimesliceManagerEditor.cxx.
References fManager, SelectEvent(), and CbmTimesliceManager::SetClearHandler().
Referenced by NextEvent(), and PrevEvent().
|
virtual |
Select timeslice depending on GUI elements values, after clearing display. RESERVED FOR GUI CALLS!
Definition at line 237 of file CbmTimesliceManagerEditor.cxx.
References fManager, SelectTimeslice(), and CbmTimesliceManager::SetClearHandler().
Referenced by NextTimeslice(), and PrevTimeslice().
|
virtual |
Select timeslice depending on GUI elements values and load its first event. RESERVED FOR GUI CALLS!
Enable/Disable buttons to avoid invalid accesses
Enable/Disable buttons to avoid invalid accesses
Load first event of this TS if possible and Update info text
Definition at line 243 of file CbmTimesliceManagerEditor.cxx.
References fAnimation, fCbmEvents, fCurrentEvent, fCurrentTimeslice, fEventNb, fManager, fNbEventsInTs, fNbTs, fNextEvent, fNextTs, fPrevEvent, fPrevTs, fUpdateEvent, CbmTimesliceManager::GotoTimeslice(), CbmTimesliceManager::Instance(), SelectEvent(), CbmTsEveAnimationControl::SetEvtNb(), SetTimesliceTimeLabel(), CbmTimesliceManager::SetTsNumberText(), and CbmTimesliceManager::SetTsTimeText().
Referenced by SelectSingleTimeslice(), and StartAnimation().
|
protected |
Definition at line 366 of file CbmTimesliceManagerEditor.cxx.
References fEventTime.
Referenced by SelectEvent().
void CbmTimesliceManagerEditor::SetModel | ( | TObject * | obj | ) |
Definition at line 375 of file CbmTimesliceManagerEditor.cxx.
References fObject.
|
protected |
Definition at line 358 of file CbmTimesliceManagerEditor.cxx.
References fTimesliceTime.
Referenced by SelectTimeslice().
|
virtual |
Start display: to be called by GUI element, see HowTo for description of options.
Get minimum and maximum event indices, ensured to fit range in TS by buttons updates
Clear display at startup if requested (should be default for most uses) Clear display after each event if requested (should be default for most uses)
Do not clear display between events = accumulate/stack them
Get minimum and maximum TS indices, ensured to fit range in run by buttons updates
Get only event step, min and max set to content of each TS
Clear display at startup if requested (should be default for most uses)
<= This should update all events limits to appropriate values
Clear display after each event if requested (should be default for most uses)
Do not clear display between events = accumulate/stack them
Definition at line 377 of file CbmTimesliceManagerEditor.cxx.
References fAnimation, fCurrentEvent, fCurrentTimeslice, fManager, fNbEventsInTs, CbmTsEveAnimationControl::GetAnimationType(), CbmTsEveAnimationControl::GetAnimFrameSec(), CbmTsEveAnimationControl::GetClearBuffer(), CbmTsEveAnimationControl::GetEventMax(), CbmTsEveAnimationControl::GetEventMin(), CbmTsEveAnimationControl::GetEventStep(), CbmTsEveAnimationControl::GetRunContinuous(), CbmTsEveAnimationControl::GetScreenshotEna(), CbmTsEveAnimationControl::GetScreenshotType(), CbmTsEveAnimationControl::GetTsMax(), CbmTsEveAnimationControl::GetTsMin(), CbmTsEveAnimationControl::GetTsStep(), CbmTsEveAnimationControl::kEventsInTs, CbmTsEveAnimationControl::kTimeSlices, CbmTimesliceManager::MakeScreenshot(), SelectEvent(), SelectTimeslice(), and CbmTimesliceManager::SetClearHandler().
void CbmTimesliceManagerEditor::SwitchBackground | ( | Bool_t | light_background | ) |
switch background color: to be called by GUI element
light | use white if true |
Definition at line 60 of file CbmTimesliceManagerEditor.cxx.
References fManager, and CbmTimesliceManager::SwitchBackground().
void CbmTimesliceManagerEditor::SwitchPdgColorTrack | ( | Bool_t | pdg_color | ) |
switch track color: to be called by GUI element
PDG | color if true, red if false (see TimesliceRecoTracks) |
Definition at line 65 of file CbmTimesliceManagerEditor.cxx.
References fManager, and CbmTimesliceManager::SwitchPdgColorTrack().
|
protected |
Definition at line 117 of file CbmTimesliceManagerEditor.h.
Referenced by Init(), SelectTimeslice(), and StartAnimation().
|
protected |
Definition at line 120 of file CbmTimesliceManagerEditor.h.
Referenced by Init(), and SelectTimeslice().
|
protected |
Definition at line 104 of file CbmTimesliceManagerEditor.h.
Referenced by Init(), NextEvent(), PrevEvent(), SelectEvent(), SelectTimeslice(), and StartAnimation().
|
protected |
Definition at line 103 of file CbmTimesliceManagerEditor.h.
Referenced by Init(), NextTimeslice(), PrevTimeslice(), SelectTimeslice(), and StartAnimation().
|
protected |
Definition at line 110 of file CbmTimesliceManagerEditor.h.
Referenced by Init(), and SelectTimeslice().
|
protected |
Definition at line 111 of file CbmTimesliceManagerEditor.h.
Referenced by Init(), and SetEventTimeLabel().
|
protected |
Definition at line 105 of file CbmTimesliceManagerEditor.h.
|
protected |
Definition at line 102 of file CbmTimesliceManagerEditor.h.
Referenced by MakeScreenshot(), SelectEvent(), SelectSingleEvent(), SelectSingleTimeslice(), SelectTimeslice(), StartAnimation(), SwitchBackground(), and SwitchPdgColorTrack().
|
protected |
Definition at line 121 of file CbmTimesliceManagerEditor.h.
Referenced by NextEvent(), SelectEvent(), SelectTimeslice(), and StartAnimation().
|
protected |
Definition at line 119 of file CbmTimesliceManagerEditor.h.
Referenced by Init(), NextTimeslice(), and SelectTimeslice().
|
protected |
Definition at line 114 of file CbmTimesliceManagerEditor.h.
Referenced by Init(), SelectEvent(), and SelectTimeslice().
|
protected |
Definition at line 109 of file CbmTimesliceManagerEditor.h.
Referenced by Init(), and SelectTimeslice().
|
protected |
Definition at line 101 of file CbmTimesliceManagerEditor.h.
Referenced by SetModel().
|
protected |
Definition at line 113 of file CbmTimesliceManagerEditor.h.
Referenced by Init(), SelectEvent(), and SelectTimeslice().
|
protected |
Definition at line 108 of file CbmTimesliceManagerEditor.h.
Referenced by Init(), and SelectTimeslice().
|
protected |
Definition at line 116 of file CbmTimesliceManagerEditor.h.
Referenced by Init(), and MakeScreenshot().
|
protected |
Definition at line 107 of file CbmTimesliceManagerEditor.h.
Referenced by Init().
|
protected |
Definition at line 106 of file CbmTimesliceManagerEditor.h.
Referenced by Init(), and SetTimesliceTimeLabel().
|
protected |
Definition at line 112 of file CbmTimesliceManagerEditor.h.
Referenced by Init(), and SelectTimeslice().