GSI Object Oriented Online Offline (Go4)  GO4-5.3.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
TGo4ASImage.h
Go to the documentation of this file.
1 // $Id: TGo4ASImage.h 642 2010-06-29 11:12:35Z adamczew $
2 //-----------------------------------------------------------------------
3 // The GSI Online Offline Object Oriented (Go4) Project
4 // Experiment Data Processing at EE department, GSI
5 //-----------------------------------------------------------------------
6 // Copyright (C) 2000- GSI Helmholtzzentrum für Schwerionenforschung GmbH
7 // Planckstr. 1, 64291 Darmstadt, Germany
8 // Contact: http://go4.gsi.de
9 //-----------------------------------------------------------------------
10 // This software can be used under the license agreements as stated
11 // in Go4License.txt file which is part of the distribution.
12 //-----------------------------------------------------------------------
13 
14 #ifndef TGO4ASIMAGE_H
15 #define TGO4ASIMAGE_H
16 
17 class TH2;
18 class TPad;
19 class TGo4ViewPanel;
20 
21 #ifndef __NOGO4ASI__
22 
23 #include "TASImage.h"
24 
32 class TGo4ASImage : public TASImage {
33  public:
34  TGo4ASImage();
35  virtual ~TGo4ASImage();
36 
37  void SetHistogramContent(TH2* histo);
38 
39  void SetDrawData(TH2* histo, TGo4ViewPanel* panel, TPad* pad);
40 
41  void SetSelectedRange(double rxmin, double rxmax, double rymin, double rymax);
42 
43  virtual void Zoom(UInt_t offX, UInt_t offY, UInt_t width, UInt_t height); //*MENU*
44 
45  virtual void UnZoom(); //*MENU*
46 
48  void ClosePaletteEditor();
49 
50  // old code
51  TGo4ASImage(TH2*) {}
52 
53  TH2* GetHistogram() const { return 0; }
54 
56  void SetHistogramRanges(TH2*) {}
57 
59  void SetZoom(TH2*) {}
60 
61  private:
62 
64 
65  TPad* fxPad;
66 
67  double fxMinX;
68  double fxMaxX;
69  double fxMinY;
70  double fxMaxY;
71 
72  double fdWidth;
73  double fdHeight;
74 
75 };
76 
77 #else
78 
79 // give a dummy for the Qt Slots!
80 #include "TObject.h"
81 
82 class TGo4ASImage : public TObject {
83  public:
84  TGo4ASImage() {}
85  virtual ~TGo4ASImage() {}
86 
87  void SetHistogramContent(TH2*) {}
88 
89  void SetDrawData(TH2*, TGo4ViewPanel*, TPad*) {}
90 
91  void SetSelectedRange(double, double, double, double) {}
92 
93  void SetPaletteEnabled(bool) {}
94 
95 
96 };
97 
98 #endif // ASImage disable switch
99 
100 #endif //TGO4ASIMAGE_H
TPad * fxPad
Definition: TGo4ASImage.h:65
double fdWidth
Definition: TGo4ASImage.h:72
void SetDrawData(TH2 *histo, TGo4ViewPanel *panel, TPad *pad)
Definition: TGo4ASImage.cpp:60
void ClosePaletteEditor()
double fxMaxY
Definition: TGo4ASImage.h:70
TH2 * GetHistogram() const
Definition: TGo4ASImage.h:53
void SetHistogramRanges(TH2 *)
Definition: TGo4ASImage.h:56
double fxMinX
Definition: TGo4ASImage.h:67
virtual void UnZoom()
TGo4ASImage(TH2 *)
Definition: TGo4ASImage.h:51
double fdHeight
original width of image (histogram)
Definition: TGo4ASImage.h:73
virtual ~TGo4ASImage()
Definition: TGo4ASImage.cpp:36
virtual void Zoom(UInt_t offX, UInt_t offY, UInt_t width, UInt_t height)
void SetSelectedRange(double rxmin, double rxmax, double rymin, double rymax)
Definition: TGo4ASImage.cpp:73
double fxMaxX
Definition: TGo4ASImage.h:68
void SetZoom(TH2 *)
Definition: TGo4ASImage.h:59
double fxMinY
Definition: TGo4ASImage.h:69
TGo4ViewPanel * fxPanel
Definition: TGo4ASImage.h:63
void SetHistogramContent(TH2 *histo)
Definition: TGo4ASImage.cpp:41