KaliVeda
Toolkit for HIC analysis
KVGaxis.h
1 
4 #ifndef __KVGAXIS_H
5 #define __KVGAXIS_H
6 
7 #include "TGaxis.h"
8 #include "TLine.h"
9 #include "TAttText.h"
10 
18 class KVGaxis : public TGaxis {
19 protected:
22  const char* fFormat;
23  char** fLabels;
24 
25 public:
26  KVGaxis();
27  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);
28 
29  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,
30  Int_t ndiv = 510, Option_t* chopt = "", Double_t gridlength = 0, char** labels = 0);
31 
33 
34  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);
35  virtual ~KVGaxis();
36  virtual void PaintAxis(Double_t xmin, Double_t ymin, Double_t xmax, Double_t ymax,
37  Double_t& wmin, Double_t& wmax, Int_t& ndiv, Option_t* chopt = "",
38  Double_t gridlength = 0, Bool_t drawGridOnly = kFALSE);
40 
41  void SetFormat(const char* form = "%lf")
42  {
43  fFormat = form;
44  }
45 
46  ClassDef(KVGaxis, 1) //TAxis optimised for KVGraph visualisation
47 };
48 
49 #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:18
Double_t * fBins
Definition: KVGaxis.h:21
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:22
KVGaxis()
Definition: KVGaxis.cpp:35
void SetFormat(const char *form="%lf")
void Copy(TObject& obj) const;
Definition: KVGaxis.h:41
virtual ~KVGaxis()
Destructor.
Definition: KVGaxis.cpp:106
char ** fLabels
Definition: KVGaxis.h:23
Int_t fNbins
Definition: KVGaxis.h:20