library: libRGL
#include "TGLUtil.h"

TGLRect


class description - header file - source file
viewCVS header - viewCVS source

class TGLRect

Inheritance Inherited Members Includes Libraries
Class Charts

Function Members (Methods)

Display options:
Show inherited
Show non-public
public:
TGLRect()
TGLRect(const TGLRect&)
TGLRect(Int_t x, Int_t y, UInt_t width, UInt_t height)
virtual~TGLRect()
Double_tAspect() const
Int_tBottom() const
Int_tCenterX() const
Int_tCenterY() const
static TClass*Class()
UInt_tDiagonal() const
voidExpand(Int_t x, Int_t y)
UInt_tHeight() const
UInt_t&Height()
virtual TClass*IsA() const
Int_tLeft() const
UInt_tLongest() const
voidOffset(Int_t dX, Int_t dY)
TGLRect&operator=(const TGLRect&)
EOverlapOverlap(const TGLRect& other) const
Int_tRight() const
voidSet(Int_t x, Int_t y, UInt_t width, UInt_t height)
voidSetCorner(Int_t x, Int_t y)
virtual voidShowMembers(TMemberInspector& insp, char* parent)
virtual voidStreamer(TBuffer& b)
voidStreamerNVirtual(TBuffer& b)
Int_tTop() const
UInt_tWidth() const
UInt_t&Width()
Int_tX() const
Int_t&X()
Int_tY() const
Int_t&Y()

Data Members

private:
Int_tfX
Int_tfY! Corner
UInt_tfWidth
UInt_tfHeight! Positive width/height

Class Description

                                                                      
 TGLVertex3                                                           
                                                                      
 3 component (x/y/z) vertex class                                     
                                                                      
 This is part of collection of simple utility classes for GL only in  
 TGLUtil.h/cxx. These provide const and non-const accessors Arr() &   
 CArr() to a GL compatible internal field - so can be used directly   
 with OpenGL C API calls - which TVector3 etc cannot (easily).        
 They are not intended to be fully featured just provide minimum      
 required.                                                            

TGLRect()
 Construct empty rect object, corner (0,0), width/height 0
TGLRect(Int_t x, Int_t y, UInt_t width, UInt_t height)
 Construct rect object, corner (x,y), dimensions 'width', 'height'
~TGLRect()
 Destroy rect object
EOverlap Overlap(const TGLRect & other)
 Return overlap result (kInside, kOutside, kPartial) of this
 rect with 'other'
void Set(Int_t x, Int_t y, UInt_t width, UInt_t height)
______________________________________________________________________________
void SetCorner(Int_t x, Int_t y)
______________________________________________________________________________
void Offset(Int_t dX, Int_t dY)
______________________________________________________________________________
void Expand(Int_t x, Int_t y)
______________________________________________________________________________
 Expand the rect to encompass point (x,y)
UInt_t Diagonal()
______________________________________________________________________________
UInt_t Longest()
______________________________________________________________________________
Double_t Aspect()
______________________________________________________________________________
 Return aspect ratio (width/height)
Double_t X()
{ return fVals[0]; }
Double_t & X()
{ return fVals[0]; }
Double_t Y()
{ return fVals[1]; }
Double_t & Y()
{ return fVals[1]; }
TGLRect()
UInt_t Width()
{ return fWidth; }
UInt_t & Width()
{ return fWidth; }
UInt_t Height()
{ return fHeight; }
UInt_t & Height()
{ return fHeight; }
Int_t CenterX()
{ return fX + fWidth/2; }
Int_t CenterY()
{ return fY + fHeight/2; }
Int_t Left()
{ return fX; }
Int_t Right()
{ return fX + fWidth; }
Int_t Top()
{ return fY; }
Int_t Bottom()
{ return fY + fHeight; }
TGLUtil& operator=(const TGLUtil& glu)

Author: Richard Maunder 25/05/2005
Last update: root/gl:$Name: $:$Id: TGLUtil.cxx,v 1.33 2006/12/13 09:33:29 brun Exp $
Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *


ROOT page - Class index - Class Hierarchy - Top of the page

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.