CbmRoot
|
GUI elements to add animation and screenshot controls to CbmTimesliceManagerEditor. Cannot be used alone! More...
#include <CbmTsEveAnimationControl.h>
Public Types | |
enum | eAnimationType { kEventsInTs = 0 , kTimeSlices = 1 } |
enum | eScreenshotType { kAll = 0 , k3D = 1 , kZX = 2 , kZY = 3 , kXY = 4 , kZ = 5 } |
Public Member Functions | |
CbmTsEveAnimationControl (TGedFrame *frame, TGCompositeFrame *tab, TString functionName, TString name="", Int_t width=170) | |
PAL 01/06/2023: heavily based on FairEveAnimationControl from FairRoot v18.6.7, for usage with CbmTimesliceManager. | |
virtual | ~CbmTsEveAnimationControl () |
void | SetDisplayMcbm (bool bEna) |
Tune list of allowed screenshot types depending on available CBM/mCBM views. | |
void | SetFunctionName (TString name) |
void | SetEvtNb (uint32_t uNbEvt) |
void | SetTsNb (uint32_t uTsNb) |
void | Init () |
eAnimationType | GetAnimationType () const |
Double_t | GetAnimFrameSec () |
Bool_t | GetScreenshotEna () |
eScreenshotType | GetScreenshotType () const |
Int_t | GetEventMin () |
Int_t | GetEventMax () |
Int_t | GetEventStep () |
Int_t | GetTsMin () |
Int_t | GetTsMax () |
Int_t | GetTsStep () |
Bool_t | GetRunContinuous () |
Bool_t | GetClearBuffer () |
void | UpdateEnaScreenshots () |
Update GUI elements to enforce options/limits. RESERVED FOR GUI CALLS! | |
void | UpdateEnaDisButtons () |
Update GUI elements to enforce options/limits. RESERVED FOR GUI CALLS! | |
void | UpdateEventLimits () |
Update GUI elements to enforce options/limits. RESERVED FOR GUI CALLS! | |
void | UpdateTsLimits () |
Update GUI elements to enforce options/limits. RESERVED FOR GUI CALLS! | |
Private Attributes | |
const Int_t | fWidth |
uint32_t | fNbEvt = 0 |
uint32_t | fNbTs = 0 |
TGedFrame * | fParent = nullptr |
TString | fFunctionName = "" |
bool | fbMcbmViewersEna = false |
bool | fbInitDone = false |
TGCompositeFrame * | fTab = nullptr |
TGTextButton * | fStartButton = nullptr |
TGComboBox * | fTypeOpt = nullptr |
TGNumberEntry * | fAnimFrameSec = nullptr |
TGCheckButton * | fBtnScreenshotEna = nullptr |
TGComboBox * | fSceneOpt = nullptr |
TGNumberEntry * | fEvtMin = nullptr |
TGNumberEntry * | fEvtMax = nullptr |
TGNumberEntry * | fEvtStep = nullptr |
TGNumberEntry * | fTsMin = nullptr |
TGNumberEntry * | fTsMax = nullptr |
TGNumberEntry * | fTsStep = nullptr |
TGCheckButton * | fBtnRunContinuous = nullptr |
TGCheckButton * | fBtnClearBuffer = nullptr |
GUI elements to add animation and screenshot controls to CbmTimesliceManagerEditor. Cannot be used alone!
PAL 31/05/2023: Heavily based on FairEveAnimationControl (for FairEventManagerEditor) from FairRoot v18.6.7
Definition at line 36 of file CbmTsEveAnimationControl.h.
Enumerator | |
---|---|
kEventsInTs | |
kTimeSlices |
Definition at line 38 of file CbmTsEveAnimationControl.h.
Enumerator | |
---|---|
kAll | |
k3D | |
kZX | |
kZY | |
kXY | |
kZ |
Definition at line 43 of file CbmTsEveAnimationControl.h.
CbmTsEveAnimationControl::CbmTsEveAnimationControl | ( | TGedFrame * | frame, |
TGCompositeFrame * | tab, | ||
TString | functionName, | ||
TString | name = "", | ||
Int_t | width = 170 ) |
PAL 01/06/2023: heavily based on FairEveAnimationControl from FairRoot v18.6.7, for usage with CbmTimesliceManager.
Definition at line 16 of file CbmTsEveAnimationControl.cxx.
|
virtual |
Definition at line 26 of file CbmTsEveAnimationControl.cxx.
CbmTsEveAnimationControl::eAnimationType CbmTsEveAnimationControl::GetAnimationType | ( | ) | const |
Definition at line 178 of file CbmTsEveAnimationControl.cxx.
References fTypeOpt.
Referenced by CbmTimesliceManagerEditor::StartAnimation(), and UpdateEnaDisButtons().
Double_t CbmTsEveAnimationControl::GetAnimFrameSec | ( | ) |
Definition at line 183 of file CbmTsEveAnimationControl.cxx.
References fAnimFrameSec.
Referenced by CbmTimesliceManagerEditor::StartAnimation().
Bool_t CbmTsEveAnimationControl::GetClearBuffer | ( | ) |
Definition at line 206 of file CbmTsEveAnimationControl.cxx.
References fBtnClearBuffer.
Referenced by CbmTimesliceManagerEditor::StartAnimation().
Int_t CbmTsEveAnimationControl::GetEventMax | ( | ) |
Definition at line 194 of file CbmTsEveAnimationControl.cxx.
References fEvtMax.
Referenced by CbmTimesliceManagerEditor::StartAnimation().
Int_t CbmTsEveAnimationControl::GetEventMin | ( | ) |
Definition at line 192 of file CbmTsEveAnimationControl.cxx.
References fEvtMin.
Referenced by CbmTimesliceManagerEditor::StartAnimation().
Int_t CbmTsEveAnimationControl::GetEventStep | ( | ) |
Definition at line 196 of file CbmTsEveAnimationControl.cxx.
References fEvtStep.
Referenced by CbmTimesliceManagerEditor::StartAnimation().
Bool_t CbmTsEveAnimationControl::GetRunContinuous | ( | ) |
Definition at line 204 of file CbmTsEveAnimationControl.cxx.
References fBtnRunContinuous.
Referenced by CbmTimesliceManagerEditor::StartAnimation().
Bool_t CbmTsEveAnimationControl::GetScreenshotEna | ( | ) |
Definition at line 185 of file CbmTsEveAnimationControl.cxx.
References fBtnScreenshotEna.
Referenced by CbmTimesliceManagerEditor::StartAnimation().
CbmTsEveAnimationControl::eScreenshotType CbmTsEveAnimationControl::GetScreenshotType | ( | ) | const |
Definition at line 187 of file CbmTsEveAnimationControl.cxx.
References fSceneOpt.
Referenced by CbmTimesliceManagerEditor::StartAnimation().
Int_t CbmTsEveAnimationControl::GetTsMax | ( | ) |
Definition at line 200 of file CbmTsEveAnimationControl.cxx.
References fTsMax.
Referenced by CbmTimesliceManagerEditor::StartAnimation().
Int_t CbmTsEveAnimationControl::GetTsMin | ( | ) |
Definition at line 198 of file CbmTsEveAnimationControl.cxx.
References fTsMin.
Referenced by CbmTimesliceManagerEditor::StartAnimation().
Int_t CbmTsEveAnimationControl::GetTsStep | ( | ) |
Definition at line 202 of file CbmTsEveAnimationControl.cxx.
References fTsStep.
Referenced by CbmTimesliceManagerEditor::StartAnimation().
void CbmTsEveAnimationControl::Init | ( | ) |
In Timeslice mode, scan anyway on all events in each TS, in event mode wait for loading of first TS Not SetEnabled for TGNumberEntry, guessing equivalent is SetState
Definition at line 28 of file CbmTsEveAnimationControl.cxx.
References fAnimFrameSec, fbInitDone, fbMcbmViewersEna, fBtnClearBuffer, fBtnRunContinuous, fBtnScreenshotEna, fEvtMax, fEvtMin, fEvtStep, fFunctionName, fNbEvt, fNbTs, fParent, fSceneOpt, fStartButton, fTab, fTsMax, fTsMin, fTsStep, fTypeOpt, fWidth, k3D, kAll, kEventsInTs, kTimeSlices, kXY, kZ, kZX, kZY, and UpdateTsLimits().
Referenced by CbmTimesliceManagerEditor::Init().
|
inline |
Tune list of allowed screenshot types depending on available CBM/mCBM views.
Definition at line 60 of file CbmTsEveAnimationControl.h.
References fbMcbmViewersEna.
Referenced by CbmTimesliceManagerEditor::Init().
|
inline |
Definition at line 68 of file CbmTsEveAnimationControl.h.
References fbInitDone, fNbEvt, and UpdateEventLimits().
Referenced by CbmTimesliceManagerEditor::SelectTimeslice().
|
inline |
set name of function called when button is pressed
name |
Definition at line 66 of file CbmTsEveAnimationControl.h.
References fFunctionName.
|
inline |
Definition at line 77 of file CbmTsEveAnimationControl.h.
References fbInitDone, fNbTs, and UpdateTsLimits().
Referenced by CbmTimesliceManagerEditor::Init().
void CbmTsEveAnimationControl::UpdateEnaDisButtons | ( | ) |
Update GUI elements to enforce options/limits. RESERVED FOR GUI CALLS!
Prevent invalid accesses
In Timeslice mode, scan anyway on all events in each TS in range
In Event mode, scan only on events within selected TS
Definition at line 210 of file CbmTsEveAnimationControl.cxx.
References fEvtMax, fEvtMin, fEvtStep, fNbTs, fStartButton, fTsMax, fTsMin, fTsStep, GetAnimationType(), and kTimeSlices.
Referenced by UpdateEventLimits(), and UpdateTsLimits().
void CbmTsEveAnimationControl::UpdateEnaScreenshots | ( | ) |
Update GUI elements to enforce options/limits. RESERVED FOR GUI CALLS!
Definition at line 208 of file CbmTsEveAnimationControl.cxx.
References fBtnScreenshotEna, and fSceneOpt.
void CbmTsEveAnimationControl::UpdateEventLimits | ( | ) |
Update GUI elements to enforce options/limits. RESERVED FOR GUI CALLS!
Definition at line 240 of file CbmTsEveAnimationControl.cxx.
References fEvtMax, fEvtMin, fEvtStep, fNbEvt, and UpdateEnaDisButtons().
Referenced by SetEvtNb().
void CbmTsEveAnimationControl::UpdateTsLimits | ( | ) |
Update GUI elements to enforce options/limits. RESERVED FOR GUI CALLS!
Definition at line 253 of file CbmTsEveAnimationControl.cxx.
References fNbTs, fTsMax, fTsMin, fTsStep, and UpdateEnaDisButtons().
|
private |
Definition at line 132 of file CbmTsEveAnimationControl.h.
Referenced by GetAnimFrameSec(), and Init().
|
private |
Definition at line 127 of file CbmTsEveAnimationControl.h.
Referenced by Init(), SetEvtNb(), and SetTsNb().
|
private |
Definition at line 126 of file CbmTsEveAnimationControl.h.
Referenced by Init(), and SetDisplayMcbm().
|
private |
Definition at line 142 of file CbmTsEveAnimationControl.h.
Referenced by GetClearBuffer(), and Init().
|
private |
Definition at line 141 of file CbmTsEveAnimationControl.h.
Referenced by GetRunContinuous(), and Init().
|
private |
Definition at line 133 of file CbmTsEveAnimationControl.h.
Referenced by GetScreenshotEna(), Init(), and UpdateEnaScreenshots().
|
private |
Definition at line 136 of file CbmTsEveAnimationControl.h.
Referenced by GetEventMax(), Init(), UpdateEnaDisButtons(), and UpdateEventLimits().
|
private |
Definition at line 135 of file CbmTsEveAnimationControl.h.
Referenced by GetEventMin(), Init(), UpdateEnaDisButtons(), and UpdateEventLimits().
|
private |
Definition at line 137 of file CbmTsEveAnimationControl.h.
Referenced by GetEventStep(), Init(), UpdateEnaDisButtons(), and UpdateEventLimits().
|
private |
Definition at line 124 of file CbmTsEveAnimationControl.h.
Referenced by Init(), and SetFunctionName().
|
private |
Definition at line 120 of file CbmTsEveAnimationControl.h.
Referenced by Init(), SetEvtNb(), and UpdateEventLimits().
|
private |
Definition at line 121 of file CbmTsEveAnimationControl.h.
Referenced by Init(), SetTsNb(), UpdateEnaDisButtons(), and UpdateTsLimits().
|
private |
Definition at line 123 of file CbmTsEveAnimationControl.h.
Referenced by Init().
|
private |
Definition at line 134 of file CbmTsEveAnimationControl.h.
Referenced by GetScreenshotType(), Init(), and UpdateEnaScreenshots().
|
private |
Definition at line 130 of file CbmTsEveAnimationControl.h.
Referenced by Init(), and UpdateEnaDisButtons().
|
private |
Definition at line 129 of file CbmTsEveAnimationControl.h.
Referenced by Init().
|
private |
Definition at line 139 of file CbmTsEveAnimationControl.h.
Referenced by GetTsMax(), Init(), UpdateEnaDisButtons(), and UpdateTsLimits().
|
private |
Definition at line 138 of file CbmTsEveAnimationControl.h.
Referenced by GetTsMin(), Init(), UpdateEnaDisButtons(), and UpdateTsLimits().
|
private |
Definition at line 140 of file CbmTsEveAnimationControl.h.
Referenced by GetTsStep(), Init(), UpdateEnaDisButtons(), and UpdateTsLimits().
|
private |
Definition at line 131 of file CbmTsEveAnimationControl.h.
Referenced by GetAnimationType(), and Init().
|
private |
Definition at line 119 of file CbmTsEveAnimationControl.h.
Referenced by Init().