Main Page | Class List | File List | Class Members | Examples

Quasisampler::TileNode Class Reference

Individual tile elements, which also serve as nodes for the tile subdivision tree. More...

List of all members.

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.

TileNodenextNode ()
 Returns the next node of the tree, in depth-first traversal.

TileNodenextLeaf ()
 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
TileNodegetParent ()
TileNodegetChild (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.

TileNodeparent
unsigned parent_slot
bool terminal
std::vector< TileNode * > children


Detailed Description

Individual tile elements, which also serve as nodes for the tile subdivision tree.

Definition at line 171 of file quasisampler_prototype.h.


Constructor & Destructor Documentation

TileNode double  roi_width,
double  roi_height
[inline]
 

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.


Member Function Documentation

TileNode* nextLeaf  )  [inline]
 

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.

TileNode* nextNode  )  [inline]
 

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.

void refine  )  [inline]
 

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.


The documentation for this class was generated from the following file:
Generated on Wed Aug 18 12:37:51 2004 for Quasi-Sampler by doxygen 1.3.7