ROOT » GRAF3D » GL » TGLAxis

class TGLAxis: public TAttLine, public TAttText


GL Axis

To draw a 3D axis in a GL window. The labels are drawn using FTGL.
 

Function Members (Methods)

public:
virtual~TGLAxis()
static TClass*Class()
voidTAttLine::Copy(TAttLine& attline) const
Int_tTAttLine::DistancetoLine(Int_t px, Int_t py, Double_t xp1, Double_t yp1, Double_t xp2, Double_t yp2)
voidDoLabels()
virtual Color_tTAttLine::GetLineColor() const
virtual Style_tTAttLine::GetLineStyle() const
virtual Width_tTAttLine::GetLineWidth() const
virtual Short_tTAttText::GetTextAlign() const
virtual Float_tTAttText::GetTextAngle() const
virtual Color_tTAttText::GetTextColor() const
virtual Font_tTAttText::GetTextFont() const
virtual Float_tTAttText::GetTextSize() const
voidInit()
virtual TClass*IsA() const
virtual voidTAttLine::Modify()
voidPaintGLAxis(const Double_t[3] p1, const Double_t[3] p2, Double_t wmin, Double_t wmax, Int_t ndiv, Option_t* opt = "")
voidPaintGLAxisBody()
voidPaintGLAxisLabels()
voidPaintGLAxisTickMarks()
virtual voidTAttLine::ResetAttLine(Option_t* option = "")
virtual voidTAttText::ResetAttText(Option_t* toption = "")
virtual voidTAttLine::SaveLineAttributes(ostream& out, const char* name, Int_t coldef = 1, Int_t stydef = 1, Int_t widdef = 1)
virtual voidTAttText::SaveTextAttributes(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)
voidSetGridLength(Double_t grid)
voidSetLabelsAngles(Double_t a1, Double_t a2, Double_t a3)
voidSetLabelsOffset(Double_t offset)
voidSetLabelsSize(Double_t size)
virtual voidTAttLine::SetLineAttributes()MENU
virtual voidTAttLine::SetLineColor(Color_t lcolor)
virtual voidTAttLine::SetLineColorAlpha(Color_t lcolor, Float_t lalpha)
virtual voidTAttLine::SetLineStyle(Style_t lstyle)
virtual voidTAttLine::SetLineWidth(Width_t lwidth)
virtual voidTAttText::SetTextAlign(Short_t align = 11)
virtual voidTAttText::SetTextAngle(Float_t tangle = 0)MENU
virtual voidTAttText::SetTextAttributes()MENU
virtual voidTAttText::SetTextColor(Color_t tcolor = 1)
virtual voidTAttText::SetTextColorAlpha(Color_t tcolor, Float_t talpha)
virtual voidTAttText::SetTextFont(Font_t tfont = 62)
virtual voidTAttText::SetTextSize(Float_t tsize = 1)
virtual voidTAttText::SetTextSizePixels(Int_t npixels)
voidSetTickMarksLength(Double_t length)
voidSetTickMarksOrientation(Int_t tmo)
virtual voidShowMembers(TMemberInspector& insp) const
virtual voidStreamer(TBuffer&)
voidStreamerNVirtual(TBuffer& ClassDef_StreamerNVirtual_b)
TGLAxis()
voidTicksPositions(Option_t* opt = "")
voidTicksPositionsNoOpt()
voidTicksPositionsOpt()
private:
TGLAxis&operator=(const TGLAxis&)
TGLAxis(const TGLAxis&)

Data Members

private:
Double_tfAngle11st labels' angle.
Double_tfAngle22nd labels' angle.
Double_tfAngle33rd labels' angle.
Double_tfAxisLength
Double_tfGridLength
TString*fLabels
Double_tfLabelsOffset
Double_tfLabelsSize
Int_tfNDiv
Int_tfNDiv1
Int_tfNDiv2
Int_tfNDiv3
Int_tfNTicks1
Int_tfNTicks2
TGLText*fText
Double_tfTickMarksLength
Int_tfTickMarksOrientation
Double_t*fTicks1
Double_t*fTicks2
Double_tfWmax
Double_tfWmin

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

TGLAxis()
 Constructor.
void Init()
 Default initialization.
~TGLAxis()
 Destructor.
void PaintGLAxis(const Double_t[3] p1, const Double_t[3] p2, Double_t wmin, Double_t wmax, Int_t ndiv, Option_t* opt = "")
 Paint GL Axis.

 p1, p2     : Axis position in the 3D space.
 wmin, wmax : Minimum and maximum values along the axis. wmin < wmax.
 ndiv       : Number of axis divisions. It is an integer in the form
              "ttsspp" where "tt" is the number of tertiary divisions,
              "ss" is the number of secondary divisions and "pp" the
              number of primary divisions.
 opt        : Options.
              "N" - By default the number of divisions is optimized to
                    get a nice labeling. When option "N" is given, the
                    number of divisions is not optimized.
void PaintGLAxisBody()
 Paint horizontal axis body at position (0,0,0)
void PaintGLAxisTickMarks()
 Paint axis tick marks.
void PaintGLAxisLabels()
 Paint axis labels on the main tick marks.
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.
void DoLabels()
 Do labels.
void SetLabelsAngles(Double_t a1, Double_t a2, Double_t a3)
 Set labels' angles.
TGLAxis(const TGLAxis& )
TGLAxis& operator=(const TGLAxis& )
void SetTickMarksLength(Double_t length)
{fTickMarksLength = length;}
void SetTickMarksOrientation(Int_t tmo)
void SetLabelsOffset(Double_t offset)
{fLabelsOffset = offset;}
void SetLabelsSize(Double_t size)
{fLabelsSize = size;}
void SetGridLength(Double_t grid)
{fGridLength = grid;}