TGLSelectionBuffer Class Reference

#include <TGLUtil.h>

List of all members.

Public Member Functions

 TGLSelectionBuffer ()
virtual ~TGLSelectionBuffer ()
void ReadColorBuffer (Int_t width, Int_t height)
void ReadColorBuffer (Int_t x, Int_t y, Int_t width, Int_t height)
const UChar_tGetPixelColor (Int_t px, Int_t py) const
 TGLSelectionBuffer ()
virtual ~TGLSelectionBuffer ()
void ReadColorBuffer (Int_t width, Int_t height)
void ReadColorBuffer (Int_t x, Int_t y, Int_t width, Int_t height)
const UChar_tGetPixelColor (Int_t px, Int_t py) const

Private Member Functions

 TGLSelectionBuffer (const TGLSelectionBuffer &)
TGLSelectionBufferoperator= (const TGLSelectionBuffer &)
 ClassDef (TGLSelectionBuffer, 0)
 TGLSelectionBuffer (const TGLSelectionBuffer &)
TGLSelectionBufferoperator= (const TGLSelectionBuffer &)
 ClassDef (TGLSelectionBuffer, 0)

Private Attributes

std::vector< UChar_tfBuffer
Int_t fWidth
Int_t fHeight
std::vector< UChar_tfBuffer


Detailed Description

Definition at line 1129 of file TGLUtil.h.


Constructor & Destructor Documentation

TGLSelectionBuffer::TGLSelectionBuffer (  ) 

Definition at line 2478 of file TGLUtil.cxx.

TGLSelectionBuffer::~TGLSelectionBuffer (  )  [virtual]

Definition at line 2485 of file TGLUtil.cxx.

TGLSelectionBuffer::TGLSelectionBuffer ( const TGLSelectionBuffer  )  [private]

TGLSelectionBuffer::TGLSelectionBuffer (  ) 

virtual TGLSelectionBuffer::~TGLSelectionBuffer (  )  [virtual]

TGLSelectionBuffer::TGLSelectionBuffer ( const TGLSelectionBuffer  )  [private]


Member Function Documentation

void TGLSelectionBuffer::ReadColorBuffer ( Int_t  width,
Int_t  height 
)

Definition at line 2491 of file TGLUtil.cxx.

References fBuffer, fHeight, fWidth, GL_PACK_ALIGNMENT, GL_RGBA, GL_UNSIGNED_BYTE, glPixelStorei(), and glReadPixels().

Referenced by TGLPlotPainter::PlotSelected().

void TGLSelectionBuffer::ReadColorBuffer ( Int_t  x,
Int_t  y,
Int_t  width,
Int_t  height 
)

Definition at line 2502 of file TGLUtil.cxx.

References fBuffer, fHeight, fWidth, GL_PACK_ALIGNMENT, GL_RGBA, GL_UNSIGNED_BYTE, glPixelStorei(), and glReadPixels().

const UChar_t * TGLSelectionBuffer::GetPixelColor ( Int_t  px,
Int_t  py 
) const

Definition at line 2513 of file TGLUtil.cxx.

References fBuffer, and fWidth.

Referenced by TGLPlotPainter::PlotSelected().

TGLSelectionBuffer& TGLSelectionBuffer::operator= ( const TGLSelectionBuffer  )  [private]

TGLSelectionBuffer::ClassDef ( TGLSelectionBuffer  ,
 
) [private]

void TGLSelectionBuffer::ReadColorBuffer ( Int_t  width,
Int_t  height 
)

void TGLSelectionBuffer::ReadColorBuffer ( Int_t  x,
Int_t  y,
Int_t  width,
Int_t  height 
)

const UChar_t* TGLSelectionBuffer::GetPixelColor ( Int_t  px,
Int_t  py 
) const

TGLSelectionBuffer& TGLSelectionBuffer::operator= ( const TGLSelectionBuffer  )  [private]

TGLSelectionBuffer::ClassDef ( TGLSelectionBuffer  ,
 
) [private]


Member Data Documentation

std::vector<UChar_t> TGLSelectionBuffer::fBuffer [private]

Definition at line 1130 of file TGLUtil.h.

Referenced by GetPixelColor(), and ReadColorBuffer().

Int_t TGLSelectionBuffer::fWidth [private]

Definition at line 1131 of file TGLUtil.h.

Referenced by GetPixelColor(), and ReadColorBuffer().

Int_t TGLSelectionBuffer::fHeight [private]

Definition at line 1132 of file TGLUtil.h.

Referenced by ReadColorBuffer().

std::vector<UChar_t> TGLSelectionBuffer::fBuffer [private]

Definition at line 1130 of file TGLUtil.h.


The documentation for this class was generated from the following files:
Generated on Tue Jul 5 16:40:15 2011 for ROOT_528-00b_version by  doxygen 1.5.1