TPave


class description - source file - inheritance tree

class TPave : public TBox


    public:
TPave TPave() TPave TPave(Coord_t x1, Coord_t y1, Coord_t x2, Coord_t y2, Int_t bordersize = 4, Option_t* option = br) TPave TPave(TPave& pave) virtual void ~TPave() TClass* Class() virtual void ConvertNDCtoPad() virtual void Copy(TObject& pave) virtual void Draw(Option_t* option) virtual void DrawPave(Coord_t x1, Coord_t y1, Coord_t x2, Coord_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() Float_t GetCornerRadius() virtual Option_t* GetName() virtual Option_t* GetOption() Float_t GetX1NDC() Float_t GetX2NDC() Float_t GetY1NDC() Float_t GetY2NDC() virtual TClass* IsA() virtual void ls(Option_t* option) virtual void Paint(Option_t* option) virtual void PaintPave(Coord_t x1, Coord_t y1, Coord_t x2, Coord_t y2, Int_t bordersize = 4, Option_t* option = br) virtual void PaintPaveArc(Coord_t x1, Coord_t y1, Coord_t x2, Coord_t y2, Int_t bordersize = 4, Option_t* option = br) virtual void Print(Option_t* option) virtual void SavePrimitive(ofstream& out, Option_t* option) virtual void SetBorderSize(Int_t bordersize = 4) virtual void SetCornerRadius(Float_t rad = 0.2) virtual void SetName(Text_t* name) virtual void SetOption(Option_t* option = br) virtual void SetX1NDC(Coord_t x1) virtual void SetX2NDC(Coord_t x2) virtual void SetY1NDC(Coord_t y1) virtual void SetY2NDC(Coord_t y2) virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b)

Data Members

protected:
Float_t fX1NDC X1 point in NDC coordinates Float_t fY1NDC Y1 point in NDC coordinates Float_t fX2NDC X2 point in NDC coordinates Float_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) Float_t fCornerRadius Corner radius in case of option arc TString fOption Pave style TString fName Pave name


See also

TPaveLabel, TPaveText

Class Description

 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(): TBox()
*-*-*-*-*-*-*-*-*-*-*pave default constructor*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
*-*                  ========================

TPave(Coord_t x1, Coord_t y1,Coord_t x2, Coord_t y2, Int_t bordersize ,Option_t *option) :TBox(x1,y1,x2,y2)
*-*-*-*-*-*-*-*-*-*-*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


~TPave()
*-*-*-*-*-*-*-*-*-*-*pave default destructor*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
*-*                  =======================

TPave(const TPave &pave)

void ConvertNDCtoPad()
*-*-*-*-*-*-*Convert pave coordinates from NDC to Pad coordinates*-*-*-*-*-*
*-*          ====================================================

void Copy(TObject &obj)
*-*-*-*-*-*-*-*-*-*-*Copy this pave to pave*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
*-*                  ======================

void Draw(Option_t *option)
*-*-*-*-*-*-*-*-*-*-*Draw this pave with its current attributes*-*-*-*-*-*-*
*-*                  ==========================================

void DrawPave(Coord_t x1, Coord_t y1,Coord_t x2, Coord_t y2, Int_t bordersize ,Option_t *option)
*-*-*-*-*-*-*-*-*-*-*Draw this pave with new coordinates*-*-*-*-*-*-*-*-*-*
*-*                  ===================================

void ExecuteEvent(Int_t event, Int_t px, Int_t py)
*-*-*-*-*-*-*-*-*-*-*Execute action corresponding to one event*-*-*-*
*-*                  =========================================
  This member function is called when a PAVE object is clicked.


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).

void PaintPave(Coord_t x1, Coord_t y1,Coord_t x2, Coord_t y2, Int_t bordersize ,Option_t *option)
*-*-*-*-*-*-*-*-*-*-*Draw this pave with new coordinates*-*-*-*-*-*-*-*-*-*
*-*                  ===================================

void PaintPaveArc(Coord_t x1, Coord_t y1, Coord_t x2, Coord_t y2, Int_t, Option_t *option)
*-*-*-*-*-*-*-*-*-*-*Draw this pave with rounded corners*-*-*-*-*-*-*-*-*-*
*-*                  ===================================

void Print(Option_t *option)
*-*-*-*-*-*-*-*-*-*-*Dump this pave with its attributes*-*-*-*-*-*-*-*-*-*
*-*                  ==================================

void SavePrimitive(ofstream &out, Option_t *)
 Save primitive as a C++ statement(s) on output stream out



Inline Functions


              Int_t GetBorderSize()
            Float_t GetCornerRadius()
          Option_t* GetName()
          Option_t* GetOption()
            Float_t GetX1NDC()
            Float_t GetX2NDC()
            Float_t GetY1NDC()
            Float_t GetY2NDC()
               void SetBorderSize(Int_t bordersize = 4)
               void SetCornerRadius(Float_t rad = 0.2)
               void SetName(Text_t* name)
               void SetOption(Option_t* option = br)
               void SetX1NDC(Coord_t x1)
               void SetX2NDC(Coord_t x2)
               void SetY1NDC(Coord_t y1)
               void SetY2NDC(Coord_t y2)
            TClass* Class()
            TClass* IsA()
               void ShowMembers(TMemberInspector& insp, char* parent)
               void Streamer(TBuffer& b)


Author: Rene Brun 16/10/95
Last update: 2.22/09 13/07/99 11.37.49 by Rene Brun
Copyright (c) 1995-1999, The ROOT System, All rights reserved. *


ROOT page - Class index - 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.