Logo ROOT   6.07/09
Reference Guide
List of all members | Public Member Functions | Static Private Member Functions | Private Attributes | Static Private Attributes | List of all members
TGLFormat Class Reference

Encapsulation of format / contents of an OpenGL buffer.

Definition at line 35 of file TGLFormat.h.

Public Member Functions

 TGLFormat ()
 
 TGLFormat (Rgl::EFormatOptions options)
 Define surface using options. More...
 
virtual ~TGLFormat ()
 Destructor. More...
 
Int_t GetAccumSize () const
 Get the size of accum buffer. More...
 
Int_t GetDepthSize () const
 Get the size of depth buffer. More...
 
Int_t GetSamples () const
 Get the number of samples for multi-sampling. More...
 
Int_t GetStencilSize () const
 Get the size of stencil buffer. More...
 
Bool_t HasAccumBuffer () const
 Check, if this surface has accumulation buffer. More...
 
Bool_t HasDepth () const
 Check, if this surface has depth buffer. More...
 
Bool_t HasMultiSampling () const
 Check, if multi-sampling is required. More...
 
Bool_t HasStencil () const
 Check, if this surface has stencil buffer. More...
 
Bool_t IsDoubleBuffered () const
 Check, if the surface is double buffered. More...
 
Bool_t IsStereo () const
 Check, if the surface is stereo buffered. More...
 
Bool_t operator!= (const TGLFormat &rhs) const
 Check for non-equality. More...
 
Bool_t operator== (const TGLFormat &rhs) const
 Check if two formats are equal. More...
 
void SetAccumSize (Int_t accum)
 Set the size of accum buffer. More...
 
void SetDepthSize (Int_t depth)
 Set the size of color buffer. More...
 
void SetDoubleBuffered (Bool_t db)
 Set the surface as double/single buffered. More...
 
void SetSamples (Int_t samples)
 Set the number of samples for multi-sampling. More...
 
void SetStencilSize (Int_t stencil)
 Set the size of stencil buffer. More...
 
void SetStereo (Bool_t db)
 Set the surface as stereo/non-stereo buffered. More...
 

Static Private Member Functions

static Int_t GetDefaultSamples ()
 Return default number of samples for multi-sampling. More...
 
static void InitAvailableSamples ()
 

Private Attributes

Int_t fAccumSize
 
Int_t fDepthSize
 
Bool_t fDoubleBuffered
 
Int_t fSamples
 
Int_t fStencilSize
 
Bool_t fStereo
 

Static Private Attributes

static std::vector< Int_tfgAvailableSamples
 

#include <TGLFormat.h>

Constructor & Destructor Documentation

TGLFormat::TGLFormat ( )

Definition at line 36 of file TGLFormat.cxx.

TGLFormat::TGLFormat ( Rgl::EFormatOptions  options)

Define surface using options.

Definition at line 63 of file TGLFormat.cxx.

TGLFormat::~TGLFormat ( )
virtual

Destructor.

Definition at line 80 of file TGLFormat.cxx.

Member Function Documentation

Int_t TGLFormat::GetAccumSize ( ) const

Get the size of accum buffer.

Definition at line 154 of file TGLFormat.cxx.

Int_t TGLFormat::GetDefaultSamples ( )
staticprivate

Return default number of samples for multi-sampling.

Definition at line 235 of file TGLFormat.cxx.

Int_t TGLFormat::GetDepthSize ( ) const

Get the size of depth buffer.

Definition at line 104 of file TGLFormat.cxx.

Int_t TGLFormat::GetSamples ( ) const

Get the number of samples for multi-sampling.

Definition at line 211 of file TGLFormat.cxx.

Int_t TGLFormat::GetStencilSize ( ) const

Get the size of stencil buffer.

Definition at line 129 of file TGLFormat.cxx.

Bool_t TGLFormat::HasAccumBuffer ( ) const

Check, if this surface has accumulation buffer.

Definition at line 171 of file TGLFormat.cxx.

Bool_t TGLFormat::HasDepth ( ) const

Check, if this surface has depth buffer.

Definition at line 121 of file TGLFormat.cxx.

Bool_t TGLFormat::HasMultiSampling ( ) const

Check, if multi-sampling is required.

Definition at line 227 of file TGLFormat.cxx.

Bool_t TGLFormat::HasStencil ( ) const

Check, if this surface has stencil buffer.

Definition at line 146 of file TGLFormat.cxx.

void TGLFormat::InitAvailableSamples ( )
staticprivate

Definition at line 263 of file TGLFormat.cxx.

Bool_t TGLFormat::IsDoubleBuffered ( ) const

Check, if the surface is double buffered.

Definition at line 179 of file TGLFormat.cxx.

Bool_t TGLFormat::IsStereo ( ) const

Check, if the surface is stereo buffered.

Definition at line 195 of file TGLFormat.cxx.

Bool_t TGLFormat::operator!= ( const TGLFormat rhs) const

Check for non-equality.

Definition at line 96 of file TGLFormat.cxx.

Bool_t TGLFormat::operator== ( const TGLFormat rhs) const

Check if two formats are equal.

Definition at line 87 of file TGLFormat.cxx.

void TGLFormat::SetAccumSize ( Int_t  accum)

Set the size of accum buffer.

Definition at line 162 of file TGLFormat.cxx.

void TGLFormat::SetDepthSize ( Int_t  depth)

Set the size of color buffer.

Definition at line 112 of file TGLFormat.cxx.

void TGLFormat::SetDoubleBuffered ( Bool_t  db)

Set the surface as double/single buffered.

Definition at line 187 of file TGLFormat.cxx.

void TGLFormat::SetSamples ( Int_t  samples)

Set the number of samples for multi-sampling.

Definition at line 219 of file TGLFormat.cxx.

void TGLFormat::SetStencilSize ( Int_t  stencil)

Set the size of stencil buffer.

Definition at line 137 of file TGLFormat.cxx.

void TGLFormat::SetStereo ( Bool_t  db)

Set the surface as stereo/non-stereo buffered.

Definition at line 203 of file TGLFormat.cxx.

Member Data Documentation

Int_t TGLFormat::fAccumSize
private

Definition at line 41 of file TGLFormat.h.

Int_t TGLFormat::fDepthSize
private

Definition at line 40 of file TGLFormat.h.

Bool_t TGLFormat::fDoubleBuffered
private

Definition at line 38 of file TGLFormat.h.

std::vector< Int_t > TGLFormat::fgAvailableSamples
staticprivate

Definition at line 45 of file TGLFormat.h.

Int_t TGLFormat::fSamples
private

Definition at line 43 of file TGLFormat.h.

Int_t TGLFormat::fStencilSize
private

Definition at line 42 of file TGLFormat.h.

Bool_t TGLFormat::fStereo
private

Definition at line 39 of file TGLFormat.h.


The documentation for this class was generated from the following files: