The ImageAccessorBase class gives you very fast access to pixels when the data type and channel count of an image are known at compile time (and this is very often the case.)
#include <image.h>
Public Member Functions |
|
ImageAccessorBase (Image *parent) | |
u_int | Width () const |
u_int | Height () const |
u_int | ChannelCount () const |
void | SetValueAt (u_int X, u_int Y, u_int Ch, float fVal) |
Set value for a specified texel. |
|
float | ValueAt (u_int X, u_int Y, u_int Ch) const |
Get the value at a given coordinate.
|
|
void | SetColorAt (u_int X, u_int Y, const Color &cColor) |
Set value for a specified texel. |
|
void * | AddrAt (u_int X, u_int Y, u_int Ch) |
template<> | |
void * | AddrAt (u_int X, u_int Y, u_int Ch) |
template<> | |
void * | AddrAt (u_int X, u_int Y, u_int Ch) |
template<> | |
void * | AddrAt (u_int X, u_int Y, u_int Ch) |
template<> | |
void * | AddrAt (u_int X, u_int Y, u_int Ch) |
template<> | |
void * | AddrAt (u_int X, u_int Y, u_int Ch) |
template<> | |
void * | AddrAt (u_int X, u_int Y, u_int Ch) |
template<> | |
void * | AddrAt (u_int X, u_int Y, u_int Ch) |
template<> | |
void * | AddrAt (u_int X, u_int Y, u_int Ch) |
template<> | |
void * | AddrAt (u_int X, u_int Y, u_int Ch) |
template<> | |
void * | AddrAt (u_int X, u_int Y, u_int Ch) |
template<> | |
void * | AddrAt (u_int X, u_int Y, u_int Ch) |
template<> | |
void * | AddrAt (u_int X, u_int Y, u_int Ch) |
template<> | |
void * | AddrAt (u_int X, u_int Y, u_int Ch) |
template<> | |
void * | AddrAt (u_int X, u_int Y, u_int Ch) |
template<> | |
void * | AddrAt (u_int X, u_int Y, u_int Ch) |
template<> | |
void * | AddrAt (u_int X, u_int Y, u_int Ch) |
template<> | |
void | SetValueAt (u_int X, u_int Y, u_int Ch, float fVal) |
template<> | |
void | SetValueAt (u_int X, u_int Y, u_int Ch, float fVal) |
template<> | |
void | SetValueAt (u_int X, u_int Y, u_int Ch, float fVal) |
template<> | |
void | SetValueAt (u_int X, u_int Y, u_int Ch, float fVal) |
template<> | |
void | SetValueAt (u_int X, u_int Y, u_int Ch, float fVal) |
template<> | |
void | SetValueAt (u_int X, u_int Y, u_int Ch, float fVal) |
template<> | |
void | SetValueAt (u_int X, u_int Y, u_int Ch, float fVal) |
template<> | |
void | SetValueAt (u_int X, u_int Y, u_int Ch, float fVal) |
template<> | |
void | SetValueAt (u_int X, u_int Y, u_int Ch, float fVal) |
template<> | |
void | SetValueAt (u_int X, u_int Y, u_int Ch, float fVal) |
template<> | |
void | SetValueAt (u_int X, u_int Y, u_int Ch, float fVal) |
template<> | |
void | SetValueAt (u_int X, u_int Y, u_int Ch, float fVal) |
template<> | |
void | SetValueAt (u_int X, u_int Y, u_int Ch, float fVal) |
template<> | |
void | SetValueAt (u_int X, u_int Y, u_int Ch, float fVal) |
template<> | |
void | SetValueAt (u_int X, u_int Y, u_int Ch, float fVal) |
template<> | |
void | SetValueAt (u_int X, u_int Y, u_int Ch, float fVal) |
template<> | |
float | ValueAt (u_int X, u_int Y, u_int Ch) const |
template<> | |
float | ValueAt (u_int X, u_int Y, u_int Ch) const |
template<> | |
float | ValueAt (u_int X, u_int Y, u_int Ch) const |
template<> | |
float | ValueAt (u_int X, u_int Y, u_int Ch) const |
template<> | |
float | ValueAt (u_int X, u_int Y, u_int Ch) const |
template<> | |
float | ValueAt (u_int X, u_int Y, u_int Ch) const |
template<> | |
float | ValueAt (u_int X, u_int Y, u_int Ch) const |
template<> | |
float | ValueAt (u_int X, u_int Y, u_int Ch) const |
template<> | |
float | ValueAt (u_int X, u_int Y, u_int Ch) const |
template<> | |
float | ValueAt (u_int X, u_int Y, u_int Ch) const |
template<> | |
float | ValueAt (u_int X, u_int Y, u_int Ch) const |
template<> | |
float | ValueAt (u_int X, u_int Y, u_int Ch) const |
template<> | |
float | ValueAt (u_int X, u_int Y, u_int Ch) const |
template<> | |
float | ValueAt (u_int X, u_int Y, u_int Ch) const |
template<> | |
float | ValueAt (u_int X, u_int Y, u_int Ch) const |
template<> | |
float | ValueAt (u_int X, u_int Y, u_int Ch) const |
template<> | |
float | ValueAt (u_int X, u_int Y, u_int Ch) const |
template<> | |
float | ValueAt (u_int X, u_int Y, u_int Ch) const |
template<> | |
void | SetValueAt (u_int X, u_int Y, u_int Ch, float fVal) |
template<> | |
void | SetValueAt (u_int X, u_int Y, u_int Ch, float fVal) |
template<> | |
void | SetColorAt (u_int X, u_int Y, const Color &c) |
template<> | |
void | SetColorAt (u_int X, u_int Y, const Color &c) |
template<> | |
void | SetColorAt (u_int X, u_int Y, const Color &c) |
template<> | |
void | SetColorAt (u_int X, u_int Y, const Color &c) |
template<> | |
void | SetColorAt (u_int X, u_int Y, const Color &c) |
template<> | |
void | SetColorAt (u_int X, u_int Y, const Color &c) |
template<> | |
void | SetColorAt (u_int X, u_int Y, const Color &c) |
template<> | |
void | SetColorAt (u_int X, u_int Y, const Color &c) |
ImageAccessorBase | ( | Image * | parent | ) | [inline] |
u_int Width | ( | void | ) | const [inline] |
u_int Height | ( | void | ) | const [inline] |
u_int ChannelCount | ( | void | ) | const [inline] |
void SetValueAt | ( | u_int | X, |
u_int | Y, | ||
u_int | Ch, | ||
float | fVal | ||
) | [inline] |
Set value for a specified texel.
For integer maps 1 should be mapped for the maximum value (255 for 8 bit images and 65535 for 16 bit images)
float ValueAt | ( | u_int | X, |
u_int | Y, | ||
u_int | Ch | ||
) | const [inline] |
Get the value at a given coordinate.
void SetColorAt | ( | u_int | X, |
u_int | Y, | ||
const Color & | cColor | ||
) | [inline] |
Set value for a specified texel.
For integer maps 1 should be mapped for the maximum value (255 for 8 bit images and 65535 for 16 bit images)
void* AddrAt | ( | u_int | X, |
u_int | Y, | ||
u_int | Ch | ||
) | [inline] |
void * AddrAt | ( | u_int | X, |
u_int | Y, | ||
u_int | Ch | ||
) | [inline] |
void * AddrAt | ( | u_int | X, |
u_int | Y, | ||
u_int | Ch | ||
) | [inline] |
void * AddrAt | ( | u_int | X, |
u_int | Y, | ||
u_int | Ch | ||
) | [inline] |
void * AddrAt | ( | u_int | X, |
u_int | Y, | ||
u_int | Ch | ||
) | [inline] |
void * AddrAt | ( | u_int | X, |
u_int | Y, | ||
u_int | Ch | ||
) | [inline] |
void * AddrAt | ( | u_int | X, |
u_int | Y, | ||
u_int | Ch | ||
) | [inline] |
void * AddrAt | ( | u_int | X, |
u_int | Y, | ||
u_int | Ch | ||
) | [inline] |
void * AddrAt | ( | u_int | X, |
u_int | Y, | ||
u_int | Ch | ||
) | [inline] |
void * AddrAt | ( | u_int | X, |
u_int | Y, | ||
u_int | Ch | ||
) | [inline] |
void * AddrAt | ( | u_int | X, |
u_int | Y, | ||
u_int | Ch | ||
) | [inline] |
void * AddrAt | ( | u_int | X, |
u_int | Y, | ||
u_int | Ch | ||
) | [inline] |
void * AddrAt | ( | u_int | X, |
u_int | Y, | ||
u_int | Ch | ||
) | [inline] |
void * AddrAt | ( | u_int | X, |
u_int | Y, | ||
u_int | Ch | ||
) | [inline] |
void * AddrAt | ( | u_int | X, |
u_int | Y, | ||
u_int | Ch | ||
) | [inline] |
void * AddrAt | ( | u_int | X, |
u_int | Y, | ||
u_int | Ch | ||
) | [inline] |
void * AddrAt | ( | u_int | X, |
u_int | Y, | ||
u_int | Ch | ||
) | [inline] |
void SetValueAt | ( | u_int | X, |
u_int | Y, | ||
u_int | Ch, | ||
float | fVal | ||
) | [inline] |
void SetValueAt | ( | u_int | X, |
u_int | Y, | ||
u_int | Ch, | ||
float | fVal | ||
) | [inline] |
void SetValueAt | ( | u_int | X, |
u_int | Y, | ||
u_int | Ch, | ||
float | fVal | ||
) | [inline] |
void SetValueAt | ( | u_int | X, |
u_int | Y, | ||
u_int | Ch, | ||
float | fVal | ||
) | [inline] |
void SetValueAt | ( | u_int | X, |
u_int | Y, | ||
u_int | Ch, | ||
float | fVal | ||
) | [inline] |
void SetValueAt | ( | u_int | X, |
u_int | Y, | ||
u_int | Ch, | ||
float | fVal | ||
) | [inline] |
void SetValueAt | ( | u_int | X, |
u_int | Y, | ||
u_int | Ch, | ||
float | fVal | ||
) | [inline] |
void SetValueAt | ( | u_int | X, |
u_int | Y, | ||
u_int | Ch, | ||
float | fVal | ||
) | [inline] |
void SetValueAt | ( | u_int | X, |
u_int | Y, | ||
u_int | Ch, | ||
float | fVal | ||
) | [inline] |
void SetValueAt | ( | u_int | X, |
u_int | Y, | ||
u_int | Ch, | ||
float | fVal | ||
) | [inline] |
void SetValueAt | ( | u_int | X, |
u_int | Y, | ||
u_int | Ch, | ||
float | fVal | ||
) | [inline] |
void SetValueAt | ( | u_int | X, |
u_int | Y, | ||
u_int | Ch, | ||
float | fVal | ||
) | [inline] |
void SetValueAt | ( | u_int | X, |
u_int | Y, | ||
u_int | Ch, | ||
float | fVal | ||
) | [inline] |
void SetValueAt | ( | u_int | X, |
u_int | Y, | ||
u_int | Ch, | ||
float | fVal | ||
) | [inline] |
void SetValueAt | ( | u_int | X, |
u_int | Y, | ||
u_int | Ch, | ||
float | fVal | ||
) | [inline] |
void SetValueAt | ( | u_int | X, |
u_int | Y, | ||
u_int | Ch, | ||
float | fVal | ||
) | [inline] |
float ValueAt | ( | u_int | X, |
u_int | Y, | ||
u_int | Ch | ||
) | const [inline] |
float ValueAt | ( | u_int | X, |
u_int | Y, | ||
u_int | Ch | ||
) | const [inline] |
float ValueAt | ( | u_int | X, |
u_int | Y, | ||
u_int | Ch | ||
) | const [inline] |
float ValueAt | ( | u_int | X, |
u_int | Y, | ||
u_int | Ch | ||
) | const [inline] |
float ValueAt | ( | u_int | X, |
u_int | Y, | ||
u_int | Ch | ||
) | const [inline] |
float ValueAt | ( | u_int | X, |
u_int | Y, | ||
u_int | Ch | ||
) | const [inline] |
float ValueAt | ( | u_int | X, |
u_int | Y, | ||
u_int | Ch | ||
) | const [inline] |
float ValueAt | ( | u_int | X, |
u_int | Y, | ||
u_int | Ch | ||
) | const [inline] |
float ValueAt | ( | u_int | X, |
u_int | Y, | ||
u_int | Ch | ||
) | const [inline] |
float ValueAt | ( | u_int | X, |
u_int | Y, | ||
u_int | Ch | ||
) | const [inline] |
float ValueAt | ( | u_int | X, |
u_int | Y, | ||
u_int | Ch | ||
) | const [inline] |
float ValueAt | ( | u_int | X, |
u_int | Y, | ||
u_int | Ch | ||
) | const [inline] |
float ValueAt | ( | u_int | X, |
u_int | Y, | ||
u_int | Ch | ||
) | const [inline] |
float ValueAt | ( | u_int | X, |
u_int | Y, | ||
u_int | Ch | ||
) | const [inline] |
float ValueAt | ( | u_int | X, |
u_int | Y, | ||
u_int | Ch | ||
) | const [inline] |
float ValueAt | ( | u_int | X, |
u_int | Y, | ||
u_int | Ch | ||
) | const [inline] |
float ValueAt | ( | u_int | X, |
u_int | Y, | ||
u_int | Ch | ||
) | const [inline] |
float ValueAt | ( | u_int | X, |
u_int | Y, | ||
u_int | Ch | ||
) | const [inline] |
void SetValueAt | ( | u_int | X, |
u_int | Y, | ||
u_int | Ch, | ||
float | fVal | ||
) | [inline] |
void SetValueAt | ( | u_int | X, |
u_int | Y, | ||
u_int | Ch, | ||
float | fVal | ||
) | [inline] |
void SetColorAt | ( | u_int | X, |
u_int | Y, | ||
const Color & | c | ||
) | [inline] |
Definition at line 2519 of file image.h.
{ SetValueAt(X, Y, 0, c.r); SetValueAt(X, Y, 1, c.g); SetValueAt(X, Y, 2, c.b); SetValueAt(X, Y, 3, c.a); };
void SetColorAt | ( | u_int | X, |
u_int | Y, | ||
const Color & | c | ||
) | [inline] |
Definition at line 2529 of file image.h.
{ SetValueAt(X, Y, 0, c.r); SetValueAt(X, Y, 1, c.g); SetValueAt(X, Y, 2, c.b); };
void SetColorAt | ( | u_int | X, |
u_int | Y, | ||
const Color & | c | ||
) | [inline] |
Definition at line 2538 of file image.h.
{ SetValueAt(X, Y, 0, c.r); SetValueAt(X, Y, 1, c.g); SetValueAt(X, Y, 2, c.b); SetValueAt(X, Y, 3, c.a); };
void SetColorAt | ( | u_int | X, |
u_int | Y, | ||
const Color & | c | ||
) | [inline] |
Definition at line 2548 of file image.h.
{ SetValueAt(X, Y, 0, c.r); SetValueAt(X, Y, 1, c.g); SetValueAt(X, Y, 2, c.b); };
void SetColorAt | ( | u_int | X, |
u_int | Y, | ||
const Color & | c | ||
) | [inline] |
Definition at line 2557 of file image.h.
{ SetValueAt(X, Y, 0, c.r); SetValueAt(X, Y, 1, c.g); SetValueAt(X, Y, 2, c.b); SetValueAt(X, Y, 3, c.a); };
void SetColorAt | ( | u_int | X, |
u_int | Y, | ||
const Color & | c | ||
) | [inline] |
Definition at line 2567 of file image.h.
{ SetValueAt(X, Y, 0, c.r); SetValueAt(X, Y, 1, c.g); SetValueAt(X, Y, 2, c.b); };
void SetColorAt | ( | u_int | X, |
u_int | Y, | ||
const Color & | c | ||
) | [inline] |
Definition at line 2576 of file image.h.
{ SetValueAt(X, Y, 0, c.r); SetValueAt(X, Y, 1, c.g); SetValueAt(X, Y, 2, c.b); SetValueAt(X, Y, 3, c.a); };
void SetColorAt | ( | u_int | X, |
u_int | Y, | ||
const Color & | c | ||
) | [inline] |
Definition at line 2586 of file image.h.
{ SetValueAt(X, Y, 0, c.r); SetValueAt(X, Y, 1, c.g); SetValueAt(X, Y, 2, c.b); };