ROOT 6.10/09 Reference Guide |
Public Member Functions | |
TGLRect () | |
Positive width/height. More... | |
TGLRect (Int_t x, Int_t y, Int_t width, Int_t height) | |
Construct rect object, corner (x,y), dimensions 'width', 'height'. More... | |
TGLRect (Int_t x, Int_t y, UInt_t width, UInt_t height) | |
Construct rect object, corner (x,y), dimensions 'width', 'height'. More... | |
virtual | ~TGLRect () |
Destroy rect object. More... | |
Double_t | Aspect () const |
Int_t | Bottom () const |
const Int_t * | CArr () const |
Int_t * | CArr () |
Int_t | CenterX () const |
Int_t | CenterY () const |
Int_t | Diagonal () const |
Return the diagonal of the rectangle. More... | |
void | Expand (Int_t x, Int_t y) |
Expand the rect to encompass point (x,y) More... | |
Int_t | Height () const |
Int_t & | Height () |
Int_t | Left () const |
Int_t | Longest () const |
void | Offset (Int_t dX, Int_t dY) |
Rgl::EOverlap | Overlap (const TGLRect &other) const |
Return overlap result (kInside, kOutside, kPartial) of this rect with 'other'. More... | |
Int_t | Right () const |
void | Set (Int_t x, Int_t y, Int_t width, Int_t height) |
void | SetCorner (Int_t x, Int_t y) |
Int_t | Top () const |
Int_t | Width () const |
Int_t & | Width () |
Int_t | X () const |
Int_t & | X () |
Int_t | Y () const |
Int_t & | Y () |
Private Attributes | |
Int_t | fHeight |
Int_t | fWidth |
Corner. More... | |
Int_t | fX |
Int_t | fY |
#include <TGLUtil.h>
TGLRect::TGLRect | ( | ) |
Positive width/height.
Construct empty rect object, corner (0,0), width/height 0.
Definition at line 259 of file TGLUtil.cxx.
Construct rect object, corner (x,y), dimensions 'width', 'height'.
Definition at line 267 of file TGLUtil.cxx.
Construct rect object, corner (x,y), dimensions 'width', 'height'.
Definition at line 275 of file TGLUtil.cxx.
|
virtual |
Destroy rect object.
Definition at line 284 of file TGLUtil.cxx.
Int_t TGLRect::Diagonal | ( | ) | const |
Return the diagonal of the rectangle.
Definition at line 316 of file TGLUtil.cxx.
Expand the rect to encompass point (x,y)
Definition at line 291 of file TGLUtil.cxx.
Rgl::EOverlap TGLRect::Overlap | ( | const TGLRect & | other | ) | const |
Return overlap result (kInside, kOutside, kPartial) of this rect with 'other'.
Definition at line 327 of file TGLUtil.cxx.