GLVis  v4.2
Accurate and flexible finite element visualization
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
Public Member Functions | List of all members
PaletteState Class Reference

#include <palettes.hpp>

Public Member Functions

 PaletteState ()
 
void Init ()
 Initializes the palette textures. More...
 
void UseDiscrete ()
 Binds the discrete version of the current palette texture. More...
 
void UseSmooth ()
 Binds the smooth version of the current palette texture. More...
 
int GetSmoothSetting ()
 Gets whether the smooth texture is being used (1 = true) More...
 
void SetIndex (int num)
 Sets the palette texture to bind. More...
 
int GetCurrIndex () const
 
void NextIndex ()
 
void PrevIndex ()
 
int ChoosePalette ()
 
int SelectNewRGBPalette ()
 
const double * GetData () const
 Gets the data in the palette color array. More...
 
int GetSize (int pal=-1) const
 Gets the total number of colors in the current palette color array. More...
 
int GetNumColors (int pal=-1) const
 Gets the number of colors used in the current palette color array. More...
 
void SetNumColors (int numColors)
 Sets the number of colors to use in the current palette color array. More...
 
int GetRepeatTimes () const
 
void SetRepeatTimes (int rpt)
 
void SetUseLogscale (bool logscale)
 
bool GetUseLogscale ()
 
double GetColorCoord (double val, double min, double max)
 
void GetColorFromVal (double val, float *rgba)
 
GLuint GetColorTexture () const
 
GLuint GetAlphaTexture () const
 
void GenerateAlphaTexture (float matAlpha, float matAlphaCenter)
 

Detailed Description

Definition at line 18 of file palettes.hpp.

Constructor & Destructor Documentation

PaletteState::PaletteState ( )

Definition at line 7686 of file palettes.cpp.

Member Function Documentation

int PaletteState::ChoosePalette ( )

Definition at line 7503 of file palettes.cpp.

void PaletteState::GenerateAlphaTexture ( float  matAlpha,
float  matAlphaCenter 
)

Definition at line 7824 of file palettes.cpp.

GLuint PaletteState::GetAlphaTexture ( ) const
inline

Definition at line 56 of file palettes.hpp.

double PaletteState::GetColorCoord ( double  val,
double  min,
double  max 
)

Definition at line 7763 of file palettes.cpp.

void PaletteState::GetColorFromVal ( double  val,
float *  rgba 
)

Definition at line 7785 of file palettes.cpp.

GLuint PaletteState::GetColorTexture ( ) const
inline

Definition at line 54 of file palettes.hpp.

int PaletteState::GetCurrIndex ( ) const
inline

Definition at line 32 of file palettes.hpp.

const double * PaletteState::GetData ( ) const

Gets the data in the palette color array.

Definition at line 7810 of file palettes.cpp.

int PaletteState::GetNumColors ( int  pal = -1) const
inline

Gets the number of colors used in the current palette color array.

Definition at line 42 of file palettes.hpp.

int PaletteState::GetRepeatTimes ( ) const
inline

Definition at line 46 of file palettes.hpp.

int PaletteState::GetSize ( int  pal = -1) const

Gets the total number of colors in the current palette color array.

Definition at line 7815 of file palettes.cpp.

int PaletteState::GetSmoothSetting ( )
inline

Gets whether the smooth texture is being used (1 = true)

Definition at line 29 of file palettes.hpp.

bool PaletteState::GetUseLogscale ( )
inline

Definition at line 50 of file palettes.hpp.

void PaletteState::Init ( )

Initializes the palette textures.

Definition at line 7694 of file palettes.cpp.

void PaletteState::NextIndex ( )

Definition at line 7858 of file palettes.cpp.

void PaletteState::PrevIndex ( )

Definition at line 7863 of file palettes.cpp.

int PaletteState::SelectNewRGBPalette ( )

Definition at line 7869 of file palettes.cpp.

void PaletteState::SetIndex ( int  num)
inline

Sets the palette texture to bind.

Definition at line 31 of file palettes.hpp.

void PaletteState::SetNumColors ( int  numColors)
inline

Sets the number of colors to use in the current palette color array.

Definition at line 45 of file palettes.hpp.

void PaletteState::SetRepeatTimes ( int  rpt)
inline

Definition at line 47 of file palettes.hpp.

void PaletteState::SetUseLogscale ( bool  logscale)
inline

Definition at line 49 of file palettes.hpp.

void PaletteState::UseDiscrete ( )
inline

Binds the discrete version of the current palette texture.

Definition at line 25 of file palettes.hpp.

void PaletteState::UseSmooth ( )
inline

Binds the smooth version of the current palette texture.

Definition at line 27 of file palettes.hpp.


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