Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /include/root/TAttAxis.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 // @(#)root/base:$Id$
0002 // Author: Rene Brun   12/12/94
0003 
0004 /*************************************************************************
0005  * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers.               *
0006  * All rights reserved.                                                  *
0007  *                                                                       *
0008  * For the licensing terms see $ROOTSYS/LICENSE.                         *
0009  * For the list of contributors see $ROOTSYS/README/CREDITS.             *
0010  *************************************************************************/
0011 
0012 #ifndef ROOT_TAttAxis
0013 #define ROOT_TAttAxis
0014 
0015 #include "Rtypes.h"
0016 
0017 
0018 class TAttAxis {
0019 protected:
0020    Int_t        fNdivisions;   ///< Number of divisions(10000*n3 + 100*n2 + n1)
0021    Color_t      fAxisColor;    ///< Color of the line axis
0022    Color_t      fLabelColor;   ///< Color of labels
0023    Style_t      fLabelFont;    ///< Font for labels
0024    Float_t      fLabelOffset;  ///< Offset of labels
0025    Float_t      fLabelSize;    ///< Size of labels
0026    Float_t      fTickLength;   ///< Length of tick marks
0027    Float_t      fTitleOffset;  ///< Offset of axis title
0028    Float_t      fTitleSize;    ///< Size of axis title
0029    Color_t      fTitleColor;   ///< Color of axis title
0030    Style_t      fTitleFont;    ///< Font for axis title
0031 
0032 public:
0033    TAttAxis();
0034    virtual          ~TAttAxis();
0035    void     Copy(TAttAxis &attaxis) const;
0036    virtual Int_t    GetNdivisions()  const {return fNdivisions;}
0037    virtual Color_t  GetAxisColor()   const {return fAxisColor;}
0038    virtual Color_t  GetLabelColor()  const {return fLabelColor;}
0039    virtual Style_t  GetLabelFont()   const {return fLabelFont;}
0040    virtual Float_t  GetLabelOffset() const {return fLabelOffset;}
0041    virtual Float_t  GetLabelSize()   const {return fLabelSize;}
0042    virtual Int_t    GetMaxDigits()   const {return (Int_t)(fNdivisions/1000000);}
0043    virtual Float_t  GetTitleOffset() const {return fTitleOffset;}
0044    virtual Float_t  GetTitleSize()   const {return fTitleSize;}
0045    virtual Float_t  GetTickLength()  const {return fTickLength;}
0046    virtual Color_t  GetTitleColor()  const {return fTitleColor;}
0047    virtual Style_t  GetTitleFont()   const {return fTitleFont;}
0048    virtual void     ResetAttAxis(Option_t *option="");
0049    virtual void     SaveAttributes(std::ostream &out, const char *name, const char *subname);
0050    virtual void     SetNdivisions(Int_t n=510, Bool_t optim=kTRUE);   // *MENU*
0051    virtual void     SetNdivisions(Int_t n1, Int_t n2, Int_t n3, Bool_t optim=kTRUE);
0052    virtual void     SetAxisColor(Color_t color=1, Float_t alpha=1.);  // *MENU*
0053    virtual void     SetLabelColor(Color_t color=1, Float_t alpha=1.); // *MENU*
0054    virtual void     SetLabelFont(Style_t font=62);                    // *MENU*
0055    virtual void     SetLabelOffset(Float_t offset=0.005);             // *MENU*
0056    virtual void     SetLabelSize(Float_t size=0.04);                  // *MENU*
0057    virtual void     SetMaxDigits(Int_t maxDigits = 5);                // *MENU*
0058    virtual void     SetTickLength(Float_t length=0.03);               // *MENU*
0059    virtual void     SetTickSize(Float_t size=0.03) {SetTickLength(size);}
0060    virtual void     SetTitleOffset(Float_t offset=1);                 // *MENU*
0061    virtual void     SetTitleSize(Float_t size=0.04);                  // *MENU*
0062    virtual void     SetTitleColor(Color_t color=1);                   // *MENU*
0063    virtual void     SetTitleFont(Style_t font=62);                    // *MENU*
0064 
0065    ClassDef(TAttAxis,4);  //Axis attributes
0066 };
0067 
0068 #endif
0069