ROOT logo
ROOT » GRAF3D » GL » TGLSelectionBuffer

class TGLSelectionBuffer


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.

Function Members (Methods)

public:
TGLSelectionBuffer()
virtual~TGLSelectionBuffer()
static TClass*Class()
const UChar_t*GetPixelColor(Int_t px, Int_t py) const
virtual TClass*IsA() const
voidReadColorBuffer(Int_t width, Int_t height)
voidReadColorBuffer(Int_t x, Int_t y, Int_t width, Int_t height)
virtual voidShowMembers(TMemberInspector& insp)
virtual voidStreamer(TBuffer& b)
voidStreamerNVirtual(TBuffer& b)

Data Members

private:
vector<UChar_t>fBuffer
Int_tfHeight
Int_tfWidth

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

TGLSelectionBuffer()
 TGLSelectionBuffer constructor.
~TGLSelectionBuffer()
 TGLSelectionBuffer destructor.
void ReadColorBuffer(Int_t width, Int_t height)
 Read color buffer.
void ReadColorBuffer(Int_t x, Int_t y, Int_t width, Int_t height)
 Read color buffer.
const UChar_t * GetPixelColor(Int_t px, Int_t py) const
 Get pixel color.
TGLColor& operator=(const TGLSelectionBuffer& )
TGLSelectionBuffer()