INFO804 Introduction à l'informatique graphique
|
Classe générique pour représenter des images 2D. More...
#include <Image2D.h>
Classes | |
struct | ConstIterator |
struct | GenericConstIterator |
struct | GenericIterator |
struct | Iterator |
Un itérateur (non-constant) simple sur l'image. More... | |
Public Types | |
typedef Image2D< TValue > | Self |
typedef TValue | Value |
typedef std::vector< Value > | Container |
typedef Container::iterator | ContainerIterator |
typedef Container::const_iterator | ContainerConstIterator |
Public Member Functions | |
Image2D (int w, int h, Value g=Value()) | |
void | fill (Value g) |
int | w () const |
int | h () const |
Iterator | begin () |
Iterator | end () |
Iterator | start (int x, int y) |
template<typename Accessor > | |
GenericConstIterator< Accessor > | start (int x=0, int y=0) const |
template<typename Accessor > | |
GenericConstIterator< Accessor > | begin () const |
template<typename Accessor > | |
GenericConstIterator< Accessor > | end () const |
template<typename Accessor > | |
GenericIterator< Accessor > | start (int x=0, int y=0) |
template<typename Accessor > | |
GenericIterator< Accessor > | begin () |
template<typename Accessor > | |
GenericIterator< Accessor > | end () |
Value | at (int i, int j) const |
Value & | at (int i, int j) |
Classe générique pour représenter des images 2D.
typedef std::vector<Value> rt::Image2D< TValue >::Container |
typedef Container::const_iterator rt::Image2D< TValue >::ContainerConstIterator |
typedef Container::iterator rt::Image2D< TValue >::ContainerIterator |
rt::Image2D< TValue >::Image2D | ( | ) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
void rt::Image2D< TValue >::fill | ( | Value | g | ) |
int rt::Image2D< TValue >::h | ( | ) | const |
|
inline |
|
inline |
int rt::Image2D< TValue >::w | ( | ) | const |