BRL-CAD
QuadNode Class Reference
Collaboration diagram for QuadNode:
[legend]

Public Member Functions

void SubDivide (int MAX_TREE_DEPTH)
 
void AppendKeys (std::set< UVKey, UVKeyComp > *keys, int MAX_TREE_DEPTH)
 
void * operator new (size_t)
 
void operator delete (void *object)
 

Data Fields

std::set< UVKey, UVKeyComp > * keys
 
size_t PU [9]
 
size_t PV [9]
 
int depth
 
QuadNodeChildren [4]
 

Detailed Description

QuadNode - Holds information about the UV coordinates associated with a node in a subdivision quad tree. Assumes the following relationship between point indices and positioning:

              3-------------------2
              |                   |
              |    6         8    |
              |                   |
            V |         4         |
              |                   |
              |    5         7    |
              |                   |
              0-------------------1
                        U

Definition at line 148 of file uvpoints.cpp.

Member Function Documentation

void SubDivide ( int  MAX_TREE_DEPTH)

Definition at line 236 of file uvpoints.cpp.

References AppendKeys(), Children, depth, keys, PU, PV, and SubDivide().

Referenced by main(), and SubDivide().

Here is the call graph for this function:

void AppendKeys ( std::set< UVKey, UVKeyComp > *  keys,
int  MAX_TREE_DEPTH 
)

Definition at line 183 of file uvpoints.cpp.

References counting, ints_to_key(), PU, PV, and rejected.

Referenced by SubDivide().

Here is the call graph for this function:

void* operator new ( size_t  )
inline

Definition at line 157 of file uvpoints.cpp.

References MemoryManager::allocate().

Here is the call graph for this function:

void operator delete ( void *  object)
inline

Definition at line 161 of file uvpoints.cpp.

References MemoryManager::free().

Here is the call graph for this function:

Field Documentation

std::set<UVKey, UVKeyComp>* keys

Definition at line 151 of file uvpoints.cpp.

Referenced by SubDivide(), and UVKeyQuadTree::UVKeyQuadTree().

size_t PU[9]

Definition at line 153 of file uvpoints.cpp.

Referenced by AppendKeys(), SubDivide(), and UVKeyQuadTree::UVKeyQuadTree().

size_t PV[9]

Definition at line 154 of file uvpoints.cpp.

Referenced by AppendKeys(), SubDivide(), and UVKeyQuadTree::UVKeyQuadTree().

int depth

Definition at line 155 of file uvpoints.cpp.

Referenced by SubDivide(), and UVKeyQuadTree::UVKeyQuadTree().

QuadNode* Children[4]

Definition at line 156 of file uvpoints.cpp.

Referenced by SubDivide().


The documentation for this class was generated from the following file: