ROOT logo
#ifndef __HPRGAXIS_h__
#define __HPRGAXIS_h__
//#include "HTCanvas.h"
#include "TCanvas.h"
#include "TTimer.h"
#include "TGaxis.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:
		TCanvas *fCanvas;
		Double_t fFrameX1;
		Double_t fFrameX2;
		Double_t fFrameY1;
		Double_t fFrameY2;	
		Int_t    fLogx;
		Int_t    fLogy;
      Double_t fOffset;          // offset of low edge compared to main axis
      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(TCanvas * 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() { if ( fTimer ) {fTimer->Stop(); delete fTimer;}};
		void ReDoAxis();
		void HandlePadModified();
		void SetOffset(Double_t off) { fOffset = off; };           // *MENU*
		Double_t GetOffset() { return fOffset; };
		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
 HprGaxis.h:1
 HprGaxis.h:2
 HprGaxis.h:3
 HprGaxis.h:4
 HprGaxis.h:5
 HprGaxis.h:6
 HprGaxis.h:7
 HprGaxis.h:8
 HprGaxis.h:9
 HprGaxis.h:10
 HprGaxis.h:11
 HprGaxis.h:12
 HprGaxis.h:13
 HprGaxis.h:14
 HprGaxis.h:15
 HprGaxis.h:16
 HprGaxis.h:17
 HprGaxis.h:18
 HprGaxis.h:19
 HprGaxis.h:20
 HprGaxis.h:21
 HprGaxis.h:22
 HprGaxis.h:23
 HprGaxis.h:24
 HprGaxis.h:25
 HprGaxis.h:26
 HprGaxis.h:27
 HprGaxis.h:28
 HprGaxis.h:29
 HprGaxis.h:30
 HprGaxis.h:31
 HprGaxis.h:32
 HprGaxis.h:33
 HprGaxis.h:34
 HprGaxis.h:35
 HprGaxis.h:36
 HprGaxis.h:37
 HprGaxis.h:38
 HprGaxis.h:39
 HprGaxis.h:40
 HprGaxis.h:41
 HprGaxis.h:42
 HprGaxis.h:43
 HprGaxis.h:44
 HprGaxis.h:45
 HprGaxis.h:46
 HprGaxis.h:47
 HprGaxis.h:48
 HprGaxis.h:49
 HprGaxis.h:50