library: libHistPainter
#include "TPaletteAxis.h"

TPaletteAxis


class description - header file - source file - inheritance tree (.pdf)

class TPaletteAxis : public TPave

Inheritance Chart:
TObject
TAttLine
TAttFill
<-
TBox
<-
TPave
<-
TPaletteAxis

    public:
TPaletteAxis() TPaletteAxis(Double_t x1, Double_t y1, Double_t x2, Double_t y2, TH1* h) TPaletteAxis(const TPaletteAxis& palette) virtual ~TPaletteAxis() static TClass* Class() virtual 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() virtual Option_t* GetName() const virtual char* GetObjectInfo(Int_t px, Int_t py) const virtual TClass* IsA() const virtual void Paint(Option_t* option = "") virtual void SavePrimitive(ostream& out, Option_t* option = "") virtual void SetLabelColor(Int_t labelcolor) virtual void SetLabelFont(Int_t labelfont) virtual void SetLabelOffset(Float_t labeloffset) virtual void SetLabelSize(Float_t labelsize) virtual void SetName(const char* name = "") virtual void SetTitleOffset(Float_t titleoffset = 1) virtual void SetTitleSize(Float_t titlesize) virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b) virtual void UnZoom()

Data Members


    protected:
TGaxis fAxis palette axis TH1* fH pointer to parent histogram TString fName Pave name public:
static const enum TPaletteAxis:: kHasView

Class Description

______________________________________________________________________________

 a TPaletteAxis object is used to display the color palette when
 drawing 2-d histograms.
 The object is automatically created when drawing a 2-D histogram
 when the option "z" is specified.
 The object is added to the histogram list of functions and can be retrieved
 and its attributes changed with:
  TPaletteAxis *palette = (TPaletteAxis*)h->GetListOfFunctions()->FindObject("palette");

 The palette can be interactively moved and resized. The context menu
 can be used to set the axis attributes.

 It is possible to select a range on the axis to set the min/max in z


TPaletteAxis()
 palette default constructor
TPaletteAxis(Double_t x1, Double_t y1,Double_t x2, Double_t y2, TH1 *h)
 palette normal constructor
~TPaletteAxis()
 palette destructor
TPaletteAxis(const TPaletteAxis &palette)
 palette copy constructor
void Copy(TObject &obj)
*-*-*-*-*-*-*-*-*-*-*Copy this pave to pave*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
*-*                  ======================
Int_t DistancetoPrimitive(Int_t px, Int_t py)
check if mouse on the axis region
void ExecuteEvent(Int_t event, Int_t px, Int_t py)
check if mouse on the axis region
void Paint(Option_t *)
 Paint the palette
void SavePrimitive(ostream &out, Option_t * /*= ""*/)
 Save primitive as a C++ statement(s) on output stream out.
void UnZoom()
 Unzoom the palette
void SetName(const char *name="")
void SetLabelColor(Int_t labelcolor)
void SetLabelFont(Int_t labelfont)
void SetLabelOffset(Float_t labeloffset)
void SetLabelSize(Float_t labelsize)
void SetTitleOffset(Float_t titleoffset=1)
void SetTitleSize(Float_t titlesize)

Author: Rene Brun 15/11/2002
Last update: root/histpainter:$Name: $:$Id: TPaletteAxis.cxx,v 1.18 2006/07/03 16:10:46 brun Exp $
Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *


ROOT page - Class index - Class Hierarchy - Top of the page

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.