ROOT logo
// $Id: THealPaletteAxis.h,v 1.1 2008/07/09 11:50:10 oxon Exp $
// Author: Akira Okumura 2008/07/09

/*****************************************************************************
   Copyright (C) 2008-, Akira Okumura
   All rights reserved.
******************************************************************************/

#ifndef T_HEAL_PALETTE_AXIS
#define T_HEAL_PALETTE_AXIS


//////////////////////////////////////////////////////////////////////////
//                                                                      //
// THealPaletteAxis                                                     //
//                                                                      //
// class used to display a color palette axis for 2-d plots             //
//                                                                      //
//////////////////////////////////////////////////////////////////////////

#include "TPave.h"
#include "TGaxis.h"

class THealPix;

class THealPaletteAxis : public TPave {

protected:
   TGaxis    fAxis; //palette axis
   THealPix* fHeal; //pointer to parent histogram
   TString   fName; //Pave name

public:
   // THealPaletteAxis status bits
   enum { kHasView   = BIT(11)};

   THealPaletteAxis();
   THealPaletteAxis(Double_t x1, Double_t y1, Double_t x2 ,Double_t y2, THealPix* hp);
   THealPaletteAxis(const THealPaletteAxis& palette);
   virtual ~THealPaletteAxis();
   void          Copy(TObject &palette) const;
   virtual Int_t DistancetoPrimitive(Int_t px, Int_t py);
   virtual void  ExecuteEvent(Int_t event, Int_t px, Int_t py);
   TGaxis*       GetAxis() {return &fAxis;}
   Option_t*     GetName() const {return fName.Data();}
   virtual char* GetObjectInfo(Int_t px, Int_t py) const;
   virtual void  Paint(Option_t* option = "");
   virtual void  SavePrimitive(std::ostream& out, Option_t* option = "");
   virtual void  SetName(const char* name = "") {fName = name;} // *MENU*
   virtual void  SetLabelColor(Int_t labelcolor) {fAxis.SetLabelColor(labelcolor);} // *MENU*
   virtual void  SetLabelFont(Int_t labelfont) {fAxis.SetLabelFont(labelfont);} // *MENU*
   virtual void  SetLabelOffset(Float_t labeloffset) {fAxis.SetLabelOffset(labeloffset);} // *MENU*
   virtual void  SetLabelSize(Float_t labelsize) {fAxis.SetLabelSize(labelsize);} // *MENU*
   virtual void  SetTitleOffset(Float_t titleoffset = 1) {fAxis.SetTitleOffset(titleoffset);} // *MENU*
   virtual void  SetTitleSize(Float_t titlesize) {fAxis.SetTitleSize(titlesize);} // *MENU*
   virtual void  SetLineColor(Color_t linecolor) {fAxis.SetLineColor(linecolor);} // *MENU*
   virtual void  SetLineWidth(Width_t linewidth) {fAxis.SetLineWidth(linewidth);} // *MENU*
   virtual void  UnZoom();  // *MENU*

   ClassDef(THealPaletteAxis, 1)  //class used to display a color palette axis for HEALPix
};

#endif // T_HEAL_PALETTE_AXIS
 THealPaletteAxis.h:1
 THealPaletteAxis.h:2
 THealPaletteAxis.h:3
 THealPaletteAxis.h:4
 THealPaletteAxis.h:5
 THealPaletteAxis.h:6
 THealPaletteAxis.h:7
 THealPaletteAxis.h:8
 THealPaletteAxis.h:9
 THealPaletteAxis.h:10
 THealPaletteAxis.h:11
 THealPaletteAxis.h:12
 THealPaletteAxis.h:13
 THealPaletteAxis.h:14
 THealPaletteAxis.h:15
 THealPaletteAxis.h:16
 THealPaletteAxis.h:17
 THealPaletteAxis.h:18
 THealPaletteAxis.h:19
 THealPaletteAxis.h:20
 THealPaletteAxis.h:21
 THealPaletteAxis.h:22
 THealPaletteAxis.h:23
 THealPaletteAxis.h:24
 THealPaletteAxis.h:25
 THealPaletteAxis.h:26
 THealPaletteAxis.h:27
 THealPaletteAxis.h:28
 THealPaletteAxis.h:29
 THealPaletteAxis.h:30
 THealPaletteAxis.h:31
 THealPaletteAxis.h:32
 THealPaletteAxis.h:33
 THealPaletteAxis.h:34
 THealPaletteAxis.h:35
 THealPaletteAxis.h:36
 THealPaletteAxis.h:37
 THealPaletteAxis.h:38
 THealPaletteAxis.h:39
 THealPaletteAxis.h:40
 THealPaletteAxis.h:41
 THealPaletteAxis.h:42
 THealPaletteAxis.h:43
 THealPaletteAxis.h:44
 THealPaletteAxis.h:45
 THealPaletteAxis.h:46
 THealPaletteAxis.h:47
 THealPaletteAxis.h:48
 THealPaletteAxis.h:49
 THealPaletteAxis.h:50
 THealPaletteAxis.h:51
 THealPaletteAxis.h:52
 THealPaletteAxis.h:53
 THealPaletteAxis.h:54
 THealPaletteAxis.h:55
 THealPaletteAxis.h:56
 THealPaletteAxis.h:57
 THealPaletteAxis.h:58
 THealPaletteAxis.h:59
 THealPaletteAxis.h:60
 THealPaletteAxis.h:61
 THealPaletteAxis.h:62
 THealPaletteAxis.h:63