#include <hilbertpx.h>
Public Member Functions | |
HilbertPixelSampler (int xStart, int xEnd, int yStart, int yEnd) | |
virtual | ~HilbertPixelSampler () |
virtual u_int | GetTotalPixels () |
virtual bool | GetNextPixel (int &xPos, int &yPos, u_int *use_pos) |
Private Member Functions | |
void | HilberCurve (int n, int xo, int yo, int xd, int yd, int xp, int yp, int xEnd, int yEnd) |
Private Attributes | |
u_int | TotalPx |
vector< PxLoc > | Pxa |
Definition at line 31 of file hilbertpx.h.
Definition at line 76 of file hilbertpx.cpp.
References HilberCurve(), IsPowerOf2(), RoundUpPow2(), and TotalPx.
virtual lux::HilbertPixelSampler::~HilbertPixelSampler | ( | ) | [inline, virtual] |
Definition at line 37 of file hilbertpx.h.
Implements lux::PixelSampler.
Definition at line 111 of file hilbertpx.cpp.
u_int HilbertPixelSampler::GetTotalPixels | ( | ) | [virtual] |
void HilbertPixelSampler::HilberCurve | ( | int | n, | |
int | xo, | |||
int | yo, | |||
int | xd, | |||
int | yd, | |||
int | xp, | |||
int | yp, | |||
int | xEnd, | |||
int | yEnd | |||
) | [private] |
Definition at line 28 of file hilbertpx.cpp.
References Pxa, TotalPx, lux::PxLoc::x, and lux::PxLoc::y.
Referenced by HilbertPixelSampler().
vector<PxLoc> lux::HilbertPixelSampler::Pxa [private] |
Definition at line 52 of file hilbertpx.h.
Referenced by GetNextPixel(), and HilberCurve().
u_int lux::HilbertPixelSampler::TotalPx [private] |
Definition at line 50 of file hilbertpx.h.
Referenced by GetNextPixel(), GetTotalPixels(), HilberCurve(), and HilbertPixelSampler().