#include <ckimage.h>
Inheritance diagram for CkImage:


Public Types | |
| enum | { channel_max = 255 } |
| This is the maximum value of a color channel. More... | |
| enum | layout_t { layout_default = 0, layout_reversed = 1 } |
| This describes the various data layouts used by image pixels:. More... | |
| typedef unsigned char | channel_t |
Public Member Functions | |
| CkImage () | |
| CkImage (int w_, int h_, int colors_, channel_t *data_) | |
| channel_t * | getData (void) |
| Get/set the whole image's data. | |
| void | setData (channel_t *d) |
| CkRect | getRect (void) const |
| int | getRow (void) const |
| Return the number of channel_t's per row of the image. | |
| int | getColors (void) const |
| Return the number of colors (channel_t's) per pixel. | |
| layout_t | getLayout (void) const |
| Get/set the pixel format. | |
| void | setLayout (layout_t a) |
| int | getWidth (void) const |
| Return the number of pixels per row of the image. | |
| int | getHeight (void) const |
| Return the number of pixels per column of the image. | |
| void | copyPixel (const channel_t *src, channel_t *dest) |
| void | setPixel (const channel_t src, channel_t *dest) |
| void | addPixel (const channel_t *src, channel_t *dest) |
| void | addPixelClip (const channel_t *src, channel_t *dest, const channel_t *clip) |
| channel_t * | getPixel (int x, int y) |
| const channel_t * | getPixel (int x, int y) const |
| void | window (const CkRect &src) |
| void | clear (void) |
| void | put (int sx, int sy, const CkImage &src) |
| void | add (int sx, int sy, const CkImage &src) |
| void | addClip (int sx, int sy, const CkImage &src, const channel_t *clip) |
| void | pup (PUP::er &p) |
Static Public Member Functions | |
| static channel_t * | newClip (void) |
Private Member Functions | |
| CkImage (const CkImage &im) | |
| DO NOT USE. | |
| void | operator= (const CkImage &im) |
Private Attributes | |
| int | row |
| int | colors |
| channel_ts per line, channel_ts per pixel | |
| int | layout |
| Image pixel format. | |
| int | wid |
| int | ht |
| Image size: cols and rows. | |
| channel_t * | data |
| Image pixel data. | |
Pixels are stored first by color (e.g., r,g,b), then by row in the usual raster order.
Definition at line 71 of file ckimage.h.
| typedef unsigned char CkImage::channel_t |
| anonymous enum |
| enum CkImage::layout_t |
This describes the various data layouts used by image pixels:.
| CkImage::CkImage | ( | const CkImage & | im | ) | [private] |
DO NOT USE.
| CkImage::CkImage | ( | ) | [inline] |
Definition at line 104 of file ckimage.h.
References colors, data, ht, layout_default, row, setLayout(), and wid.
| void CkImage::operator= | ( | const CkImage & | im | ) | [private] |
| channel_t* CkImage::getData | ( | void | ) | [inline] |
Get/set the whole image's data.
Definition at line 110 of file ckimage.h.
References data.
Referenced by CkAllocImage::CkAllocImage().
| void CkImage::setData | ( | channel_t * | d | ) | [inline] |
Definition at line 111 of file ckimage.h.
References data.
Referenced by CkAllocImage::allocate(), and CkAllocImage::deallocate().
| CkRect CkImage::getRect | ( | void | ) | const [inline] |
Definition at line 113 of file ckimage.h.
Referenced by CkAllocImage::allocate(), and CkAllocImage::pup().
| int CkImage::getRow | ( | void | ) | const [inline] |
| int CkImage::getColors | ( | void | ) | const [inline] |
Return the number of colors (channel_t's) per pixel.
Definition at line 117 of file ckimage.h.
References colors.
Referenced by CkAllocImage::allocate(), and CkAllocImage::pup().
| layout_t CkImage::getLayout | ( | void | ) | const [inline] |
Get/set the pixel format.
Definition at line 120 of file ckimage.h.
References layout.
Referenced by impl_LV3D_Array::LV3D_FlatRender().
| void CkImage::setLayout | ( | layout_t | a | ) | [inline] |
| int CkImage::getWidth | ( | void | ) | const [inline] |
Return the number of pixels per row of the image.
Definition at line 124 of file ckimage.h.
References wid.
Referenced by impl_LV3D_Array::LV3D_FlatRender().
| int CkImage::getHeight | ( | void | ) | const [inline] |
Return the number of pixels per column of the image.
Definition at line 126 of file ckimage.h.
References ht.
Referenced by impl_LV3D_Array::LV3D_FlatRender().
| void CkImage::window | ( | const CkRect & | src | ) | [inline] |
| void CkImage::clear | ( | void | ) |
| CkImage::channel_t * CkImage::newClip | ( | void | ) | [static] |
| void CkImage::pup | ( | PUP::er & | p | ) | [inline] |
Reimplemented in CkAllocImage.
Definition at line 189 of file ckimage.h.
References colors, ht, layout, p, row, and wid.
Referenced by CkAllocImage::pup().
int CkImage::row [private] |
int CkImage::colors [private] |
channel_ts per line, channel_ts per pixel
Definition at line 96 of file ckimage.h.
Referenced by addPixel(), addPixelClip(), CkImage(), clear(), copyPixel(), getColors(), getPixel(), pup(), setPixel(), and window().
int CkImage::layout [private] |
Image pixel format.
Definition at line 97 of file ckimage.h.
Referenced by getLayout(), pup(), and setLayout().
int CkImage::wid [private] |
int CkImage::ht [private] |
channel_t* CkImage::data [private] |
1.5.1