Public Types | Public Member Functions | Public Attributes

OpenTissue::t4mesh::default_point_container< M > Struct Template Reference

#include <t4mesh_default_point_container.h>

List of all members.

Public Types

typedef M mesh_type
typedef mesh_type::math_types math_types
typedef math_types::vector3_type value_type

Public Member Functions

 default_point_container (mesh_type *mesh)
value_typeoperator[] (unsigned int const &idx)
value_type const & operator[] (unsigned int const &idx) const
void clear ()
size_t size () const
void resize (size_t)

Public Attributes

mesh_typem_mesh

Detailed Description

template<typename M>
struct OpenTissue::t4mesh::default_point_container< M >

Default Point Container. This utility class can be used to make the coordniates of the nodes in a tetrahedra mesh appear as a point container, i.e. as though the coordinates are stored as

std::vector<vector3_type> coordinates;

and accesses as

coordinates[node->idx()]

instead of

node->m_coord

Many algoritms in OpenTissue have been implemented in such a way that they do not rely on nodes to have a m_coord member. Instead coordinates are passed as point containers. This utility make it convenient to use these algorithms on nodes where coordinates are stored in m_coord member.


Member Typedef Documentation

template<typename M>
typedef M OpenTissue::t4mesh::default_point_container< M >::mesh_type

Constructor & Destructor Documentation

template<typename M>
OpenTissue::t4mesh::default_point_container< M >::default_point_container ( mesh_type mesh  )  [inline]

Member Function Documentation

template<typename M>
void OpenTissue::t4mesh::default_point_container< M >::clear (  )  [inline]
template<typename M>
value_type const& OpenTissue::t4mesh::default_point_container< M >::operator[] ( unsigned int const &  idx  )  const [inline]
template<typename M>
value_type& OpenTissue::t4mesh::default_point_container< M >::operator[] ( unsigned int const &  idx  )  [inline]
template<typename M>
void OpenTissue::t4mesh::default_point_container< M >::resize ( size_t   )  [inline]
template<typename M>
size_t OpenTissue::t4mesh::default_point_container< M >::size (  )  const [inline]

Member Data Documentation


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