#include <RandomSource.h>
Inheritance diagram for RandomSource::

Public Methods | |
| RandomSource (unsigned int w, unsigned int h, unsigned int fps) | |
| Create an source of Random Images. More... | |
| virtual ImageSource& | operator>> (ImageRGB &) |
| Extract a randomly generated colour Image. More... | |
| virtual ImageSource& | operator>> (ImageGrey &) |
| Extract a randomly generated greyscale Image. More... | |
| virtual ImageSource& | operator>> (Image &) |
| Extract a randomly generated Image. More... | |
| void | update (ImageRGB &) |
| Create a random colour Image an store it in the data buffer of the img passed. More... | |
| void | update (ImageGrey &) |
| Create a random greyscale Image an store it in the brightness buffer of the img passed. More... | |
Each image that is extracted from the RandomSource class is a plain one colour image whose colour values are calculated at random when an Image is called to be extracted.
The images will be created at a rate specified to the constructor when an instance of this class is created.
Definition at line 29 of file RandomSource.h.
|
|
Create an source of Random Images.
Definition at line 29 of file RandomSource.cpp. |
|
|
Extract a randomly generated Image. The Image could be colour or greyscale depending on the default palette type for this class. The method sleeps for a short time so that images are not created at too fast a rate.
Reimplemented from ImageSource. Definition at line 93 of file RandomSource.cpp. |
|
|
Extract a randomly generated greyscale Image. The method sleeps for a short time so that images are not created at too fast a rate.
Reimplemented from ImageSource. Definition at line 73 of file RandomSource.cpp. |
|
|
Extract a randomly generated colour Image. The method sleeps for a short time so that images are not created at too fast a rate.
Reimplemented from ImageSource. Definition at line 56 of file RandomSource.cpp. |
|
|
Create a random greyscale Image an store it in the brightness buffer of the img passed. Each pixel in the Image will have the same randomly generated brightnesss values. Definition at line 140 of file RandomSource.cpp. |
|
|
Create a random colour Image an store it in the data buffer of the img passed. Each pixel in the Image will have the same randomly generated red, green, and blue values. Definition at line 112 of file RandomSource.cpp. Referenced by operator>>().
|
1.2.8.1 written by Dimitri van Heesch,
© 1997-2001