00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 
00009 
00010 
00011 
00012 
00013 
00014 
00015 
00016 #ifndef TGO4ASIMAGE_H
00017 #define TGO4ASIMAGE_H
00018 
00019 class TH2;
00020 class TPad;
00021 class TGo4ViewPanel;
00022 
00023 #ifdef __GO4ASI__
00024 
00025 #include "TASImage.h"
00026 
00034 class TGo4ASImage : public TASImage {
00035    public:
00036       TGo4ASImage();
00037       virtual ~TGo4ASImage();
00038 
00039       void SetHistogramContent(TH2* histo);
00040 
00041       void SetDrawData(TH2* histo, TGo4ViewPanel* panel, TPad* pad);
00042 
00043       void SetSelectedRange(double rxmin, double rxmax, double rymin, double rymax);
00044 
00045       virtual void Zoom(UInt_t offX, UInt_t offY, UInt_t width, UInt_t height); 
00046 
00047       virtual void UnZoom(); 
00048 
00050       void ClosePaletteEditor();
00051 
00052       
00053       TGo4ASImage(TH2*) {}
00054 
00055       TH2* GetHistogram() const { return 0; }
00056 
00058       void SetHistogramRanges(TH2*) {}
00059 
00061       void SetZoom(TH2*) {}
00062 
00063    private:
00064 
00065       TGo4ViewPanel* fxPanel; 
00066 
00067       TPad*         fxPad;   
00068 
00069       double        fxMinX;  
00070       double        fxMaxX;  
00071       double        fxMinY;  
00072       double        fxMaxY;  
00073 
00074 };
00075 
00076 #else
00077 
00078 
00079 #include "TObject.h"
00080 
00081 class TGo4ASImage : public TObject {
00082    public:
00083       TGo4ASImage() {}
00084       virtual ~TGo4ASImage() {}
00085 
00086       void SetHistogramContent(TH2*) {}
00087 
00088       void SetDrawData(TH2*, TGo4ViewPanel*, TPad*) {}
00089 
00090       void SetSelectedRange(double, double, double, double) {}
00091 };
00092 
00093 #endif // ASImage disable switch
00094 
00095 #endif //TGO4ASIMAGE_H
00096 
00097