#include <TGLSelectBuffer.h>
Public Member Functions | |
TGLSelectBuffer () | |
virtual | ~TGLSelectBuffer () |
Int_t | GetBufSize () const |
UInt_t * | GetBuf () const |
Int_t | GetNRecords () const |
Bool_t | CanGrow () |
void | Grow () |
void | ProcessResult (Int_t glResult) |
UInt_t * | RawRecord (Int_t i) |
void | SelectRecord (TGLSelectRecordBase &rec, Int_t i) |
TGLSelectBuffer () | |
virtual | ~TGLSelectBuffer () |
Int_t | GetBufSize () const |
UInt_t * | GetBuf () const |
Int_t | GetNRecords () const |
Bool_t | CanGrow () |
void | Grow () |
void | ProcessResult (Int_t glResult) |
UInt_t * | RawRecord (Int_t i) |
void | SelectRecord (TGLSelectRecordBase &rec, Int_t i) |
Protected Types | |
typedef std::pair< UInt_t, UInt_t * > | RawRecord_t |
typedef std::vector< RawRecord_t > | vRawRecord_t |
typedef std::pair< UInt_t, UInt_t * > | RawRecord_t |
typedef std::vector< RawRecord_t > | vRawRecord_t |
Protected Attributes | |
Int_t | fBufSize |
UInt_t * | fBuf |
Int_t | fNRecords |
vRawRecord_t | fSortedRecords |
UInt_t * | fBuf |
Static Protected Attributes | |
static Int_t | fgMaxBufSize |
Definition at line 25 of file TGLSelectBuffer.h.
typedef std::pair<UInt_t, UInt_t*> TGLSelectBuffer::RawRecord_t [protected] |
Definition at line 33 of file TGLSelectBuffer.h.
typedef std::vector<RawRecord_t> TGLSelectBuffer::vRawRecord_t [protected] |
Definition at line 34 of file TGLSelectBuffer.h.
typedef std::pair<UInt_t, UInt_t*> TGLSelectBuffer::RawRecord_t [protected] |
Definition at line 33 of file TGLSelectBuffer.h.
typedef std::vector<RawRecord_t> TGLSelectBuffer::vRawRecord_t [protected] |
Definition at line 34 of file TGLSelectBuffer.h.
TGLSelectBuffer::TGLSelectBuffer | ( | ) |
Definition at line 27 of file TGLSelectBuffer.cxx.
TGLSelectBuffer::~TGLSelectBuffer | ( | ) | [virtual] |
TGLSelectBuffer::TGLSelectBuffer | ( | ) |
virtual TGLSelectBuffer::~TGLSelectBuffer | ( | ) | [virtual] |
Int_t TGLSelectBuffer::GetBufSize | ( | ) | const [inline] |
Definition at line 44 of file TGLSelectBuffer.h.
References fBufSize.
Referenced by TGLRnrCtx::BeginSelection(), and TGLRnrCtx::EndSelection().
UInt_t* TGLSelectBuffer::GetBuf | ( | ) | const [inline] |
Definition at line 45 of file TGLSelectBuffer.h.
References fBuf.
Referenced by TGLRnrCtx::BeginSelection().
Int_t TGLSelectBuffer::GetNRecords | ( | ) | const [inline] |
Definition at line 46 of file TGLSelectBuffer.h.
References fNRecords.
Referenced by TGLViewerBase::ResolveSelectRecord().
Bool_t TGLSelectBuffer::CanGrow | ( | ) |
Definition at line 44 of file TGLSelectBuffer.cxx.
References fBufSize, and fgMaxBufSize.
Referenced by TGLRnrCtx::EndSelection().
void TGLSelectBuffer::Grow | ( | ) |
Definition at line 51 of file TGLSelectBuffer.cxx.
References fBuf, fBufSize, fgMaxBufSize, and TMath::Min().
Referenced by TGLRnrCtx::EndSelection().
void TGLSelectBuffer::ProcessResult | ( | Int_t | glResult | ) |
Definition at line 61 of file TGLSelectBuffer.cxx.
References buf, fBuf, fNRecords, fSortedRecords, i, and sort().
Referenced by TGLRnrCtx::EndSelection().
Definition at line 53 of file TGLSelectBuffer.h.
References fSortedRecords.
Referenced by TGLViewer::DoSecondarySelect().
void TGLSelectBuffer::SelectRecord | ( | TGLSelectRecordBase & | rec, | |
Int_t | i | |||
) |
Definition at line 90 of file TGLSelectBuffer.cxx.
References fSortedRecords, and TGLSelectRecordBase::Set().
Referenced by TGLViewerBase::FindClosestOverlayRecord(), and TGLViewerBase::ResolveSelectRecord().
Int_t TGLSelectBuffer::GetBufSize | ( | ) | const [inline] |
UInt_t* TGLSelectBuffer::GetBuf | ( | ) | const [inline] |
Int_t TGLSelectBuffer::GetNRecords | ( | ) | const [inline] |
Bool_t TGLSelectBuffer::CanGrow | ( | ) |
void TGLSelectBuffer::Grow | ( | ) |
void TGLSelectBuffer::ProcessResult | ( | Int_t | glResult | ) |
void TGLSelectBuffer::SelectRecord | ( | TGLSelectRecordBase & | rec, | |
Int_t | i | |||
) |
Int_t TGLSelectBuffer::fBufSize [protected] |
UInt_t* TGLSelectBuffer::fBuf [protected] |
Definition at line 29 of file TGLSelectBuffer.h.
Referenced by GetBuf(), Grow(), ProcessResult(), and ~TGLSelectBuffer().
Int_t TGLSelectBuffer::fNRecords [protected] |
vRawRecord_t TGLSelectBuffer::fSortedRecords [protected] |
Definition at line 36 of file TGLSelectBuffer.h.
Referenced by ProcessResult(), RawRecord(), and SelectRecord().
static Int_t TGLSelectBuffer::fgMaxBufSize [static, protected] |
UInt_t* TGLSelectBuffer::fBuf [protected] |
Definition at line 29 of file TGLSelectBuffer.h.