static const double x2[5]
static const double x1[5]
#define ClassDef(name, id)
Abstract base class for elements drawn in the editor.
Fill Area Attributes class.
virtual Rectangle_t GetBBox()
Return the "bounding Box" of the Box.
virtual void SetBBoxY1(const Int_t y)
Set top of BoundingBox to a value (resize in y direction on top)
virtual void SetToolTipText(const char *text, Long_t delayms=1000)
Set tool tip text associated with this box.
virtual void SetY2(Double_t y2)
virtual void PaintBox(Double_t x1, Double_t y1, Double_t x2, Double_t y2, Option_t *option="")
Draw this box with new coordinates.
virtual void SetBBoxX2(const Int_t x)
Set right hand side of BoundingBox to a value (resize in x direction on right)
TBox & operator=(const TBox &)
Assignment operator.
virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py)
Execute action corresponding to one event.
Double_t fX1
X of 1st point.
virtual void ls(Option_t *option="") const
List this box with its attributes.
virtual void HideToolTip(Int_t event)
Hide tool tip depending on the event type.
virtual void SetBBoxCenter(const TPoint &p)
Set center of the Box.
virtual void SetX1(Double_t x1)
virtual void Draw(Option_t *option="")
Draw this box with its current attributes.
virtual Int_t IsInside(Double_t x, Double_t y) const
Function which returns 1 if point x,y lies inside the box, 0 otherwise.
virtual Int_t DistancetoPrimitive(Int_t px, Int_t py)
Compute distance from point px,py to a box.
virtual void SetX2(Double_t x2)
virtual ~TBox()
Box destructor.
void Copy(TObject &box) const
Copy a Box.
TBox()
Box default constructor.
virtual TBox * DrawBox(Double_t x1, Double_t y1, Double_t x2, Double_t y2)
Draw this box with new coordinates.
Bool_t IsBeingResized() const
virtual void SetBBoxY2(const Int_t y)
Set bottom of BoundingBox to a value (resize in y direction on bottom)
TObject * fTip
! tool tip associated with box
virtual void SetBBoxX1(const Int_t x)
Set left hand side of BoundingBox to a value (resize in x direction on left)
virtual void SetBBoxCenterY(const Int_t y)
Set Y coordinate of the center of the Box.
Double_t fY2
Y of 2nd point.
Double_t fX2
X of 2nd point.
Double_t fY1
Y of 1st point.
virtual void SavePrimitive(std::ostream &out, Option_t *option="")
Save primitive as a C++ statement(s) on output stream out.
Bool_t fResizing
! True if box is being resized
virtual void SetY1(Double_t y1)
virtual TPoint GetBBoxCenter()
Return the center of the Box as TPoint in pixels.
virtual void Paint(Option_t *option="")
Paint this box with its current attributes.
virtual void SetBBoxCenterX(const Int_t x)
Set X coordinate of the center of the Box.
virtual void Print(Option_t *option="") const
Dump this box with its attributes.
Mother of all ROOT objects.
void box(Int_t pat, Double_t x1, Double_t y1, Double_t x2, Double_t y2)