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 |
virtual TClass * | IsA () 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) |
virtual void | Streamer (TBuffer &) |
void | StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b) |
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 |
Static Public Member Functions | |
static TClass * | Class () |
static const char * | Class_Name () |
static constexpr Version_t | Class_Version () |
static const char * | DeclFileName () |
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 225 of file TGLUtil.cxx.
Construct rect object, corner (x,y), dimensions 'width', 'height'.
Definition at line 233 of file TGLUtil.cxx.
Construct rect object, corner (x,y), dimensions 'width', 'height'.
Definition at line 241 of file TGLUtil.cxx.
|
virtual |
Destroy rect object.
Definition at line 250 of file TGLUtil.cxx.
Int_t TGLRect::Diagonal | ( | ) | const |
Return the diagonal of the rectangle.
Definition at line 282 of file TGLUtil.cxx.
Expand the rect to encompass point (x,y)
Definition at line 257 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 293 of file TGLUtil.cxx.
|
inline |