library: libRGL #include "TGLUtil.h" |
TGLRect
class description - header file - source file
viewCVS header - viewCVS source
class TGLRect
Function Members (Methods)
Display options:
public:
| TGLRect() |
| TGLRect(const TGLRect&) |
| TGLRect(Int_t x, Int_t y, UInt_t width, UInt_t height) |
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() |
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
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)
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.