#include <randompx.h>
Public Member Functions | |
RandomPixelSampler (int xstart, int xend, int ystart, int yend) | |
~RandomPixelSampler () | |
u_int | GetTotalPixels () |
bool | GetNextPixel (int &xPos, int &yPos, u_int *use_pos) |
Private Attributes | |
u_int | TotalPx |
u_int | pixelCounter |
int | xPixelStart |
int | yPixelStart |
int | xPixelEnd |
int | yPixelEnd |
Definition at line 32 of file randompx.h.
RandomPixelSampler::RandomPixelSampler | ( | int | xstart, | |
int | xend, | |||
int | ystart, | |||
int | yend | |||
) |
Definition at line 30 of file randompx.cpp.
References pixelCounter, TotalPx, xPixelEnd, xPixelStart, yPixelEnd, and yPixelStart.
lux::RandomPixelSampler::~RandomPixelSampler | ( | ) | [inline] |
Definition at line 37 of file randompx.h.
bool RandomPixelSampler::GetNextPixel | ( | int & | xPos, | |
int & | yPos, | |||
u_int * | use_pos | |||
) | [virtual] |
Implements lux::PixelSampler.
Definition at line 45 of file randompx.cpp.
References lux::random::floatValue(), Floor2Int(), pixelCounter, TotalPx, xPixelEnd, xPixelStart, yPixelEnd, and yPixelStart.
u_int RandomPixelSampler::GetTotalPixels | ( | ) | [virtual] |
u_int lux::RandomPixelSampler::pixelCounter [private] |
u_int lux::RandomPixelSampler::TotalPx [private] |
int lux::RandomPixelSampler::xPixelEnd [private] |
int lux::RandomPixelSampler::xPixelStart [private] |
int lux::RandomPixelSampler::yPixelEnd [private] |
int lux::RandomPixelSampler::yPixelStart [private] |