#ifndef ROOT_TBox #define ROOT_TBox //+SEQ,CopyRight,T=NOINCLUDE. ////////////////////////////////////////////////////////////////////////// // // // TBox // // // // Box class. // // // ////////////////////////////////////////////////////////////////////////// #ifndef ROOT_TObject //*KEEP,TObject. #include "TObject.h" //*KEND. #endif #ifndef ROOT_TAttLine //*KEEP,TAttLine. #include "TAttLine.h" //*KEND. #endif #ifndef ROOT_TAttFill //*KEEP,TAttFill. #include "TAttFill.h" //*KEND. #endif class TBox : public TObject, public TAttLine, public TAttFill { protected: Coord_t fX1; //X of 1st point Coord_t fY1; //Y of 1st point Coord_t fX2; //X of 2nd point Coord_t fY2; //Y of 2nd point Bool_t fResizing; //!True if box is being resized protected: virtual Int_t DistancetoPrimitive(Int_t px, Int_t py); virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py); public: TBox(); TBox(Coord_t x1, Coord_t y1,Coord_t x2, Coord_t y2); TBox(const TBox &box); virtual ~TBox(); void Copy(TObject &box); virtual void Draw(Option_t *option=""); virtual void DrawBox(Coord_t x1, Coord_t y1, Coord_t x2, Coord_t y2); Bool_t IsBeingResized() const { return fResizing; } Coord_t GetX1() {return fX1;} Coord_t GetX2() {return fX2;} Coord_t GetY1() {return fY1;} Coord_t GetY2() {return fY2;} virtual void ls(Option_t *option=""); virtual void Paint(Option_t *option=""); virtual void PaintBox(Coord_t x1, Coord_t y1, Coord_t x2, Coord_t y2, Option_t *option=""); virtual void Print(Option_t *option=""); virtual void SavePrimitive(ofstream &out, Option_t *option); virtual void SetX1(Coord_t x1) {fX1=x1;} virtual void SetX2(Coord_t x2) {fX2=x2;} virtual void SetY1(Coord_t y1) {fY1=y1;} virtual void SetY2(Coord_t y2) {fY2=y2;} ClassDef(TBox,1) //Box class }; #endif