|
Public Member Functions |
|
| | Texture (const int cOriginX, const int cOriginY, const int cWidth, const int cHeight, const int cMaxValidX, const int cMaxValidY, const ColorDataMap &crColorDataMap) |
| | Construct a Texture object out of relevant sizes and a ColorDataMap.
|
| | ~Texture (void) |
| | Destructor.
|
|
| int | getOriginX (void) const |
| | Get X pixel origin relative to the whole RasterData source object.
|
| int | getOriginY (void) const |
| | Get Y pixel origin relative to the whole RasterData source object.
|
| int | getSizeX (void) const |
| | Get width in pixels.
|
| int | getSizeY (void) const |
| | Get height in pixels.
|
| int | getMaxValidX (void) const |
| | Get size of the Texture part containing valid pixels; horizontal size.
|
| int | getMaxValidY (void) const |
| | Get size of the Texture part containing valid pixels; vertical size.
|
| double | getLowerLimit (void) const |
| | Get the lower limit of this Texture data's histogram.
|
| double | getUpperLimit (void) const |
| | Get the upper limit of this Texture data's histogram.
|
| ushort * | getTexData (void) const |
| | Get pointer to the texture data storage.
|
| void | getTexCoords (float &rMinX, float &rMaxX, float &rMinY, float &rMaxY) |
| | Get current GL texture coordinates.
|
|
| void | setTexCoords (const float cMinX, const float cMaxX, const float cMinY, const float cMaxY) |
| | Set GL texture coordinates.
|
| void | setLimits (const double cLowerLimit, const double cUpperLimit) |
| | Set histogram limits.
|
|
| void | fill (void) |
| | Fill the texture according to the ColorDataMap.
|
| void | createGLTexture (void) |
| | Create a new GL texture object out of this Texture.
|
|
| void | calculateTextureData (void) |
| | Converts the ColorDataMap member to the texture data array.
|
| void | rebuildGLTexture (int offsetX=0, int offsetY=0, int width=-1, int height=-1) |
| | Rebuilds a given part of the GL texture.
|
|
| void | drawTexturedQuad (const float cDrawUnitX, const float cDrawUnitY) |
| | Draw a textured quad with this Texture mapped on it.
|
Static Public Member Functions |
| int | getMaxTexSize (void) |
| | Get the maximum texture size supported on this system.
|