Public Member Functions | |
TileNode (TileNode *parent=NULL, int tileType=TileTypeF, Point2D refPt=Point2D(0, 0), int dir=15, unsigned newbits=0, int parent_slot=0, double scale=1.0) | |
Builds a tile according to the given specifications. | |
TileNode (double roi_width, double roi_height) | |
Helper constructor. | |
void | refine () |
Splits a tile according to the given subdivision rules. | |
void | collapse () |
Prunes the subdivision tree at this node. | |
TileNode * | nextNode () |
Returns the next node of the tree, in depth-first traversal. | |
TileNode * | nextLeaf () |
Returns the next closest leaf to a node. | |
Point2D | getP1 () const |
Point2D | getP2 () const |
Point2D | getP3 () const |
Point2D | getCenter () const |
unsigned | getFCode () const |
bool | isSamplingType () const |
unsigned | getLevel () |
bool | isTerminal () const |
TileNode * | getParent () |
TileNode * | getChild (unsigned i) |
Point2D | getDisplacedSamplingPoint (unsigned importance) |
Obtains the correction vector from the lookup table, then scales and adds it to the reference point. | |
Private Attributes | |
unsigned | level |
int | tileType |
int | dir |
double | scale |
Point2D | p1 |
Point2D | p2 |
Point2D | p3 |
unsigned | f_code |
The F-Code binary sequence. | |
TileNode * | parent |
unsigned | parent_slot |
bool | terminal |
std::vector< TileNode * > | children |
Definition at line 171 of file quasisampler_prototype.h.
|
Helper constructor. Creates an initial tile that is certain to contain the ROI. The starting tile is of type F (arbitrary). Definition at line 245 of file quasisampler_prototype.h. |
|
Returns the next closest leaf to a node. Returns NULL if it's the last leaf. Definition at line 359 of file quasisampler_prototype.h. |
|
Returns the next node of the tree, in depth-first traversal. Returns NULL if it is at the last node. Definition at line 335 of file quasisampler_prototype.h. |
|
Splits a tile according to the given subdivision rules. Please refer to the code for further details. Definition at line 257 of file quasisampler_prototype.h. |