library: libRGL
#include "TGLUtil.h"

TGLRect


class description - header file - source file - inheritance tree (.pdf)

class TGLRect

Inheritance Chart:
TGLRect

    public:
TGLRect() TGLRect(Int_t x, Int_t y, UInt_t width, UInt_t height) TGLRect(const TGLRect&) virtual ~TGLRect() Double_t Aspect() const Int_t Bottom() const Int_t CenterX() const Int_t CenterY() const static TClass* Class() UInt_t Diagonal() const void Expand(Int_t x, Int_t y) UInt_t Height() const UInt_t& Height() virtual TClass* IsA() const Int_t Left() const UInt_t Longest() const void Offset(Int_t dX, Int_t dY) TGLRect& operator=(const TGLRect&) EOverlap Overlap(const TGLRect& other) const Int_t Right() const void Set(Int_t x, Int_t y, UInt_t width, UInt_t height) void SetCorner(Int_t x, Int_t y) virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b) Int_t Top() const UInt_t Width() const UInt_t& Width() Int_t X() const Int_t& X() Int_t Y() const Int_t& Y()

Data Members

    private:
Int_t fX Int_t fY ! Corner UInt_t fWidth UInt_t fHeight ! 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(Double_t x, Double_t y, Double_t z)
Double_t X()
Double_t & X()
Double_t Y()
Double_t & Y()
TGLRect()
void SetCorner(Int_t x, Int_t y)
void Offset(Int_t dX, Int_t dY)
void Expand(Int_t x, Int_t y)
UInt_t Width()
UInt_t & Width()
UInt_t Height()
UInt_t & Height()
Int_t CenterX()
Int_t CenterY()
Int_t Left()
Int_t Right()
Int_t Top()
Int_t Bottom()
UInt_t Diagonal()
UInt_t Longest()
Double_t Aspect()

Author: Richard Maunder 25/05/2005
Last update: root/gl:$Name: $:$Id: TGLUtil.cxx,v 1.27 2006/06/13 15:43:39 couet 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.