Hugintrunk
0.1
|
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 |
Definition at line 129 of file VertexCoordRemapper.h.
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 816 of file VertexCoordRemapper.cpp.
unsigned int VertexCoordRemapper::Tree::GetIndex | ( | const unsigned int | x, |
const unsigned int | y, | ||
const unsigned int | row_size, | ||
unsigned int | depth | ||
) |
Definition at line 847 of file VertexCoordRemapper.cpp.
Referenced by VertexCoordRemapper::RecursiveUpdate().
void VertexCoordRemapper::Tree::GetInputCoordinates | ( | unsigned int | node_num, |
double | coords[2][2][2] | ||
) |
Definition at line 861 of file VertexCoordRemapper.cpp.
References flags, split_flag_x, and split_flag_y.
Referenced by VertexCoordRemapper::GetNextFaceCoordinates(), and VertexCoordRemapper::RecursiveUpdate().
unsigned int VertexCoordRemapper::Tree::GetNext | ( | ) |
Definition at line 922 of file VertexCoordRemapper.cpp.
References flags, split_flag_x, and split_flag_y.
Referenced by VertexCoordRemapper::GetNextFaceCoordinates().
unsigned int VertexCoordRemapper::Tree::GetParentId | ( | const unsigned int | nodenum | ) |
Definition at line 793 of file VertexCoordRemapper.cpp.
References GetPosition().
Referenced by VertexCoordRemapper::RecursiveUpdate(), and VertexCoordRemapper::TestSubdivide().
unsigned int VertexCoordRemapper::Tree::GetParentId | ( | unsigned int | x, |
unsigned int | y, | ||
unsigned int | row_size, | ||
unsigned | depth | ||
) |
void VertexCoordRemapper::Tree::GetPosition | ( | const unsigned int | nodenum, |
unsigned int & | x, | ||
unsigned int & | y, | ||
unsigned int & | row_size, | ||
unsigned int & | depth | ||
) |
Definition at line 827 of file VertexCoordRemapper.cpp.
Referenced by GetParentId(), VertexCoordRemapper::RecursiveUpdate(), 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 987 of file VertexCoordRemapper.cpp.
References flags, max_depth, split_flag_x, split_flag_y, transform_fail_flag, and vertex_side_flag_start.
Referenced by VertexCoordRemapper::RecursiveUpdate(), and VertexCoordRemapper::TestSubdivide().
void VertexCoordRemapper::Tree::ResetIndex | ( | ) |
Definition at line 917 of file VertexCoordRemapper.cpp.
Referenced by VertexCoordRemapper::UpdateAndResetIndex().
|
private |
Definition at line 173 of file VertexCoordRemapper.h.
TreeNode VertexCoordRemapper::Tree::nodes[1+4+16+64+256+1024+4096] |
Definition at line 171 of file VertexCoordRemapper.h.
Referenced by VertexCoordRemapper::GetNextFaceCoordinates(), VertexCoordRemapper::RecursiveUpdate(), and VertexCoordRemapper::TestSubdivide().
double VertexCoordRemapper::Tree::x_crop_offs |
Definition at line 157 of file VertexCoordRemapper.h.
Referenced by VertexCoordRemapper::UpdateAndResetIndex().
double VertexCoordRemapper::Tree::x_crop_scale |
Definition at line 157 of file VertexCoordRemapper.h.
Referenced by VertexCoordRemapper::UpdateAndResetIndex().
double VertexCoordRemapper::Tree::y_crop_offs |
Definition at line 157 of file VertexCoordRemapper.h.
Referenced by VertexCoordRemapper::UpdateAndResetIndex().
double VertexCoordRemapper::Tree::y_crop_scale |
Definition at line 157 of file VertexCoordRemapper.h.
Referenced by VertexCoordRemapper::UpdateAndResetIndex().