TGLLevelPalette Class Reference

#include <TGLUtil.h>

List of all members.

Public Member Functions

 TGLLevelPalette ()
Bool_t GeneratePalette (UInt_t paletteSize, const Rgl::Range_t &zRange, Bool_t checkSize=kTRUE)
void SetContours (const std::vector< Double_t > *contours)
void EnableTexture (Int_t mode) const
void DisableTexture () const
Int_t GetPaletteSize () const
Double_t GetTexCoord (Double_t z) const
const UChar_tGetColour (Double_t z) const
const UChar_tGetColour (Int_t ind) const
 TGLLevelPalette ()
Bool_t GeneratePalette (UInt_t paletteSize, const Rgl::Range_t &zRange, Bool_t checkSize=kTRUE)
void SetContours (const std::vector< Double_t > *contours)
void EnableTexture (Int_t mode) const
void DisableTexture () const
Int_t GetPaletteSize () const
Double_t GetTexCoord (Double_t z) const
const UChar_tGetColour (Double_t z) const
const UChar_tGetColour (Int_t ind) const

Private Member Functions

 TGLLevelPalette (const TGLLevelPalette &)
TGLLevelPaletteoperator= (const TGLLevelPalette &)
 TGLLevelPalette (const TGLLevelPalette &)
TGLLevelPaletteoperator= (const TGLLevelPalette &)

Private Attributes

std::vector< UChar_tfTexels
const std::vector< Double_t > * fContours
UInt_t fPaletteSize
UInt_t fTexture
Int_t fMaxPaletteSize
Rgl::Range_t fZRange
std::vector< UChar_tfTexels
const std::vector< Double_t > * fContours


Detailed Description

Definition at line 1325 of file TGLUtil.h.


Constructor & Destructor Documentation

TGLLevelPalette::TGLLevelPalette ( const TGLLevelPalette  )  [private]

TGLLevelPalette::TGLLevelPalette (  ) 

Definition at line 3692 of file TGLUtil.cxx.

TGLLevelPalette::TGLLevelPalette ( const TGLLevelPalette  )  [private]

TGLLevelPalette::TGLLevelPalette (  ) 


Member Function Documentation

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

Bool_t TGLLevelPalette::GeneratePalette ( UInt_t  paletteSize,
const Rgl::Range_t zRange,
Bool_t  checkSize = kTRUE 
)

Definition at line 3702 of file TGLUtil.cxx.

References c, Error, fMaxPaletteSize, fPaletteSize, fTexels, fZRange, TROOT::GetColor(), TStyle::GetColorPalette(), TStyle::GetNumberOfColors(), GL_MAX_TEXTURE_SIZE, glGetIntegerv(), gROOT, gStyle, i, kFALSE, and kTRUE.

Referenced by TGLIsoPainter::InitGeometry(), TGLLegoPainter::PreparePalette(), TGLSurfacePainter::PreparePalette(), and TGLTH3Slice::PreparePalette().

void TGLLevelPalette::SetContours ( const std::vector< Double_t > *  contours  ) 

Definition at line 3752 of file TGLUtil.cxx.

References fContours.

void TGLLevelPalette::EnableTexture ( Int_t  mode  )  const

Definition at line 3759 of file TGLUtil.cxx.

References fTexels, fTexture, GL_NEAREST, GL_REPEAT, GL_RGBA, GL_TEXTURE_1D, GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_TEXTURE_MAG_FILTER, GL_TEXTURE_MIN_FILTER, GL_TEXTURE_WRAP_S, GL_UNPACK_ALIGNMENT, GL_UNSIGNED_BYTE, glBindTexture(), glEnable(), glGenTextures(), glPixelStorei(), glTexEnvi(), glTexImage1D(), and glTexParameteri().

Referenced by TGLLegoPainter::DrawLegoCartesian(), TGLLegoPainter::DrawLegoCylindrical(), TGLLegoPainter::DrawLegoPolar(), TGLLegoPainter::DrawLegoSpherical(), TGLSurfacePainter::DrawPlot(), and TGLTH3Slice::DrawSlice().

