KaliVeda  1.13/01
Heavy-Ion Analysis Toolkit
KVGaxis.h
Go to the documentation of this file.
1 
4 #ifndef __KVGAXIS_H
5 #define __KVGAXIS_H
6 
7 #include "TGaxis.h"
8 #include "TLine.h"
9 #include "TAttText.h"
10 
17 class KVGaxis : public TGaxis {
18 protected:
21  const char* fFormat;
22  char** fLabels;
23 
24 public:
25  KVGaxis();
26  KVGaxis(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);
27 
28  KVGaxis(Double_t xmin, Double_t ymin, Double_t xmax, Double_t ymax, Int_t nbins, Double_t* bins, Double_t wmin = 0, Double_t wmax = 0,
29  Int_t ndiv = 510, Option_t* chopt = "", Double_t gridlength = 0, char** labels = 0);
30 
32 
33  KVGaxis(Double_t xmin, Double_t ymin, Double_t xmax, Double_t ymax, const char* funcname, Int_t ndiv = 510, Option_t* chopt = "", Double_t gridlength = 0);
34  virtual ~KVGaxis();
35  virtual void PaintAxis(Double_t xmin, Double_t ymin, Double_t xmax, Double_t ymax,
36  Double_t& wmin, Double_t& wmax, Int_t& ndiv, Option_t* chopt = "",
37  Double_t gridlength = 0, Bool_t drawGridOnly = kFALSE);
39 
40  void SetFormat(const char* form = "%lf")
41  {
42  fFormat = form;
43  }
44 
45  ClassDef(KVGaxis, 1) //TAxis optimised for KVGraph visualisation
46 };
47 
48 #endif
int Int_t
bool Bool_t
double Double_t
const char Option_t
#define ClassDef(name, id)
Extension of TGaxis class optimised for KVGraph visualisation.
Definition: KVGaxis.h:17
Double_t * fBins
Definition: KVGaxis.h:20
virtual void PaintAxis(Double_t xmin, Double_t ymin, Double_t xmax, Double_t ymax, Double_t &wmin, Double_t &wmax, Int_t &ndiv, Option_t *chopt="", Double_t gridlength=0, Bool_t drawGridOnly=kFALSE)
Definition: KVGaxis.cpp:130
const char * fFormat
Definition: KVGaxis.h:21
KVGaxis()
Definition: KVGaxis.cpp:35
void SetFormat(const char *form="%lf")
void Copy(TObject& obj) const;
Definition: KVGaxis.h:40
virtual ~KVGaxis()
Destructor.
Definition: KVGaxis.cpp:106
char ** fLabels
Definition: KVGaxis.h:22
Int_t fNbins
Definition: KVGaxis.h:19