library: libGraf #include "TPave.h" |
TPave
class description - header file - source file - inheritance tree (.pdf)
public:
TPave()
TPave(Double_t x1, Double_t y1, Double_t x2, Double_t y2, Int_t bordersize = 4, Option_t* option = "br")
TPave(const TPave& pave)
virtual ~TPave()
static TClass* Class()
virtual void ConvertNDCtoPad()
virtual void Copy(TObject& pave) const
virtual Int_t DistancetoPrimitive(Int_t px, Int_t py)
virtual void Draw(Option_t* option = "")
virtual void DrawPave(Double_t x1, Double_t y1, Double_t x2, Double_t y2, Int_t bordersize = 4, Option_t* option = "br")
virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py)
Int_t GetBorderSize() const
Double_t GetCornerRadius() const
virtual Option_t* GetName() const
virtual Option_t* GetOption() const
Double_t GetX1NDC() const
Double_t GetX2NDC() const
Double_t GetY1NDC() const
Double_t GetY2NDC() const
virtual ULong_t Hash() const
virtual TClass* IsA() const
virtual Bool_t IsSortable() const
virtual void ls(Option_t* option = "") const
virtual void Paint(Option_t* option = "")
virtual void PaintPave(Double_t x1, Double_t y1, Double_t x2, Double_t y2, Int_t bordersize = 4, Option_t* option = "br")
virtual void PaintPaveArc(Double_t x1, Double_t y1, Double_t x2, Double_t y2, Int_t bordersize = 4, Option_t* option = "br")
virtual void Print(Option_t* option = "") const
virtual void SavePrimitive(ostream& out, Option_t* option = "")
virtual void SetBorderSize(Int_t bordersize = 4)
virtual void SetCornerRadius(Double_t rad = 0.2)
virtual void SetName(const char* name = "")
virtual void SetOption(Option_t* option = "br")
virtual void SetX1NDC(Double_t x1)
virtual void SetX2NDC(Double_t x2)
virtual void SetY1NDC(Double_t y1)
virtual void SetY2NDC(Double_t y2)
virtual void ShowMembers(TMemberInspector& insp, char* parent)
virtual void Streamer(TBuffer& b)
void StreamerNVirtual(TBuffer& b)
protected:
Double_t fX1NDC X1 point in NDC coordinates
Double_t fY1NDC Y1 point in NDC coordinates
Double_t fX2NDC X2 point in NDC coordinates
Double_t fY2NDC Y2 point in NDC coordinates
Int_t fBorderSize window box bordersize in pixels
Int_t fInit (=0 if transformation to NDC not yet done)
Double_t fCornerRadius Corner radius in case of option arc
TString fOption Pave style
TString fName Pave name
public:
static const enum TPave:: kNameIsAction
______________________________________________________________________________
a PAVE is a TBox with a bordersize and a shadow option
The corners of a TPave can be rounded (option "arc")
More functional objects like TPavelabel, TPaveText derive from TPave.
TPave()
Pave default constructor.
TPave(Double_t x1, Double_t y1,Double_t x2, Double_t y2, Int_t bordersize ,Option_t *option)
Pave normal constructor.
a PAVE is a box with a bordersize and a shadow option
the bordersize is in pixels
option = "T" Top frame
option = "B" Bottom frame
option = "R" Right frame
option = "L" Left frame
option = "NDC" x1,y1,x2,y2 are given in NDC
option = "ARC" corners are rounded
IMPORTANT NOTE:
Because TPave objects (and objects deriving from TPave) have their
master coordinate system in NDC, one cannot use the TBox functions
SetX1,SetY1,SetX2,SetY2 to change the corner coordinates. One should use
instead SetX1NDC, SetY1NDC, SetX2NDC, SetY2NDC.
~TPave()
Pave default destructor.
void ConvertNDCtoPad()
Convert pave coordinates from NDC to Pad coordinates.
Int_t DistancetoPrimitive(Int_t px, Int_t py)
Compute distance from point px,py to a pave.
Compute the closest distance of approach from point px,py to the
edges of this pave.
The distance is computed in pixels units.
void ls(Option_t *)
List this pave with its attributes.
void Paint(Option_t *option)
Paint this pave with its current attributes.
option = "T" Top frame
option = "B" Bottom frame
option = "R" Right frame
option = "L" Left frame
option = "NDC" x1,y1,x2,y2 are given in NDC
option = "ARC" corners are rounded
In case of option "ARC", the corner radius is specified
via TPave::SetCornerRadius(rad) where rad is given in percent
of the pave height (default value is 0.2).
Author: Rene Brun 16/10/95
Last update: root/graf:$Name: $:$Id: TPave.cxx,v 1.22 2006/07/03 16:10:45 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.