FairRoot
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
FairEventManagerEditor.h
Go to the documentation of this file.
1 /********************************************************************************
2  * Copyright (C) 2014 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
3  * *
4  * This software is distributed under the terms of the *
5  * GNU Lesser General Public Licence (LGPL) version 3, *
6  * copied verbatim in the file "LICENSE" *
7  ********************************************************************************/
8 // -------------------------------------------------------------------------
9 // ----- FairEventManagerEditor -----
10 // ----- Created 16/12/07 by M. Al-Turany -----
11 // -------------------------------------------------------------------------
12 #ifndef ROOT_FAIREVENTMANAGEREDITOR
13 #define ROOT_FAIREVENTMANAGEREDITOR
14 #include <GuiTypes.h> // for Pixel_t
15 #include <Rtypes.h> // for THashConsistencyHolder, ClassDef
16 #include <RtypesCore.h> // for Int_t, Bool_t, Double_t, UInt_t
17 #include <TGFrame.h> // for kChildFrame
18 #include <TGedFrame.h> // for TGedFrame
19 class FairEveAnimationControl; // lines 21-21
20 class FairEventManager; // lines 24-24
21 class TBuffer;
22 class TClass;
23 class TGComboBox; // lines 22-22
24 class TGLabel; // lines 27-27
25 class TGNumberEntry; // lines 28-28
26 class TGWindow; // lines 29-29
27 class TMemberInspector;
28 class TObject; // lines 30-30
29 
30 class FairEventManagerEditor : public TGedFrame
31 {
32  FairEventManagerEditor(const FairEventManagerEditor&); // Not implemented
33  FairEventManagerEditor& operator=(const FairEventManagerEditor&); // Not implemented
34 
35  protected:
36  TObject* fObject;
38  TGNumberEntry* fCurrentEvent;
39  TGNumberEntry* fGlobalTransparency;
40  TGLabel* fEventTime;
41  TGComboBox* fScreenshotOpt;
43 
44  void SetEventTimeLabel(Double_t time);
45 
46  public:
47  FairEventManagerEditor(const TGWindow* p = 0,
48  Int_t width = 170,
49  Int_t height = 30,
50  UInt_t options = kChildFrame,
51  Pixel_t back = GetDefaultFrameBackground());
53  void SetModel(TObject* obj);
54  virtual void SelectSingleEvent();
55  virtual void SelectEvent();
56  virtual void StartAnimation();
57  virtual void Init();
62  void SwitchBackground(Bool_t light_background);
66  void MakeScreenshot();
67  ;
68  // Specialization of TGedEditor for proper update propagation to TEveManager.
70 };
71 
72 #endif
FairEveAnimationControl * fAnimation
ClassDef(FairEventManagerEditor, 0)
void SetEventTimeLabel(Double_t time)
TGNumberEntry * fGlobalTransparency
void SwitchBackground(Bool_t light_background)