001 #ifndef PALETTE_H
002 #define PALETTE_H
003
004 #include <vector>
005
006 #include <TGaxis.h>
007 #include <TBox.h>
008 #include <TPad.h>
009
010 #include "Scale.h"
011
012 class Palette
013 {
014 public:
015 Palette(double x1, double y1, double x2, double y2);
016 Palette(double x1, double y1, double x2, double y2, int ncolors);
017 virtual ~Palette(void);
018
019 void draw(void);
020 void remove();
021 void update(const Scale& dataScale);
022 int colorId(double value);
023
024 private:
025 void initPalette(double x1, double y1, double x2, double y2, int nColors);
026
027 static const int DEFAULT_NCOLORS = 10;
028 static const int MAX_NCOLORS = 100;
029
030 int m_nColors;
031 int m_palette[MAX_NCOLORS];
032 double m_paletteWidth;
033 double m_paletteHeigth;
034
035 double m_min;
036 double m_max;
037
038 TGaxis* m_paxis;
039 std::vector<TBox*> m_vbox;
040
041 bool m_bIsDrawn;
042 TPad* m_pPad;
043
044 };
045
046 #endif
047
| Due to the LXR bug, the updates fail sometimes to remove references to deleted files. The Saturday's full rebuilds fix these problems |
|
This page was automatically generated by the
LXR engine.
|
|