Public Member Functions | |
TGLRect () | |
Positive width/height. | |
TGLRect (Int_t x, Int_t y, Int_t width, Int_t height) | |
Construct rect object, corner (x,y), dimensions 'width', 'height'. | |
TGLRect (Int_t x, Int_t y, UInt_t width, UInt_t height) | |
Construct rect object, corner (x,y), dimensions 'width', 'height'. | |
virtual | ~TGLRect () |
Destroy rect object. | |
Double_t | Aspect () const |
Int_t | Bottom () const |
Int_t * | CArr () |
const Int_t * | CArr () const |
Int_t | CenterX () const |
Int_t | CenterY () const |
Int_t | Diagonal () const |
Return the diagonal of the rectangle. | |
void | Expand (Int_t x, Int_t y) |
Expand the rect to encompass point (x,y) | |
Int_t & | Height () |
Int_t | Height () const |
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'. | |
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 () |
Int_t | Width () const |
Int_t & | X () |
Int_t | X () const |
Int_t & | Y () |
Int_t | Y () const |
Private Attributes | |
Int_t | fHeight |
Int_t | fWidth |
Corner. | |
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 229 of file TGLUtil.cxx.
Construct rect object, corner (x,y), dimensions 'width', 'height'.
Definition at line 237 of file TGLUtil.cxx.
Construct rect object, corner (x,y), dimensions 'width', 'height'.
Definition at line 245 of file TGLUtil.cxx.
|
virtual |
Destroy rect object.
Definition at line 254 of file TGLUtil.cxx.
Int_t TGLRect::Diagonal | ( | ) | const |
Return the diagonal of the rectangle.
Definition at line 286 of file TGLUtil.cxx.
Expand the rect to encompass point (x,y)
Definition at line 261 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 297 of file TGLUtil.cxx.