VertexCoordRemapper::Tree Class Reference

List of all members.

Public Member Functions

void GetChildrenIds (const unsigned int node_num, unsigned int children[4], unsigned int &num_children)
void ResetIndex ()
unsigned int GetNext ()
unsigned int GetParentId (const unsigned int nodenum)
unsigned int GetParentId (unsigned int x, unsigned int y, unsigned int row_size, unsigned depth)
unsigned int GetDepth (const unsigned int nodenum)
void GetPosition (const unsigned int nodenum, unsigned int &x, unsigned int &y, unsigned int &row_size, unsigned int &depth)
unsigned int GetIndex (const unsigned int x, const unsigned int y, const unsigned int row_size, unsigned int depth)
void GetInputCoordinates (unsigned int node_num, double coords[2][2][2])
unsigned int GetTransform (unsigned int src_x, unsigned int src_y, unsigned int depth, unsigned int stop_x, unsigned int stop_y, double &dest_x, double &dest_y)

Public Attributes

double x_crop_scale
double y_crop_scale
double x_crop_offs
double y_crop_offs
TreeNode nodes [1+4+16+64+256+1024+4096]

Private Attributes

unsigned int cur_tree_node

Detailed Description

Definition at line 129 of file VertexCoordRemapper.h.


Member Function Documentation

void VertexCoordRemapper::Tree::GetChildrenIds ( const unsigned int  node_num,
unsigned int  children[4],
unsigned int &  num_children 
)

unsigned int VertexCoordRemapper::Tree::GetDepth ( const unsigned int  nodenum  ) 

Definition at line 813 of file VertexCoordRemapper.cpp.

Referenced by GetPosition().

unsigned int VertexCoordRemapper::Tree::GetIndex ( const unsigned int  x,
const unsigned int  y,
const unsigned int  row_size,
unsigned int  depth 
)

Definition at line 844 of file VertexCoordRemapper.cpp.

Referenced by GetNext(), and GetTransform().

void VertexCoordRemapper::Tree::GetInputCoordinates ( unsigned int  node_num,
double  coords[2][2][2] 
)

Definition at line 858 of file VertexCoordRemapper.cpp.

References flags, GetParentId(), GetPosition(), nodes, split_flag_x, split_flag_y, x_crop_offs, x_crop_scale, y_crop_offs, and y_crop_scale.

Referenced by VertexCoordRemapper::GetNextFaceCoordinates().

unsigned int VertexCoordRemapper::Tree::GetNext (  ) 

Definition at line 919 of file VertexCoordRemapper.cpp.

References cur_tree_node, flags, VertexCoordRemapper::TreeNode::flags, GetIndex(), GetPosition(), nodes, split_flag_x, and split_flag_y.

Referenced by VertexCoordRemapper::GetNextFaceCoordinates().

unsigned int VertexCoordRemapper::Tree::GetParentId ( unsigned int  x,
unsigned int  y,
unsigned int  row_size,
unsigned  depth 
)

unsigned int VertexCoordRemapper::Tree::GetParentId ( const unsigned int  nodenum  ) 

Definition at line 790 of file VertexCoordRemapper.cpp.

References GetPosition().

Referenced by GetInputCoordinates(), and VertexCoordRemapper::TestSubdivide().

void VertexCoordRemapper::Tree::GetPosition ( const unsigned int  nodenum,
unsigned int &  x,
unsigned int &  y,
unsigned int &  row_size,
unsigned int &  depth 
)

Definition at line 824 of file VertexCoordRemapper.cpp.

References GetDepth().

Referenced by GetInputCoordinates(), GetNext(), GetParentId(), and VertexCoordRemapper::TestSubdivide().

unsigned int VertexCoordRemapper::Tree::GetTransform ( unsigned int  src_x,
unsigned int  src_y,
unsigned int  depth,
unsigned int  stop_x,
unsigned int  stop_y,
double &  dest_x,
double &  dest_y 
)

Definition at line 985 of file VertexCoordRemapper.cpp.

References flags, GetIndex(), nodes, split_flag_x, split_flag_y, transform_fail_flag, vertex_side_flag_start, and VertexCoordRemapper::TreeNode::verts.

Referenced by VertexCoordRemapper::TestSubdivide().

void VertexCoordRemapper::Tree::ResetIndex (  ) 

Definition at line 914 of file VertexCoordRemapper.cpp.

References cur_tree_node.

Referenced by VertexCoordRemapper::UpdateAndResetIndex().


Member Data Documentation

unsigned int VertexCoordRemapper::Tree::cur_tree_node [private]

Definition at line 173 of file VertexCoordRemapper.h.

Referenced by GetNext(), and ResetIndex().

TreeNode VertexCoordRemapper::Tree::nodes[1+4+16+64+256+1024+4096]

Definition at line 171 of file VertexCoordRemapper.h.

Referenced by GetInputCoordinates(), GetNext(), VertexCoordRemapper::GetNextFaceCoordinates(), GetTransform(), and VertexCoordRemapper::TestSubdivide().

double VertexCoordRemapper::Tree::x_crop_offs

Definition at line 157 of file VertexCoordRemapper.h.

Referenced by GetInputCoordinates(), and VertexCoordRemapper::UpdateAndResetIndex().

double VertexCoordRemapper::Tree::x_crop_scale

Definition at line 157 of file VertexCoordRemapper.h.

Referenced by GetInputCoordinates(), and VertexCoordRemapper::UpdateAndResetIndex().

double VertexCoordRemapper::Tree::y_crop_offs

Definition at line 157 of file VertexCoordRemapper.h.

Referenced by GetInputCoordinates(), and VertexCoordRemapper::UpdateAndResetIndex().

double VertexCoordRemapper::Tree::y_crop_scale

Definition at line 157 of file VertexCoordRemapper.h.

Referenced by GetInputCoordinates(), and VertexCoordRemapper::UpdateAndResetIndex().


The documentation for this class was generated from the following files:
Generated on 23 Oct 2014 for Hugintrunk by  doxygen 1.4.7