#include <pfs.h>

Public Member Functions | |
| int | getWidth () const |
| Gets width of the channel (in pixels). | |
| virtual int | getHeight () const |
| Gets height of the channel (in pixels). | |
| virtual const char * | getName () const =0 |
| Gets name of the channel. | |
| virtual TagContainer * | getTags ()=0 |
| Returns TagContainer that can be used to access or modify tags associated with this Channel object. | |
| virtual float * | getRawData ()=0 |
| For performance reasons, the channels can be accessed as a table of float values. | |
Definition at line 182 of file pfs.h.
| int pfs::Channel::getWidth | ( | ) | const [inline] |
Gets width of the channel (in pixels).
This is a synonym for Array2D::getCols().
| virtual int pfs::Channel::getHeight | ( | ) | const [inline, virtual] |
Gets height of the channel (in pixels).
This is a synonym for Array2D::getRows().
| virtual float* pfs::Channel::getRawData | ( | ) | [pure virtual] |
For performance reasons, the channels can be accessed as a table of float values.
Data is given in row-major order, i.e. it is indexed data[x+y*width]. If performance is not crucial, use Array2D interface instead.
1.5.3