Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
TGLRect Class Reference

Viewport (pixel base) 2D rectangle class.

Definition at line 421 of file TGLUtil.h.

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

Static Public Member Functions

static TClassClass ()
 
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>

Constructor & Destructor Documentation

◆ TGLRect() [1/3]

TGLRect::TGLRect ( )

Positive width/height.

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

Definition at line 229 of file TGLUtil.cxx.

◆ TGLRect() [2/3]

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 237 of file TGLUtil.cxx.

◆ TGLRect() [3/3]

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 245 of file TGLUtil.cxx.

◆ ~TGLRect()

TGLRect::~TGLRect ( )
virtual

Destroy rect object.

Definition at line 254 of file TGLUtil.cxx.

Member Function Documentation

◆ Aspect()

Double_t TGLRect::Aspect ( ) const
inline

Definition at line 500 of file TGLUtil.h.

◆ Bottom()

Int_t TGLRect::Bottom ( ) const
inline

Definition at line 459 of file TGLUtil.h.

◆ CArr() [1/2]

Int_t * TGLRect::CArr ( )
inline

Definition at line 444 of file TGLUtil.h.

◆ CArr() [2/2]

const Int_t * TGLRect::CArr ( ) const
inline

Definition at line 443 of file TGLUtil.h.

◆ CenterX()

Int_t TGLRect::CenterX ( ) const
inline

Definition at line 454 of file TGLUtil.h.

◆ CenterY()

Int_t TGLRect::CenterY ( ) const
inline

Definition at line 455 of file TGLUtil.h.

◆ Class()

static TClass * TGLRect::Class ( )
static
Returns
TClass describing this class

◆ Class_Name()

static const char * TGLRect::Class_Name ( )
static
Returns
Name of this class

◆ Class_Version()

static constexpr Version_t TGLRect::Class_Version ( )
inlinestaticconstexpr
Returns
Version of this class

Definition at line 467 of file TGLUtil.h.

◆ DeclFileName()

static const char * TGLRect::DeclFileName ( )
inlinestatic
Returns
Name of the file containing the class declaration

Definition at line 467 of file TGLUtil.h.

◆ Diagonal()

Int_t TGLRect::Diagonal ( ) const

Return the diagonal of the rectangle.

Definition at line 286 of file TGLUtil.cxx.

◆ Expand()

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

Expand the rect to encompass point (x,y)

Definition at line 261 of file TGLUtil.cxx.

◆ Height() [1/2]

Int_t & TGLRect::Height ( )
inline

Definition at line 453 of file TGLUtil.h.

◆ Height() [2/2]

Int_t TGLRect::Height ( ) const
inline

Definition at line 452 of file TGLUtil.h.

◆ IsA()

virtual TClass * TGLRect::IsA ( ) const
inlinevirtual
Returns
TClass describing current object

Definition at line 467 of file TGLUtil.h.

◆ Left()

Int_t TGLRect::Left ( ) const
inline

Definition at line 456 of file TGLUtil.h.

◆ Longest()

Int_t TGLRect::Longest ( ) const
inline

Definition at line 494 of file TGLUtil.h.

◆ Offset()

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

Definition at line 487 of file TGLUtil.h.

◆ Overlap()

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.

◆ Right()

Int_t TGLRect::Right ( ) const
inline

Definition at line 457 of file TGLUtil.h.

◆ Set()

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

Definition at line 471 of file TGLUtil.h.

◆ SetCorner()

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

Definition at line 480 of file TGLUtil.h.

◆ Streamer()

virtual void TGLRect::Streamer ( TBuffer )
virtual

◆ StreamerNVirtual()

void TGLRect::StreamerNVirtual ( TBuffer ClassDef_StreamerNVirtual_b)
inline

Definition at line 467 of file TGLUtil.h.

◆ Top()

Int_t TGLRect::Top ( ) const
inline

Definition at line 458 of file TGLUtil.h.

◆ Width() [1/2]

Int_t & TGLRect::Width ( )
inline

Definition at line 451 of file TGLUtil.h.

◆ Width() [2/2]

Int_t TGLRect::Width ( ) const
inline

Definition at line 450 of file TGLUtil.h.

◆ X() [1/2]

Int_t & TGLRect::X ( )
inline

Definition at line 447 of file TGLUtil.h.

◆ X() [2/2]

Int_t TGLRect::X ( ) const
inline

Definition at line 446 of file TGLUtil.h.

◆ Y() [1/2]

Int_t & TGLRect::Y ( )
inline

Definition at line 449 of file TGLUtil.h.

◆ Y() [2/2]

Int_t TGLRect::Y ( ) const
inline

Definition at line 448 of file TGLUtil.h.

Member Data Documentation

◆ fHeight

Int_t TGLRect::fHeight
private

Definition at line 426 of file TGLUtil.h.

◆ fWidth

Int_t TGLRect::fWidth
private

Corner.

Definition at line 426 of file TGLUtil.h.

◆ fX

Int_t TGLRect::fX
private

Definition at line 425 of file TGLUtil.h.

◆ fY

Int_t TGLRect::fY
private

Definition at line 425 of file TGLUtil.h.

Libraries for TGLRect:

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