shape_doc 0.1
|
#include <node.hpp>
node | ( | void | ) |
Definition at line 125 of file node.hpp.
References node< _Object, _CELL >::depth, node< _Object, _CELL >::set_leftchild(), and node< _Object, _CELL >::set_rightchild().
{ this->m_cell = cl ; this->m_type = type ; this->m_var = v ; this->m_parent = parent ; this->m_left = NULL; this->m_right = NULL; depth = parent->depth+1 ; switch(type) { case LEFT : parent->set_leftchild(this) ; break ; case RIGHT: parent->set_rightchild(this) ; break ; default: std::cerr << "Error : the node's type isn't appropriate \n" ; break ; } }
Definition at line 113 of file node.hpp.
References node< _Object, _CELL >::depth, mmx::shape_ssi::left(), node< _Object, _CELL >::parent(), mmx::shape_ssi::right(), and node< _Object, _CELL >::type().
const CELL& get_cell | ( | void | ) | const [inline] |
Definition at line 46 of file node.hpp.
Referenced by dualize< C, V, Shape, Cell >::get_dual_edge(), dualize< C, V, Shape, Cell >::get_dual_face(), dualize< C, V, Shape, Cell >::get_dual_vertex(), topology2d< C, V >::run(), subdivision< C, V, Shape, Cell >::run(), mesher3d_shape< C, V >::run(), and mesher3d_curve_algebraic< C, V >::run().
{ return m_cell; }
bool is_leaf | ( | void | ) | const |
Definition at line 144 of file node.hpp.
Referenced by dualize< C, V, Shape, Cell >::get_dual_edge(), dualize< C, V, Shape, Cell >::get_dual_face(), and dualize< C, V, Shape, Cell >::get_dual_vertex().
size_t leaf_distance | ( | void | ) | const |
Definition at line 151 of file node.hpp.
References mmx::min(), and Node.
Definition at line 54 of file node.hpp.
Referenced by dualize< C, V, Shape, Cell >::get_dual_edge(), dualize< C, V, Shape, Cell >::get_dual_face(), and dualize< C, V, Shape, Cell >::get_dual_vertex().
{ return m_left ; }
Object object | ( | void | ) | [inline] |
Definition at line 56 of file node.hpp.
Referenced by node< _Object, _CELL >::node().
{ return m_parent ; }
Definition at line 55 of file node.hpp.
Referenced by dualize< C, V, Shape, Cell >::get_dual_edge(), dualize< C, V, Shape, Cell >::get_dual_face(), and dualize< C, V, Shape, Cell >::get_dual_vertex().
{ return m_right ; }
void set_cell | ( | const CELL & | c | ) | [inline] |
Definition at line 40 of file node.hpp.
Referenced by topology2d< C, V >::run(), mesher3d_curve_algebraic< C, V >::run(), and subdivision< C, V, Shape, Cell >::set_input().
{ m_cell = c ; }
Definition at line 43 of file node.hpp.
Referenced by node< _Object, _CELL >::node().
{ m_left = n ; }
Definition at line 41 of file node.hpp.
Referenced by kdtree< Object *, CELL * >::kdtree().
{ m_parent = n ; }
Definition at line 44 of file node.hpp.
Referenced by node< _Object, _CELL >::node().
{ m_right = n ; }
NODE_TYPE type | ( | void | ) | const [inline] |
Definition at line 51 of file node.hpp.
Referenced by node< _Object, _CELL >::node().
{ return m_type ; }
int depth |
Definition at line 76 of file node.hpp.
Referenced by node< _Object, _CELL >::node().
Definition at line 67 of file node.hpp.
Referenced by node< OBJECT, CELL >::get_cell(), and node< OBJECT, CELL >::set_cell().
Definition at line 73 of file node.hpp.
Referenced by node< OBJECT, CELL >::left(), node< OBJECT, CELL >::set_leftchild(), topology2d< C, V >::subdivide(), semialgebraic2d< C, V >::subdivide(), mesher3d_shape< C, V >::subdivide(), mesher3d_curve_algebraic< C, V >::subdivide(), and arrangement2d< C, V >::subdivide().
Definition at line 68 of file node.hpp.
Referenced by node< OBJECT, CELL >::object().
Definition at line 72 of file node.hpp.
Referenced by node< OBJECT, CELL >::parent(), and node< OBJECT, CELL >::set_parent().
Definition at line 74 of file node.hpp.
Referenced by node< OBJECT, CELL >::right(), node< OBJECT, CELL >::set_rightchild(), topology2d< C, V >::subdivide(), semialgebraic2d< C, V >::subdivide(), mesher3d_shape< C, V >::subdivide(), mesher3d_curve_algebraic< C, V >::subdivide(), and arrangement2d< C, V >::subdivide().
Definition at line 69 of file node.hpp.
Referenced by node< OBJECT, CELL >::type().
int m_var |
Definition at line 70 of file node.hpp.
Referenced by node< OBJECT, CELL >::split_dir(), and node< OBJECT, CELL >::var().