Developer Documentation
OpenMesh::VDPM::VHierarchy Class Reference

#include <OpenFlipper/libs_required/OpenMesh/src/OpenMesh/Tools/VDPM/VHierarchy.hh>

Public Types

typedef unsigned int id_t
 Type for tree and node ids.
 

Public Member Functions

void clear ()
 
unsigned char tree_id_bits () const
 
unsigned int num_roots () const
 
size_t num_nodes () const
 
VHierarchyNodeIndex generate_node_index (id_t _tree_id, id_t _node_id)
 
void set_num_roots (unsigned int _n_roots)
 
VHierarchyNodeHandle root_handle (unsigned int i) const
 
const VHierarchyNodenode (VHierarchyNodeHandle _vhierarchynode_handle) const
 
VHierarchyNodenode (VHierarchyNodeHandle _vhierarchynode_handle)
 
VHierarchyNodeHandle add_node ()
 
VHierarchyNodeHandle add_node (const VHierarchyNode &_node)
 
void make_children (VHierarchyNodeHandle &_parent_handle)
 
bool is_ancestor (VHierarchyNodeIndex _ancestor_index, VHierarchyNodeIndex _descendent_index)
 
bool is_leaf_node (VHierarchyNodeHandle _node_handle)
 
bool is_root_node (VHierarchyNodeHandle _node_handle)
 
const OpenMesh::Vec3fnormal (VHierarchyNodeHandle _node_handle) const
 
const VHierarchyNodeIndexnode_index (VHierarchyNodeHandle _node_handle) const
 
VHierarchyNodeIndexnode_index (VHierarchyNodeHandle _node_handle)
 
const VHierarchyNodeIndexfund_lcut_index (VHierarchyNodeHandle _node_handle) const
 
VHierarchyNodeIndexfund_lcut_index (VHierarchyNodeHandle _node_handle)
 
const VHierarchyNodeIndexfund_rcut_index (VHierarchyNodeHandle _node_handle) const
 
VHierarchyNodeIndexfund_rcut_index (VHierarchyNodeHandle _node_handle)
 
VertexHandle vertex_handle (VHierarchyNodeHandle _node_handle)
 
VHierarchyNodeHandle parent_handle (VHierarchyNodeHandle _node_handle)
 
VHierarchyNodeHandle lchild_handle (VHierarchyNodeHandle _node_handle)
 
VHierarchyNodeHandle rchild_handle (VHierarchyNodeHandle _node_handle)
 
VHierarchyNodeHandle node_handle (VHierarchyNodeIndex _node_index)
 

Private Member Functions

VHierarchyNodeHandle compute_dependency (VHierarchyNodeIndex index0, VHierarchyNodeIndex index1)
 

Private Attributes

VHierarchyNodeContainer nodes_
 
unsigned int n_roots_
 
unsigned char tree_id_bits_
 

Detailed Description

Keeps the vertex hierarchy build during analyzing a progressive mesh.

Definition at line 73 of file VHierarchy.hh.


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