Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
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
19class TString;
20class TGLText;
21
22class TGLAxis : public TAttLine, public TAttText {
23private:
24 TGLAxis(const TGLAxis&); // Not implemented
25 TGLAxis& operator=(const TGLAxis&); // Not implemented
26
45 Double_t fAngle1; // 1st labels' angle.
46 Double_t fAngle2; // 2nd labels' angle.
47 Double_t fAngle3; // 3rd labels' angle.
48
49public:
50 TGLAxis();
51 ~TGLAxis() override;
52
53 void PaintGLAxis (const Double_t p1[3], const Double_t p2[3],
55 Option_t *opt="");
56 void Init ();
57 void PaintGLAxisBody ();
59 void PaintGLAxisLabels ();
60 void TicksPositions (Option_t *opt="");
61 void TicksPositionsNoOpt ();
62 void TicksPositionsOpt ();
63 void DoLabels ();
68 void SetGridLength (Double_t grid){fGridLength = grid;}
69 void SetLabelsAngles (Double_t a1, Double_t a2, Double_t a3);
70
71 ClassDefOverride(TGLAxis,0) // a GL Axis
72};
73
74#endif
size_t size(const MatrixT &matrix)
retrieve the size of a square matrix
double Double_t
Definition RtypesCore.h:59
const char Option_t
Definition RtypesCore.h:66
#define ClassDefOverride(name, id)
Definition Rtypes.h:341
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char Pixmap_t Pixmap_t PictureAttributes_t attr const char char ret_data h unsigned char height h offset
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 WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char Pixmap_t Pixmap_t PictureAttributes_t attr const char char ret_data h unsigned char height h length
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t wmax
Line Attributes class.
Definition TAttLine.h:18
Text Attributes class.
Definition TAttText.h:18
GL Axis.
Definition TGLAxis.h:22
Double_t fLabelsOffset
Definition TGLAxis.h:41
Double_t * fTicks1
Definition TGLAxis.h:33
void Init()
Default initialization.
Definition TGLAxis.cxx:43
~TGLAxis() override
Destructor.
Definition TGLAxis.cxx:66
void TicksPositionsOpt()
Compute ticks positions. Linear and optimized.
Definition TGLAxis.cxx:363
void PaintGLAxis(const Double_t p1[3], const Double_t p2[3], Double_t wmin, Double_t wmax, Int_t ndiv, Option_t *opt="")
Paint GL Axis.
Definition TGLAxis.cxx:88
Double_t fTickMarksLength
Definition TGLAxis.h:39
Double_t fAxisLength
Definition TGLAxis.h:36
void PaintGLAxisBody()
Paint horizontal axis body at position (0,0,0)
Definition TGLAxis.cxx:168
void TicksPositions(Option_t *opt="")
Compute ticks positions.
Definition TGLAxis.cxx:298
TGLAxis(const TGLAxis &)
Double_t fAngle1
Definition TGLAxis.h:45
Double_t fGridLength
Definition TGLAxis.h:43
void SetGridLength(Double_t grid)
Definition TGLAxis.h:68
void SetLabelsAngles(Double_t a1, Double_t a2, Double_t a3)
Set labels' angles.
Definition TGLAxis.cxx:446
TGLAxis & operator=(const TGLAxis &)
Int_t fNDiv
Definition TGLAxis.h:27
void SetLabelsOffset(Double_t offset)
Definition TGLAxis.h:66
Int_t fNDiv3
Definition TGLAxis.h:30
void PaintGLAxisLabels()
Paint axis labels on the main tick marks.
Definition TGLAxis.cxx:255
Double_t fAngle3
Definition TGLAxis.h:47
void SetTickMarksLength(Double_t length)
Definition TGLAxis.h:64
void DoLabels()
Do labels.
Definition TGLAxis.cxx:430
TGLAxis()
Constructor.
Definition TGLAxis.cxx:35
Double_t fLabelsSize
Definition TGLAxis.h:42
void TicksPositionsNoOpt()
Compute ticks positions. Linear and not optimized.
Definition TGLAxis.cxx:331
Double_t fWmin
Definition TGLAxis.h:37
void SetTickMarksOrientation(Int_t tmo)
Definition TGLAxis.h:65
void SetLabelsSize(Double_t size)
Definition TGLAxis.h:67
Int_t fNDiv2
Definition TGLAxis.h:29
TGLText * fText
Definition TGLAxis.h:44
TString * fLabels
Definition TGLAxis.h:35
Int_t fTickMarksOrientation
Definition TGLAxis.h:40
Int_t fNDiv1
Definition TGLAxis.h:28
Double_t fWmax
Definition TGLAxis.h:38
void PaintGLAxisTickMarks()
Paint axis tick marks.
Definition TGLAxis.cxx:185
Int_t fNTicks2
Definition TGLAxis.h:32
Double_t fAngle2
Definition TGLAxis.h:46
Double_t * fTicks2
Definition TGLAxis.h:34
Int_t fNTicks1
Definition TGLAxis.h:31
GL Text.
Definition TGLText.h:19
Basic string class.
Definition TString.h:139