Logo ROOT   6.07/09
Reference Guide
List of all members | Public Member Functions | Private Attributes | List of all members
TGLRect Class Reference

Viewport (pixel base) 2D rectangle class.

Definition at line 426 of file TGLUtil.h.

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_tCArr () const
 
Int_tCArr ()
 
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_tHeight ()
 
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_tWidth ()
 
Int_t X () const
 
Int_tX ()
 
Int_t Y () const
 
Int_tY ()
 

Private Attributes

Int_t fHeight
 
Int_t fWidth
 Corner. More...
 
Int_t fX
 
Int_t fY
 

#include <TGLUtil.h>

Constructor & Destructor Documentation

TGLRect::TGLRect ( )

Positive width/height.

Construct empty rect object, corner (0,0), width/height 0.

Definition at line 259 of file TGLUtil.cxx.

TGLRect::TGLRect ( Int_t  x,
Int_t  y,
Int_t  width,
Int_t  height 
)

Construct rect object, corner (x,y), dimensions 'width', 'height'.

Definition at line 267 of file TGLUtil.cxx.

TGLRect::TGLRect ( Int_t  x,
Int_t  y,
UInt_t  width,
UInt_t  height 
)

Construct rect object, corner (x,y), dimensions 'width', 'height'.

Definition at line 275 of file TGLUtil.cxx.

TGLRect::~TGLRect ( )
virtual

Destroy rect object.

Definition at line 284 of file TGLUtil.cxx.

Member Function Documentation

Double_t TGLRect::Aspect ( ) const
inline

Definition at line 505 of file TGLUtil.h.

Int_t TGLRect::Bottom ( ) const
inline

Definition at line 464 of file TGLUtil.h.

const Int_t* TGLRect::CArr ( ) const
inline

Definition at line 448 of file TGLUtil.h.

Int_t* TGLRect::CArr ( )
inline

Definition at line 449 of file TGLUtil.h.

Int_t TGLRect::CenterX ( ) const
inline

Definition at line 459 of file TGLUtil.h.

Int_t TGLRect::CenterY ( ) const
inline

Definition at line 460 of file TGLUtil.h.

Int_t TGLRect::Diagonal ( ) const

Return the diagonal of the rectangle.

Definition at line 316 of file TGLUtil.cxx.

void TGLRect::Expand ( Int_t  x,
Int_t  y 
)

Expand the rect to encompass point (x,y)

Definition at line 291 of file TGLUtil.cxx.

Int_t TGLRect::Height ( ) const
inline

Definition at line 457 of file TGLUtil.h.

Int_t& TGLRect::Height ( )
inline

Definition at line 458 of file TGLUtil.h.

Int_t TGLRect::Left ( ) const
inline

Definition at line 461 of file TGLUtil.h.

Int_t TGLRect::Longest ( ) const
inline

Definition at line 499 of file TGLUtil.h.

void TGLRect::Offset ( Int_t  dX,
Int_t  dY 
)
inline

Definition at line 492 of file TGLUtil.h.

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.

Int_t TGLRect::Right ( ) const
inline

Definition at line 462 of file TGLUtil.h.

void TGLRect::Set ( Int_t  x,
Int_t  y,
Int_t  width,
Int_t  height 
)
inline

Definition at line 476 of file TGLUtil.h.

void TGLRect::SetCorner ( Int_t  x,
Int_t  y 
)
inline

Definition at line 485 of file TGLUtil.h.

Int_t TGLRect::Top ( ) const
inline

Definition at line 463 of file TGLUtil.h.

Int_t TGLRect::Width ( ) const
inline

Definition at line 455 of file TGLUtil.h.

Int_t& TGLRect::Width ( )
inline

Definition at line 456 of file TGLUtil.h.

Int_t TGLRect::X ( ) const
inline

Definition at line 451 of file TGLUtil.h.

Int_t& TGLRect::X ( )
inline

Definition at line 452 of file TGLUtil.h.

Int_t TGLRect::Y ( ) const
inline

Definition at line 453 of file TGLUtil.h.

Int_t& TGLRect::Y ( )
inline

Definition at line 454 of file TGLUtil.h.

Member Data Documentation

Int_t TGLRect::fHeight
private

Definition at line 431 of file TGLUtil.h.

Int_t TGLRect::fWidth
private

Corner.

Definition at line 431 of file TGLUtil.h.

Int_t TGLRect::fX
private

Definition at line 430 of file TGLUtil.h.

Int_t TGLRect::fY
private

Definition at line 430 of file TGLUtil.h.


The documentation for this class was generated from the following files: