GlobeEngine
geData::ColorisationTable Class Reference

#include <ColorisationTable.h>

Inheritance diagram for geData::ColorisationTable:
ge::Texture1D< T, PROPERTIES > ge::TextureType< 1, T, PROPERTIES > ge::TextureHandle

Public Member Functions

 ColorisationTable ()
 
 ~ColorisationTable ()
 
void clear ()
 
void create (std::string _filename)
 
void create (const std::shared_ptr< HeightColorTable > &_entries)
 
void create (float _min, float _max)
 
void readColorTable (std::string _filename)
 
unsigned int size ()
 
unsigned char * getByteDataRGB ()
 
unsigned char * getByteDataRGBA ()
 
unsigned char * getByteDataRGBALinear ()
 
unsigned char * getByteDataRGBAStaircase ()
 
float getTexCoord1DForHeightValue (float _height)
 
void setPixelCount (unsigned int _in)
 
unsigned int getPixelCount () const
 
ge::Color4ub getColorForValue (double _value) const
 
void setName (std::string _name)
 
std::string getName () const
 
void addPairToColorTable (ge::Color4ub _color, float _value)
 
int getTableSize () const
 
float getValueAtIndex (int _idx) const
 
ge::Color4ub getColorAtIndex (int _idx) const
 
void setMinMax (float _min, float _max)
 
float getMinValue () const
 
float getMaxValue () const
 
float getValueRange () const
 
void print ()
 
- Public Member Functions inherited from ge::Texture1D< T, PROPERTIES >
 Texture1D ()
 
GLuint loadEmpty (short _width, TextureTypeInternals _type)
 
GLuint load (short _width, TextureTypeInternals _type, T *_data)
 
void setWrapParameter (TextureWrapParameter1D _wrap)
 
void setTextureData (T *_pixels)
 
- Public Member Functions inherited from ge::TextureType< 1, T, PROPERTIES >
 TextureType ()
 
 ~TextureType ()
 
void clear ()
 
int countPixel () const
 
void setMinMagParameter (TextureMinMagParameters _minmag)
 
void generateMipMaps ()
 
void bindTextureForCompute (GLuint _unit, GLint _level, GLboolean _layered, GLint _layer, GLenum _access)
 
std::string getName ()
 
short getHeight () const
 
short getWidth () const
 
int getStorageSize () const
 
vmml::vector< D, short > getDimensions () const
 
GLint getInternalFormat () const
 
GLenum getFormat () const
 
GLenum getType () const
 
const T & getData () const
 
T * mapStoragePointer ()
 
- Public Member Functions inherited from ge::TextureHandle
 TextureHandle ()
 
virtual ~TextureHandle ()
 
void clear ()
 
void createHandle (GLenum _target)
 
void createFromExistingHandle (GLenum _target, GLuint _handle)
 
void bind (GLint _unit=-1) const
 
void unbind (GLint _unit=-1) const
 
GLenum getTarget () const
 
void overrideHandle (GLuint _handle)
 
GLuint getHandle () const
 
void deleteHandle ()
 
void bindTextureToShader (GLuint _shaderUnit, GLenum _internalFormat, GLenum _access=GL_READ_WRITE, GLint _texlevel=0, GLboolean _islayered=GL_FALSE, GLint _texlayer=0)
 
GLuint64 getBindlessHandle () const
 
BindlessState getBindlessState () const
 
void setBindlessHandle ()
 
void makeTextureResident ()
 
void makeTextureNonResident ()
 

Additional Inherited Members

- Public Types inherited from ge::TextureHandle
enum  eTEXTURE_TYPES {
  eNOTLOADED, eEMPTYTEXTURE, eEMPTYTEXTURE_R32, eEMPTYHDRTEXTURE,
  eEMPTYPICKINGTEXTURE, eEMPTY1DTEXTURE, eTEXTURE, eTEXTURE_R16,
  eTEXTURE_R32, eSHADOWMAP, eSTENCILTEX, eBUMPMAP,
  e1DTEXTUR, e3DTEXTUR
}
 
enum  BindlessState {
  NOHANDLE = 0, HANDLE, BINDLESSHANDLE, RESIDENT,
  NOTRESIDENT, INUSE
}
 
- Static Public Member Functions inherited from ge::TextureHandle
static void bindTextureHandle2DToUnit (GLuint _handle, GLint _unit)
 
static void unbindTextureHandle2DToUnit (GLuint _handle, GLint _unit)
 
- Protected Member Functions inherited from ge::TextureType< 1, T, PROPERTIES >
void loadDataToPBO (T *_data)
 
void unmapStoragePointer ()
 
void unpackPBO ()
 
void setSize (vmml::vector< D, short > _dim)
 
- Protected Member Functions inherited from ge::TextureHandle
void getOpenGLError (std::string _input)
 
- Protected Attributes inherited from ge::TextureType< 1, T, PROPERTIES >
vmml::vector< D, short > dim
 
T * data
 
std::string name
 
PROPERTIES properties
 
ge::PixelUnpackBuffer textureBuffer
 
- Protected Attributes inherited from ge::TextureHandle
GLenum target
 
GLuint handle
 
GLuint64 bindlessHandle
 
BindlessState bindlessState
 

Constructor & Destructor Documentation

geData::ColorisationTable::ColorisationTable ( )
geData::ColorisationTable::~ColorisationTable ( )

Member Function Documentation

void geData::ColorisationTable::addPairToColorTable ( ge::Color4ub  _color,
float  _value 
)
void geData::ColorisationTable::clear ( )
void geData::ColorisationTable::create ( std::string  _filename)
void geData::ColorisationTable::create ( const std::shared_ptr< HeightColorTable > &  _entries)
void geData::ColorisationTable::create ( float  _min,
float  _max 
)
unsigned char * geData::ColorisationTable::getByteDataRGB ( )
unsigned char * geData::ColorisationTable::getByteDataRGBA ( )
unsigned char * geData::ColorisationTable::getByteDataRGBALinear ( )
unsigned char * geData::ColorisationTable::getByteDataRGBAStaircase ( )
ge::Color4ub geData::ColorisationTable::getColorAtIndex ( int  _idx) const
ge::Color4ub geData::ColorisationTable::getColorForValue ( double  _value) const
float geData::ColorisationTable::getMaxValue ( ) const
float geData::ColorisationTable::getMinValue ( ) const
std::string geData::ColorisationTable::getName ( ) const
unsigned int geData::ColorisationTable::getPixelCount ( ) const
int geData::ColorisationTable::getTableSize ( ) const
float geData::ColorisationTable::getTexCoord1DForHeightValue ( float  _height)
float geData::ColorisationTable::getValueAtIndex ( int  _idx) const
float geData::ColorisationTable::getValueRange ( ) const
void geData::ColorisationTable::print ( )
void geData::ColorisationTable::readColorTable ( std::string  _filename)
void geData::ColorisationTable::setMinMax ( float  _min,
float  _max 
)
void geData::ColorisationTable::setName ( std::string  _name)
void geData::ColorisationTable::setPixelCount ( unsigned int  _in)
unsigned int geData::ColorisationTable::size ( )

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