FairRoot
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
FairEveAnimationControl.h
Go to the documentation of this file.
1 /********************************************************************************
2  * Copyright (C) 2020 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  * FairEveAnimationControl.h
10  *
11  * Created on: 26 maj 2020
12  * Author: Daniel Wielanek
13  * E-mail: daniel.wielanek@gmail.com
14  * Warsaw University of Technology, Faculty of Physics
15  */
16 #ifndef FAIREVEANIMATIONCONTROL_H_
17 #define FAIREVEANIMATIONCONTROL_H_
18 
19 #include <GuiTypes.h>
20 #include <Rtypes.h>
21 #include <RtypesCore.h>
22 #include <TGButton.h>
23 #include <TGComboBox.h>
24 #include <TGDoubleSlider.h>
25 #include <TGFrame.h>
26 #include <TGLabel.h>
27 #include <TGNumberEntry.h>
28 #include <TGButton.h> // for TGTextButton, TGCheckButton
29 #include <TGedFrame.h> // for TGedFrame
30 #include <TObject.h>
31 
32 class FairEveAnimationControl : public TNamed
33 {
34  const Int_t fWidth;
35  Double_t fValMin, fValMax;
36  TString fFunctionName;
37  TGedFrame *fParent;
38  TGCompositeFrame *fTab;
39  TGNumberEntry *fMin;
40  TGNumberEntry *fMax;
41  TGNumberEntry *fStep;
42  TGNumberEntry *fTail;
43  TGComboBox *fComboOpt;
44  TGComboBox *fTypeOpt;
45  TGCheckButton *fBtnRunContinuous;
46  TGCheckButton *fBtnClearBuffer;
47 
48  public:
50  {
53  };
55  {
56  k3D = 0,
57  kXY = 1,
58  kZ = 2,
59  kAll = 3
60  };
61  FairEveAnimationControl(TGedFrame *frame = 0,
62  TGCompositeFrame *tab = 0,
63  TString name = "",
64  Int_t width = 170,
65  Int_t buttons = 2);
70  void SetFunctionName(TString name) { fFunctionName = name; };
71  void SetMinMax(Double_t min, Double_t max)
72  {
73  fValMin = min;
74  fValMax = max;
75  };
76  void Init();
79  Double_t GetMin();
80  Double_t GetMax();
81  Double_t GetStep();
82  Double_t GetTail();
83  Bool_t GetRunContinuous();
84  Bool_t GetClearBuffer();
85  virtual ~FairEveAnimationControl();
86 
87  ClassDef(FairEveAnimationControl, 2)
88 };
89 
90 #endif /* FAIREVEANIMATIONCONTROL_H_ */
FairEveAnimationControl(TGedFrame *frame=0, TGCompositeFrame *tab=0, TString name="", Int_t width=170, Int_t buttons=2)
void SetMinMax(Double_t min, Double_t max)
void SetFunctionName(TString name)