Logo ROOT   6.30.04
Reference Guide
 All Namespaces Files Pages
TGLAxis.h
Go to the documentation of this file.
1 // @(#)root/gl:$Id$
2 // Author: Olivier Couet 17/04/2007
3 
4 /*************************************************************************
5  * Copyright (C) 1995-2006, Rene Brun and Fons Rademakers. *
6  * All rights reserved. *
7  * *
8  * For the licensing terms see $ROOTSYS/LICENSE. *
9  * For the list of contributors see $ROOTSYS/README/CREDITS. *
10  *************************************************************************/
11 
12 #ifndef ROOT_TGLAxis
13 #define ROOT_TGLAxis
14 
15 #include "TAttText.h"
16 
17 #include "TAttLine.h"
18 
19 class TString;
20 class TGLText;
21 
22 class TGLAxis : public TAttLine, public TAttText {
23 private:
24  TGLAxis(const TGLAxis&); // Not implemented
25  TGLAxis& operator=(const TGLAxis&); // Not implemented
26 
27  Int_t fNDiv;
28  Int_t fNDiv1;
29  Int_t fNDiv2;
30  Int_t fNDiv3;
31  Int_t fNTicks1;
32  Int_t fNTicks2;
33  Double_t *fTicks1;
34  Double_t *fTicks2;
35  TString *fLabels;
36  Double_t fAxisLength;
37  Double_t fWmin;
38  Double_t fWmax;
39  Double_t fTickMarksLength;
40  Int_t fTickMarksOrientation;
41  Double_t fLabelsOffset;
42  Double_t fLabelsSize;
43  Double_t fGridLength;
44  TGLText *fText;
45  Double_t fAngle1; // 1st labels' angle.
46  Double_t fAngle2; // 2nd labels' angle.
47  Double_t fAngle3; // 3rd labels' angle.
48 
49 public:
50  TGLAxis();
51  virtual ~TGLAxis();
52 
53  void PaintGLAxis (const Double_t p1[3], const Double_t p2[3],
54  Double_t wmin , Double_t wmax , Int_t ndiv,
55  Option_t *opt="");
56  void Init ();
57  void PaintGLAxisBody ();
58  void PaintGLAxisTickMarks ();
59  void PaintGLAxisLabels ();
60  void TicksPositions (Option_t *opt="");
61  void TicksPositionsNoOpt ();
62  void TicksPositionsOpt ();
63  void DoLabels ();
64  void SetTickMarksLength (Double_t length){fTickMarksLength = length;}
65  void SetTickMarksOrientation (Int_t tmo){fTickMarksOrientation = tmo;}
66  void SetLabelsOffset (Double_t offset){fLabelsOffset = offset;}
67  void SetLabelsSize (Double_t size){fLabelsSize = size;}
68  void SetGridLength (Double_t grid){fGridLength = grid;}
69  void SetLabelsAngles (Double_t a1, Double_t a2, Double_t a3);
70 
71  ClassDef(TGLAxis,0) // a GL Axis
72 };
73 
74 #endif