ROOT 6.12/07 Reference Guide |
GL Axis.
To draw a 3D axis in a GL window. The labels are drawn using FTGL.
Public Member Functions | |
TGLAxis () | |
Constructor. More... | |
virtual | ~TGLAxis () |
Destructor. More... | |
void | DoLabels () |
Do labels. More... | |
void | Init () |
Default initialization. More... | |
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. More... | |
void | PaintGLAxisBody () |
Paint horizontal axis body at position (0,0,0) More... | |
void | PaintGLAxisLabels () |
Paint axis labels on the main tick marks. More... | |
void | PaintGLAxisTickMarks () |
Paint axis tick marks. More... | |
void | SetGridLength (Double_t grid) |
void | SetLabelsAngles (Double_t a1, Double_t a2, Double_t a3) |
Set labels' angles. More... | |
void | SetLabelsOffset (Double_t offset) |
void | SetLabelsSize (Double_t size) |
void | SetTickMarksLength (Double_t length) |
void | SetTickMarksOrientation (Int_t tmo) |
void | TicksPositions (Option_t *opt="") |
Compute ticks positions. More... | |
void | TicksPositionsNoOpt () |
Compute ticks positions. Linear and not optimized. More... | |
void | TicksPositionsOpt () |
Compute ticks positions. Linear and optimized. More... | |
Public Member Functions inherited from TAttLine | |
TAttLine () | |
AttLine default constructor. More... | |
TAttLine (Color_t lcolor, Style_t lstyle, Width_t lwidth) | |
AttLine normal constructor. More... | |
virtual | ~TAttLine () |
AttLine destructor. More... | |
void | Copy (TAttLine &attline) const |
Copy this line attributes to a new TAttLine. More... | |
Int_t | DistancetoLine (Int_t px, Int_t py, Double_t xp1, Double_t yp1, Double_t xp2, Double_t yp2) |
Compute distance from point px,py to a line. More... | |
virtual Color_t | GetLineColor () const |
Return the line color. More... | |
virtual Style_t | GetLineStyle () const |
Return the line style. More... | |
virtual Width_t | GetLineWidth () const |
Return the line width. More... | |
virtual void | Modify () |
Change current line attributes if necessary. More... | |
virtual void | ResetAttLine (Option_t *option="") |
Reset this line attributes to default values. More... | |
virtual void | SaveLineAttributes (std::ostream &out, const char *name, Int_t coldef=1, Int_t stydef=1, Int_t widdef=1) |
Save line attributes as C++ statement(s) on output stream out. More... | |
virtual void | SetLineAttributes () |
Invoke the DialogCanvas Line attributes. More... | |
virtual void | SetLineColor (Color_t lcolor) |
Set the line color. More... | |
virtual void | SetLineColorAlpha (Color_t lcolor, Float_t lalpha) |
Set a transparent line color. More... | |
virtual void | SetLineStyle (Style_t lstyle) |
Set the line style. More... | |
virtual void | SetLineWidth (Width_t lwidth) |
Set the line width. More... | |
Public Member Functions inherited from TAttText | |
TAttText () | |
AttText default constructor. More... | |
TAttText (Int_t align, Float_t angle, Color_t color, Style_t font, Float_t tsize) | |
AttText normal constructor. More... | |
virtual | ~TAttText () |
AttText destructor. More... | |
void | Copy (TAttText &atttext) const |
Copy this text attributes to a new TAttText. More... | |
virtual Short_t | GetTextAlign () const |
Return the text alignment. More... | |
virtual Float_t | GetTextAngle () const |
Return the text angle. More... | |
virtual Color_t | GetTextColor () const |
Return the text color. More... | |
virtual Font_t | GetTextFont () const |
Return the text font. More... | |
virtual Float_t | GetTextSize () const |
Return the text size. More... | |
virtual void | Modify () |
Change current text attributes if necessary. More... | |
virtual void | ResetAttText (Option_t *toption="") |
Reset this text attributes to default values. More... | |
virtual void | SaveTextAttributes (std::ostream &out, const char *name, Int_t alidef=12, Float_t angdef=0, Int_t coldef=1, Int_t fondef=61, Float_t sizdef=1) |
Save text attributes as C++ statement(s) on output stream out. More... | |
virtual void | SetTextAlign (Short_t align=11) |
Set the text alignment. More... | |
virtual void | SetTextAngle (Float_t tangle=0) |
Set the text angle. More... | |
virtual void | SetTextAttributes () |
Invoke the DialogCanvas Text attributes. More... | |
virtual void | SetTextColor (Color_t tcolor=1) |
Set the text color. More... | |
virtual void | SetTextColorAlpha (Color_t tcolor, Float_t talpha) |
Set a transparent marker color. More... | |
virtual void | SetTextFont (Font_t tfont=62) |
Set the text font. More... | |
virtual void | SetTextSize (Float_t tsize=1) |
Set the text size. More... | |
virtual void | SetTextSizePixels (Int_t npixels) |
Set the text size in pixels. More... | |
Private Member Functions | |
TGLAxis (const TGLAxis &) | |
TGLAxis & | operator= (const TGLAxis &) |
Additional Inherited Members | |
Protected Attributes inherited from TAttLine | |
Color_t | fLineColor |
Line color. More... | |
Style_t | fLineStyle |
Line style. More... | |
Width_t | fLineWidth |
Line width. More... | |
Protected Attributes inherited from TAttText | |
Short_t | fTextAlign |
Text alignment. More... | |
Float_t | fTextAngle |
Text angle. More... | |
Color_t | fTextColor |
Text color. More... | |
Font_t | fTextFont |
Text font. More... | |
Float_t | fTextSize |
Text size. More... | |
#include <TGLAxis.h>
|
private |
TGLAxis::TGLAxis | ( | ) |
Constructor.
Definition at line 35 of file TGLAxis.cxx.
|
virtual |
Destructor.
Definition at line 66 of file TGLAxis.cxx.
void TGLAxis::DoLabels | ( | ) |
Do labels.
Definition at line 430 of file TGLAxis.cxx.
void TGLAxis::Init | ( | ) |
Default initialization.
Definition at line 43 of file TGLAxis.cxx.
void TGLAxis::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 at line 88 of file TGLAxis.cxx.
void TGLAxis::PaintGLAxisBody | ( | ) |
Paint horizontal axis body at position (0,0,0)
Definition at line 168 of file TGLAxis.cxx.
void TGLAxis::PaintGLAxisLabels | ( | ) |
Paint axis labels on the main tick marks.
Definition at line 255 of file TGLAxis.cxx.
void TGLAxis::PaintGLAxisTickMarks | ( | ) |
Paint axis tick marks.
Definition at line 185 of file TGLAxis.cxx.
Set labels' angles.
Definition at line 446 of file TGLAxis.cxx.
Compute ticks positions.
Definition at line 298 of file TGLAxis.cxx.
void TGLAxis::TicksPositionsNoOpt | ( | ) |
Compute ticks positions. Linear and not optimized.
Definition at line 331 of file TGLAxis.cxx.
void TGLAxis::TicksPositionsOpt | ( | ) |
Compute ticks positions. Linear and optimized.
Definition at line 363 of file TGLAxis.cxx.