Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

ColorAxis.h

Go to the documentation of this file.
00001 
00020 #ifndef COLORAXIS_H
00021 #define COLORAXIS_H
00022 
00023 #include "Midad/Base/RangeAxis.h"
00024 
00025 class ColorAxis : public RangeAxis
00026 {
00027 
00028 public:
00029 
00030     // Duplicate TGaxis ctors
00031     ColorAxis(int ncolors, double width,
00032               double x1, double y1, double x2, double y2, int ndiv = 505, 
00033               Option_t* option="");
00034     ColorAxis(int ncolors, double width,
00035               RangeDouble* range, 
00036               double x1, double y1, double x2, double y2, int ndiv = 505, 
00037               Option_t* option="");
00038     virtual ~ColorAxis();
00039 
00040     // Set a scale.  The underlying range will be divided by this
00041     // number.  Default is 1.0.
00042     void SetScale(double s) { fScale = s; }
00043     double GetScale() { return fScale; }
00044 
00045     // override this so as to add color
00046     virtual void PaintAxis(double xmin, double ymin, double xmax, double ymax,
00047                            double &wmin, double &wmax, int &ndiv, Option_t *chopt="",
00048                            double unused1=0, bool unused2=kFALSE);
00049 
00050     void PaintPalette();
00051 
00052 private:
00053 
00054     // copy constructor, assignment:
00055     ColorAxis(const ColorAxis& rhs); // copy constructor
00056     ColorAxis& operator=(const ColorAxis& rhs); // assignment
00057 
00058     int fNcolors;
00059     double fWidth;
00060     double fScale;
00061 
00062     ClassDef(ColorAxis,0)
00063 };                              // end of class ColorAxis
00064 
00065 #endif  // COLORAXIS_H

Generated on Mon Feb 15 11:06:32 2010 for loon by  doxygen 1.3.9.1