Public Types | Public Member Functions | Public Attributes | Protected Attributes | Friends

OpenTissue::bvh::BVHGraphEdge< bvh_type > Class Template Reference

#include <bvh_graph_edge.h>

List of all members.

Public Types

typedef BVHGraph< bvh_type > graph_type
typedef graph_type::node_ptr_type node_ptr_type
typedef graph_type::edge_type edge_type
typedef graph_type::real_type real_type

Public Member Functions

 BVHGraphEdge ()
node_ptr_type const & A () const
node_ptr_type const & B () const
node_ptr_typeA ()
node_ptr_typeB ()
const real_typepriority () const
real_typepriority ()
const bool operator> (const edge_type &edge) const
const bool operator< (const edge_type &edge) const

Public Attributes

unsigned int m_tag
 Tag, can be used for traversing graph structure.

Protected Attributes

node_ptr_type m_A
 Pointer to incidient graph node.
node_ptr_type m_B
 Pointer to other incidient graph node.
real_type m_priority

Friends

class BVHGraph< bvh_type >

Detailed Description

template<typename bvh_type>
class OpenTissue::bvh::BVHGraphEdge< bvh_type >

A BVH Graph Edge.


Member Typedef Documentation

template<typename bvh_type >
typedef graph_type::edge_type OpenTissue::bvh::BVHGraphEdge< bvh_type >::edge_type
template<typename bvh_type >
typedef BVHGraph<bvh_type> OpenTissue::bvh::BVHGraphEdge< bvh_type >::graph_type
template<typename bvh_type >
typedef graph_type::node_ptr_type OpenTissue::bvh::BVHGraphEdge< bvh_type >::node_ptr_type
template<typename bvh_type >
typedef graph_type::real_type OpenTissue::bvh::BVHGraphEdge< bvh_type >::real_type

Constructor & Destructor Documentation

template<typename bvh_type >
OpenTissue::bvh::BVHGraphEdge< bvh_type >::BVHGraphEdge (  )  [inline]

Member Function Documentation

template<typename bvh_type >
node_ptr_type const& OpenTissue::bvh::BVHGraphEdge< bvh_type >::A (  )  const [inline]
template<typename bvh_type >
node_ptr_type& OpenTissue::bvh::BVHGraphEdge< bvh_type >::A (  )  [inline]
template<typename bvh_type >
node_ptr_type const& OpenTissue::bvh::BVHGraphEdge< bvh_type >::B (  )  const [inline]
template<typename bvh_type >
node_ptr_type& OpenTissue::bvh::BVHGraphEdge< bvh_type >::B (  )  [inline]
template<typename bvh_type >
const bool OpenTissue::bvh::BVHGraphEdge< bvh_type >::operator< ( const edge_type edge  )  const [inline]
template<typename bvh_type >
const bool OpenTissue::bvh::BVHGraphEdge< bvh_type >::operator> ( const edge_type edge  )  const [inline]
template<typename bvh_type >
const real_type& OpenTissue::bvh::BVHGraphEdge< bvh_type >::priority (  )  const [inline]
template<typename bvh_type >
real_type& OpenTissue::bvh::BVHGraphEdge< bvh_type >::priority (  )  [inline]

Friends And Related Function Documentation

template<typename bvh_type >
friend class BVHGraph< bvh_type > [friend]

Member Data Documentation

template<typename bvh_type >
node_ptr_type OpenTissue::bvh::BVHGraphEdge< bvh_type >::m_A [protected]

Pointer to incidient graph node.

template<typename bvh_type >
node_ptr_type OpenTissue::bvh::BVHGraphEdge< bvh_type >::m_B [protected]

Pointer to other incidient graph node.

template<typename bvh_type >
real_type OpenTissue::bvh::BVHGraphEdge< bvh_type >::m_priority [protected]

Edge priority, used for picking edges, when an edge is collapsed, the two incident nodes are merged into one new graph node. If the merge do not result in a new BV node, then the union of the sub nodes of A and B are stored as sub nodes in the new graph node. If a new BV node is created as a result of the merge then the new graph node will not have any sub-nodes.

template<typename bvh_type >
unsigned int OpenTissue::bvh::BVHGraphEdge< bvh_type >::m_tag

Tag, can be used for traversing graph structure.


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