#ifndef __HPRGAXIS_h__ #define __HPRGAXIS_h__ #include "TPad.h" #include "TGaxis.h" #include "TTimer.h" namespace std {} using namespace std; ////////////////////////////////////////////////////////////////////////////// // Name: HprGaxis // Description: a TGaxis, which remembers offset and ratio wr to original // Keywords: ////////////////////////////////////////////////////////////////////////////// class HprGaxis : public TGaxis { private: TTimer * fTimer; Int_t fSkipNextNotify; protected: TPad *fPad; //! Double_t fFrameX1; Double_t fFrameX2; Double_t fFrameY1; Double_t fFrameY2; Int_t fLogx; Int_t fLogy; Double_t fRatio; // ratio of axis scales Double_t fAxisOffset; // offset to right/ upper frame boundary (0-1.) Int_t fWhere; // 1: X axis, 2: Y, 3: Z public: HprGaxis(TPad * canvas, Double_t xmin, Double_t ymin, Double_t xmax, Double_t ymax, Double_t wmin, Double_t wmax, Int_t ndiv = 510, Option_t* chopt = "", Double_t gridlength = 0); HprGaxis(); ~HprGaxis(){}; void ReDoAxis(); void HandlePadModified(); void SetAxisOffset(Double_t off) { fAxisOffset = off; }; // *MENU* Double_t GetAxisOffset() { return fAxisOffset; }; void SetRatio(Double_t ratio) {fRatio = ratio; }; // *MENU* Double_t GetRatio() {return fRatio; }; void SetWhere(Double_t where) {fWhere = where; }; Double_t GetWhere() {return fWhere; }; ClassDef(HprGaxis, 2) }; #endif