#ifndef ROOT_TPave
#define ROOT_TPave
#ifndef ROOT_TBox
#include "TBox.h"
#endif
#ifndef ROOT_TString
#include "TString.h"
#endif
class TPave : public TBox {
protected:
Double_t fX1NDC;
Double_t fY1NDC;
Double_t fX2NDC;
Double_t fY2NDC;
Int_t fBorderSize;
Int_t fInit;
Int_t fShadowColor;
Double_t fCornerRadius;
TString fOption;
TString fName;
public:
enum {
kNameIsAction = BIT(11)
};
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();
void Copy(TObject &pave) const;
virtual void ConvertNDCtoPad();
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 { return fBorderSize;}
Double_t GetCornerRadius() const {return fCornerRadius;}
Option_t *GetName() const {return fName.Data();}
Option_t *GetOption() const {return fOption.Data();}
Int_t GetShadowColor() const {return fShadowColor;}
Double_t GetX1NDC() const {return fX1NDC;}
Double_t GetX2NDC() const {return fX2NDC;}
Double_t GetY1NDC() const {return fY1NDC;}
Double_t GetY2NDC() const {return fY2NDC;}
virtual ULong_t Hash() const { return fName.Hash(); }
virtual Bool_t IsSortable() const { return kTRUE; }
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) {fBorderSize = bordersize;}
virtual void SetCornerRadius(Double_t rad = 0.2) {fCornerRadius = rad;}
virtual void SetName(const char *name="") {fName = name;}
virtual void SetOption(Option_t *option="br") {fOption = option;}
virtual void SetShadowColor(Int_t color) {fShadowColor=color;}
virtual void SetX1NDC(Double_t x1) {fX1NDC=x1;}
virtual void SetX2NDC(Double_t x2) {fX2NDC=x2;}
virtual void SetY1NDC(Double_t y1) {fY1NDC=y1;}
virtual void SetY2NDC(Double_t y2) {fY2NDC=y2;}
virtual void SetX1(Double_t x1);
virtual void SetX2(Double_t x2);
virtual void SetY1(Double_t y1);
virtual void SetY2(Double_t y2);
ClassDef(TPave,3)
};
#endif