GL Axis.
To draw a 3D axis in a GL window. The labels are drawn using FTGL.
Public Member Functions | |
| TGLAxis () | |
| Constructor. | |
| ~TGLAxis () override | |
| Destructor. | |
| void | Copy (TAttLine &attline) const |
| Copy this line attributes to a new TAttLine. | |
| void | Copy (TAttText &atttext) const |
| Copy this text attributes to a new TAttText. | |
| 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. | |
| void | DoLabels () |
| Do labels. | |
| virtual Color_t | GetLineColor () const |
| Return the line color. | |
| virtual Style_t | GetLineStyle () const |
| Return the line style. | |
| virtual Width_t | GetLineWidth () const |
| Return the line width. | |
| virtual Short_t | GetTextAlign () const |
| Return the text alignment. | |
| virtual Float_t | GetTextAngle () const |
| Return the text angle. | |
| virtual Color_t | GetTextColor () const |
| Return the text color. | |
| virtual Font_t | GetTextFont () const |
| Return the text font. | |
| virtual Float_t | GetTextSize () const |
| Return the text size. | |
| virtual Float_t | GetTextSizePercent (Float_t size) |
| Return the text in percent of the pad size. | |
| virtual Float_t | GetTextSizePixels (TVirtualPad &pad) const |
| Return the text size in pixels for specified pad. | |
| virtual Float_t | GetTextSizeRelative (TVirtualPad &pad) const |
| Return the text size in relative units. | |
| void | Init () |
| Default initialization. | |
| TClass * | IsA () const override |
| virtual void | Modify () |
| Change current line attributes if necessary. | |
| virtual void | Modify () |
| Change current text attributes if necessary. | |
| virtual void | ModifyOn (TVirtualPad &pad) |
| Change current line attributes on specified pad. | |
| virtual void | ModifyOn (TVirtualPad &pad) |
| Change current text attributes if necessary on specified pad. | |
| 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. | |
| void | PaintGLAxisBody () |
| Paint horizontal axis body at position (0,0,0) | |
| void | PaintGLAxisLabels () |
| Paint axis labels on the main tick marks. | |
| void | PaintGLAxisTickMarks () |
| Paint axis tick marks. | |
| virtual void | ResetAttLine (Option_t *option="") |
| Reset this line attributes to default values. | |
| virtual void | ResetAttText (Option_t *toption="") |
| Reset this text attributes to default values. | |
| 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. | |
| 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. | |
| void | SetGridLength (Double_t grid) |
| void | SetLabelsAngles (Double_t a1, Double_t a2, Double_t a3) |
| Set labels' angles. | |
| void | SetLabelsOffset (Double_t offset) |
| void | SetLabelsSize (Double_t size) |
| virtual void | SetLineAttributes () |
| Invoke the DialogCanvas Line attributes. | |
| virtual void | SetLineColor (Color_t lcolor) |
| Set the line color. | |
| void | SetLineColor (TColorNumber lcolor) |
| virtual void | SetLineColorAlpha (Color_t lcolor, Float_t lalpha) |
| Set a transparent line color. | |
| virtual void | SetLineStyle (Style_t lstyle) |
| Set the line style. | |
| virtual void | SetLineWidth (Width_t lwidth) |
| Set the line width. | |
| virtual void | SetTextAlign (Short_t align=11) |
| Set the text alignment. | |
| virtual void | SetTextAngle (Float_t tangle=0) |
| Set the text angle. | |
| virtual void | SetTextAttributes () |
| Invoke the DialogCanvas Text attributes. | |
| virtual void | SetTextColor (Color_t tcolor=1) |
| Set the text color. | |
| void | SetTextColor (TColorNumber lcolor) |
| virtual void | SetTextColorAlpha (Color_t tcolor, Float_t talpha) |
| Set a transparent text color. | |
| virtual void | SetTextFont (Font_t tfont=62) |
| Set the text font. | |
| virtual void | SetTextSize (Float_t tsize=1) |
| Set the text size. | |
| virtual void | SetTextSizePixels (Int_t npixels) |
| Set the text size in pixel. | |
| void | SetTickMarksLength (Double_t length) |
| void | SetTickMarksOrientation (Int_t tmo) |
| void | Streamer (TBuffer &) override |
| void | StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b) |
| void | TicksPositions (Option_t *opt="") |
| Compute ticks positions. | |
| void | TicksPositionsNoOpt () |
| Compute ticks positions. Linear and not optimized. | |
| void | TicksPositionsOpt () |
| Compute ticks positions. Linear and optimized. | |
Static Public Member Functions | |
| static TClass * | Class () |
| static const char * | Class_Name () |
| static constexpr Version_t | Class_Version () |
| static const char * | DeclFileName () |
Protected Attributes | |
| Color_t | fLineColor |
| Line color. | |
| Style_t | fLineStyle |
| Line style. | |
| Width_t | fLineWidth |
| Line width. | |
| Short_t | fTextAlign |
| Text alignment. | |
| Float_t | fTextAngle |
| Text angle. | |
| Color_t | fTextColor |
| Text color. | |
| Font_t | fTextFont |
| Text font. | |
| Float_t | fTextSize |
| Text size. | |
Private Member Functions | |
| TGLAxis (const TGLAxis &)=delete | |
| TGLAxis & | operator= (const TGLAxis &)=delete |
#include <TGLAxis.h>
| TGLAxis::TGLAxis | ( | ) |
Constructor.
Definition at line 34 of file TGLAxis.cxx.
|
override |
Destructor.
Definition at line 65 of file TGLAxis.cxx.
|
inherited |
Copy this line attributes to a new TAttLine.
Definition at line 176 of file TAttLine.cxx.
|
inherited |
Copy this text attributes to a new TAttText.
Definition at line 300 of file TAttText.cxx.
|
inherited |
Compute distance from point px,py to a line.
Compute the closest distance of approach from point px,py to this line. The distance is computed in pixels units.
Algorithm:
Definition at line 210 of file TAttLine.cxx.
| void TGLAxis::DoLabels | ( | ) |
Do labels.
Definition at line 429 of file TGLAxis.cxx.
Return the line color.
Reimplemented in TGraphMultiErrors, and TGWin32VirtualXProxy.
Definition at line 36 of file TAttLine.h.
Return the line style.
Reimplemented in TGraphMultiErrors, TGWin32, TGWin32VirtualXProxy, and TGX11.
Definition at line 37 of file TAttLine.h.
Return the line width.
Reimplemented in TGraphMultiErrors, TGWin32, TGWin32VirtualXProxy, and TGX11.
Definition at line 38 of file TAttLine.h.
Return the text alignment.
Reimplemented in TGWin32VirtualXProxy.
Definition at line 35 of file TAttText.h.
Return the text angle.
Reimplemented in TGWin32VirtualXProxy.
Definition at line 36 of file TAttText.h.
Return the text color.
Reimplemented in TGWin32VirtualXProxy.
Definition at line 37 of file TAttText.h.
Return the text font.
Reimplemented in TGWin32VirtualXProxy.
Definition at line 38 of file TAttText.h.
Return the text size.
Reimplemented in TGWin32VirtualXProxy.
Definition at line 39 of file TAttText.h.
Return the text in percent of the pad size.
Return the text size in percent of the pad size.
If the font precision is greater than 2, the text size returned is the size in pixel converted into percent of the pad size, otherwise the size returned is the same as the size given as input parameter.
Definition at line 316 of file TAttText.cxx.
|
virtualinherited |
Return the text size in pixels for specified pad.
Return the text size in pixels for the specified pad.
If the font precision less than 3 size defined as percent of pad size and scaled to minimal pad size
Definition at line 350 of file TAttText.cxx.
|
virtualinherited |
Return the text size in relative units.
If the font precision grater then 2 use pad dimensions to get value
Definition at line 333 of file TAttText.cxx.
| void TGLAxis::Init | ( | ) |
Default initialization.
Definition at line 42 of file TGLAxis.cxx.
|
inlineoverridevirtual |
|
virtualinherited |
Change current line attributes if necessary.
Definition at line 246 of file TAttLine.cxx.
|
virtualinherited |
Change current text attributes if necessary.
Definition at line 364 of file TAttText.cxx.
|
virtualinherited |
Change current line attributes on specified pad.
Definition at line 255 of file TAttLine.cxx.
|
virtualinherited |
Change current text attributes if necessary on specified pad.
Definition at line 373 of file TAttText.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 87 of file TGLAxis.cxx.
| void TGLAxis::PaintGLAxisBody | ( | ) |
Paint horizontal axis body at position (0,0,0)
Definition at line 167 of file TGLAxis.cxx.
| void TGLAxis::PaintGLAxisLabels | ( | ) |
Paint axis labels on the main tick marks.
Definition at line 254 of file TGLAxis.cxx.
| void TGLAxis::PaintGLAxisTickMarks | ( | ) |
Paint axis tick marks.
Definition at line 184 of file TGLAxis.cxx.
|
virtualinherited |
Reset this line attributes to default values.
Reimplemented in TGWin32VirtualXProxy.
Definition at line 279 of file TAttLine.cxx.
|
virtualinherited |
Reset this text attributes to default values.
Reimplemented in TGWin32VirtualXProxy.
Definition at line 387 of file TAttText.cxx.
|
virtualinherited |
Save line attributes as C++ statement(s) on output stream out.
Definition at line 289 of file TAttLine.cxx.
|
virtualinherited |
Save text attributes as C++ statement(s) on output stream out.
Definition at line 399 of file TAttText.cxx.
Set labels' angles.
Definition at line 445 of file TGLAxis.cxx.
|
virtualinherited |
Invoke the DialogCanvas Line attributes.
Reimplemented in TGWin32VirtualXProxy.
Definition at line 306 of file TAttLine.cxx.
Set the line color.
Reimplemented in TEveTrackList, ROOT::Experimental::REveTrackList, TVirtualX, TGQuartz, TGWin32, TGWin32VirtualXProxy, TGX11, TPDF, TPostScript, TSVG, TTeXDump, TEveLine, TEveStraightLineSet, ROOT::Experimental::REveLine, ROOT::Experimental::REveStraightLineSet, TParallelCoordRange, TSpider, TGraphMultiErrors, TGeoVolume, and TGeoVolumeMulti.
Definition at line 44 of file TAttLine.h.
|
inherited |
Definition at line 322 of file TAttLine.cxx.
Set a transparent line color.
| lcolor | defines the line color |
| lalpha | defines the percentage of opacity from 0. (fully transparent) to 1. (fully opaque). |
Reimplemented in TGraphMultiErrors.
Definition at line 317 of file TAttLine.cxx.
Set the line style.
Reimplemented in TVirtualX, TGQuartz, TGWin32, TGWin32VirtualXProxy, TGX11, TPDF, TPostScript, TSVG, TTeXDump, TGraphMultiErrors, TGeoVolume, TGeoVolumeMulti, TEveLine, ROOT::Experimental::REveLine, TEveTrackList, ROOT::Experimental::REveTrackList, and TSpider.
Definition at line 46 of file TAttLine.h.
Set the line width.
Reimplemented in TPDF, TPostScript, TSVG, TTeXDump, TGraphMultiErrors, TGeoVolume, TGeoVolumeMulti, TEveLine, ROOT::Experimental::REveLine, TEveTrackList, ROOT::Experimental::REveTrackList, TParallelCoordRange, TSpider, TVirtualX, TGQuartz, TGWin32, TGWin32VirtualXProxy, TGX11, and TPaletteAxis.
Definition at line 47 of file TAttLine.h.
Set the text alignment.
Reimplemented in TVirtualX, TGQuartz, TGWin32, TGWin32VirtualXProxy, and TGX11.
Definition at line 48 of file TAttText.h.
Set the text angle.
Reimplemented in TGWin32VirtualXProxy, and TGraphNode.
Definition at line 49 of file TAttText.h.
|
virtualinherited |
Invoke the DialogCanvas Text attributes.
Reimplemented in TGWin32VirtualXProxy.
Definition at line 418 of file TAttText.cxx.
Set the text color.
Reimplemented in TVirtualX, TGQuartz, TGWin32, TGX11, TPDF, TPostScript, TSVG, TTeXDump, and TGWin32VirtualXProxy.
Definition at line 50 of file TAttText.h.
|
inherited |
Definition at line 453 of file TAttText.cxx.
Set a transparent text color.
| tcolor | defines the text color |
| talpha | defines the percentage of opacity from 0. (fully transparent) to 1. (fully opaque). |
Definition at line 430 of file TAttText.cxx.
Set the text font.
Reimplemented in TVirtualX, TGQuartz, TGWin32, TGX11, and TGWin32VirtualXProxy.
Definition at line 52 of file TAttText.h.
Set the text size.
Reimplemented in TVirtualX, TGQuartz, TGWin32, TGX11, and TGWin32VirtualXProxy.
Definition at line 53 of file TAttText.h.
|
virtualinherited |
Set the text size in pixel.
Set the text size in pixels.
If the font precision is greater than 2, the text size is set to npixels, otherwise the text size is computed as a percent of the pad size.
Reimplemented in TGWin32VirtualXProxy.
Definition at line 441 of file TAttText.cxx.
|
inline |
| void TGLAxis::TicksPositions | ( | Option_t * | opt = "" | ) |
Compute ticks positions.
Definition at line 297 of file TGLAxis.cxx.
| void TGLAxis::TicksPositionsNoOpt | ( | ) |
Compute ticks positions. Linear and not optimized.
Definition at line 330 of file TGLAxis.cxx.
| void TGLAxis::TicksPositionsOpt | ( | ) |
Compute ticks positions. Linear and optimized.
Definition at line 362 of file TGLAxis.cxx.
|
protectedinherited |
Line color.
Definition at line 24 of file TAttLine.h.
|
protectedinherited |
Line style.
Definition at line 25 of file TAttLine.h.
|
protectedinherited |
Line width.
Definition at line 26 of file TAttLine.h.
|
protectedinherited |
Text alignment.
Definition at line 26 of file TAttText.h.
|
protectedinherited |
Text angle.
Definition at line 24 of file TAttText.h.
|
protectedinherited |
Text color.
Definition at line 27 of file TAttText.h.
|
protectedinherited |
Text font.
Definition at line 28 of file TAttText.h.
|
protectedinherited |
Text size.
Definition at line 25 of file TAttText.h.