void TGLLevelPalette::DisableTexture (  )  const

Definition at line 3777 of file TGLUtil.cxx.

References fTexture, GL_TEXTURE_1D, glDeleteTextures(), and glDisable().

Referenced by TGLLegoPainter::DrawLegoCartesian(), TGLLegoPainter::DrawLegoCylindrical(), TGLLegoPainter::DrawLegoPolar(), TGLLegoPainter::DrawLegoSpherical(), TGLSurfacePainter::DrawPlot(), and TGLTH3Slice::DrawSlice().

Int_t TGLLevelPalette::GetPaletteSize (  )  const

Definition at line 3785 of file TGLUtil.cxx.

References fPaletteSize.

Double_t TGLLevelPalette::GetTexCoord ( Double_t  z  )  const

Definition at line 3792 of file TGLUtil.cxx.

References fContours, fPaletteSize, fTexels, and fZRange.

Referenced by TGLLegoPainter::DrawLegoCartesian(), TGLLegoPainter::DrawLegoCylindrical(), TGLLegoPainter::DrawLegoPolar(), TGLLegoPainter::DrawLegoSpherical(), TGLSurfacePainter::GenTexMap(), and TGLTH3Slice::PrepareTexCoords().

const UChar_t * TGLLevelPalette::GetColour ( Double_t  z  )  const

Definition at line 3815 of file TGLUtil.cxx.

References fPaletteSize, fTexels, and fZRange.

Referenced by TGLIsoPainter::SetSurfaceColor().

const UChar_t * TGLLevelPalette::GetColour ( Int_t  ind  )  const

Definition at line 3823 of file TGLUtil.cxx.

References fTexels.

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

Bool_t TGLLevelPalette::GeneratePalette ( UInt_t  paletteSize,
const Rgl::Range_t zRange,
Bool_t  checkSize = kTRUE 
)

void TGLLevelPalette::SetContours ( const std::vector< Double_t > *  contours  ) 

void TGLLevelPalette::EnableTexture ( Int_t  mode  )  const

void TGLLevelPalette::DisableTexture (  )  const

Int_t TGLLevelPalette::GetPaletteSize (  )  const

Double_t TGLLevelPalette::GetTexCoord ( Double_t  z  )  const

const UChar_t* TGLLevelPalette::GetColour ( Double_t  z  )  const

const UChar_t* TGLLevelPalette::GetColour ( Int_t  ind  )  const


Member Data Documentation

std::vector<UChar_t> TGLLevelPalette::fTexels [private]

Definition at line 1327 of file TGLUtil.h.

Referenced by EnableTexture(), GeneratePalette(), GetColour(), and GetTexCoord().

const std::vector<Double_t>* TGLLevelPalette::fContours [private]

Definition at line 1328 of file TGLUtil.h.

Referenced by GetTexCoord(), and SetContours().

UInt_t TGLLevelPalette::fPaletteSize [private]

Definition at line 1329 of file TGLUtil.h.

Referenced by GeneratePalette(), GetColour(), GetPaletteSize(), and GetTexCoord().

UInt_t TGLLevelPalette::fTexture [mutable, private]

Definition at line 1330 of file TGLUtil.h.

Referenced by DisableTexture(), and EnableTexture().

Int_t TGLLevelPalette::fMaxPaletteSize [private]

Definition at line 1331 of file TGLUtil.h.

Referenced by GeneratePalette().

Rgl::Range_t TGLLevelPalette::fZRange [private]

Definition at line 1332 of file TGLUtil.h.

Referenced by GeneratePalette(), GetColour(), and GetTexCoord().

std::vector<UChar_t> TGLLevelPalette::fTexels [private]

Definition at line 1327 of file TGLUtil.h.

const std::vector<Double_t>* TGLLevelPalette::fContours [private]

Definition at line 1328 of file TGLUtil.h.


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