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:
20  Int_t fNbins;
21  Double_t* fBins;
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 
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();
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
constexpr Bool_t kFALSE
double Double_t
const char Option_t
#define ClassDef(name, id)
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t wmin
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t wmax
float xmin
float ymin
float xmax
float ymax
Extension of TGaxis class optimised for KVGraph visualisation.
Definition: KVGaxis.h:18
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
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