Go to the SVN repository for this file.
1 #ifndef GUI_OPENGL___GL_COLOR_TABLE__HPP 2 #define GUI_OPENGL___GL_COLOR_TABLE__HPP 68 size_tGetSize()
const;
69 voidSetSize(
size_t size);
75 inline const CRgbaColor& operator[](
int i)
const;
78 boolFindColor(
const CRgbaColor& c,
size_t& idx)
const;
82 floatFindClosestColor(
const CRgbaColor& c,
size_t& idx)
const;
86 inline intGetIndex(
doublenorm)
const;
99 voidFillGradient(
intstart_i,
int n,
106 voidFillGradient(
intstart_i,
int n,
118 voidLoadTexture(
intalpha_levels = 8);
124 floatGetColorTexCoord(
shortidx,
floatalpha)
const;
179 intindex = (
int) floor(norm *
m_Colors.size());
class CRgbaColor provides a simple abstraction for managing colors.
CRgbaGradColorTable Provides a storage for colors (to eliminate color creation overhead) and Function...
CRgbaColor & GetColor(CSeqFeatData::ESubtype subtype)
GLsizei m_TextureWidth
Width of the 1D texture (if created).
vector< CRgbaColor > m_Colors
int m_TextureAlphaLevels
Number of alpha levels stored in the texture.
GLint m_MaxColorTableSize
Maximum size of color texture.
int GetIndex(double norm) const
returns color index by the normalized value; normalized values is a value in the [0....
CIRef< I3DTexture > m_Texture
CRgbaColor & operator[](int i)
I3DTexture * GetTexture()
Return object holding the 1D texture.
CRgbaColor & GetColor(size_t i)
CObject & operator=(const CObject &src) THROWS_NONE
Assignment operator.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
#define NCBI_GUIOPENGL_EXPORT
unsigned int
A callback function used to compare two keys in a database.
const struct ncbi::grid::netcache::search::fields::SIZE size
Portable reference counted smart and weak pointers using CWeakRef, CRef, CObject and CObjectEx.
Standard mechanism to include OpenGL headers for all platforms.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4