ROOT  6.07/01
Reference Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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...
 
Bool_t operator== (const TGLFormat &rhs) const
 Check if two formats are equal. More...
 
Bool_t operator!= (const TGLFormat &rhs) const
 Check for non-equality. More...
 
Int_t GetDepthSize () const
 Get the size of depth buffer. More...
 
void SetDepthSize (Int_t depth)
 Set the size of color buffer. More...
 
Bool_t HasDepth () const
 Check, if this surface has depth buffer. More...
 
Int_t GetStencilSize () const
 Get the size of stencil buffer. More...
 
void SetStencilSize (Int_t stencil)
 Set the size of stencil buffer. More...
 
Bool_t HasStencil () const
 Check, if this surface has stencil buffer. More...
 
Int_t GetAccumSize () const
 Get the size of accum buffer. More...
 
void SetAccumSize (Int_t accum)
 Set the size of accum buffer. More...
 
Bool_t HasAccumBuffer () const
 Check, if this surface has accumulation buffer. More...
 
Bool_t IsDoubleBuffered () const
 Check, if the surface is double buffered. More...
 
void SetDoubleBuffered (Bool_t db)
 Set the surface as double/single buffered. More...
 
Bool_t IsStereo () const
 Check, if the surface is stereo buffered. More...
 
void SetStereo (Bool_t db)
 Set the surface as stereo/non-stereo buffered. More...
 
Int_t GetSamples () const
 Get the number of samples for multi-sampling. More...
 
void SetSamples (Int_t samples)
 Set the number of samples for multi-sampling. More...
 
Bool_t HasMultiSampling () const
 Check, if multi-sampling is required. More...
 
 ClassDef (TGLFormat, 0)
 

Static Private Member Functions

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

Private Attributes

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

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

TGLFormat::ClassDef ( TGLFormat  ,
 
)
Int_t TGLFormat::GetAccumSize ( ) const

Get the size of accum buffer.

Definition at line 154 of file TGLFormat.cxx.

Referenced by HasAccumBuffer().

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.

Referenced by HasDepth().

Int_t TGLFormat::GetSamples ( ) const

Get the number of samples for multi-sampling.

Definition at line 211 of file TGLFormat.cxx.

Referenced by TGLViewer::GetPictureUsingFBO(), and TGLViewer::SavePictureUsingFBO().

Int_t TGLFormat::GetStencilSize ( ) const

Get the size of stencil buffer.

Definition at line 129 of file TGLFormat.cxx.

Referenced by HasStencil().

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.

Referenced by GetDefaultSamples().

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.

Referenced by TEveViewer::SwitchStereo().

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.

Referenced by TEveViewer::SpawnGLViewer(), and TEveViewer::SwitchStereo().

Member Data Documentation

Int_t TGLFormat::fAccumSize
private

Definition at line 41 of file TGLFormat.h.

Referenced by GetAccumSize(), operator==(), and SetAccumSize().

Int_t TGLFormat::fDepthSize
private

Definition at line 40 of file TGLFormat.h.

Referenced by GetDepthSize(), operator==(), and SetDepthSize().

Bool_t TGLFormat::fDoubleBuffered
private

Definition at line 38 of file TGLFormat.h.

Referenced by IsDoubleBuffered(), operator==(), and SetDoubleBuffered().

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

Definition at line 45 of file TGLFormat.h.

Referenced by GetDefaultSamples(), and InitAvailableSamples().

Int_t TGLFormat::fSamples
private

Definition at line 43 of file TGLFormat.h.

Referenced by GetSamples(), HasMultiSampling(), and SetSamples().

Int_t TGLFormat::fStencilSize
private

Definition at line 42 of file TGLFormat.h.

Referenced by GetStencilSize(), operator==(), and SetStencilSize().

Bool_t TGLFormat::fStereo
private

Definition at line 39 of file TGLFormat.h.

Referenced by IsStereo(), and SetStereo().

Collaboration diagram for TGLFormat:
[legend]

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