DistanceMapCalculator< SPACE_DIM > Class Template Reference

#include <DistanceMapCalculator.hpp>

Collaboration diagram for DistanceMapCalculator< SPACE_DIM >:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 DistanceMapCalculator (TetrahedralMesh< SPACE_DIM, SPACE_DIM > &rMesh)
void ComputeDistanceMap (const std::vector< unsigned > &rOriginSurface, std::vector< double > &rNodeDistances)

Private Member Functions

double EuclideanDistanceTwoPoints (const c_vector< double, SPACE_DIM > &pointA, const c_vector< double, SPACE_DIM > &pointB) const
double CartToEucliDistance (c_vector< double, SPACE_DIM > &cartDistance) const

Private Attributes

TetrahedralMesh< SPACE_DIM,
SPACE_DIM > & 
mrMesh
unsigned mNumNodes


Detailed Description

template<unsigned SPACE_DIM>
class DistanceMapCalculator< SPACE_DIM >

This class provides functionalities to compute a distance map in a given mesh from a given surface, specifying the distance from each node to the surface.

The mesh is specified in the constructor, and the ComputeDistanceMap computes (and returns by reference) the map.

Definition at line 44 of file DistanceMapCalculator.hpp.


Constructor & Destructor Documentation

template<unsigned SPACE_DIM>
DistanceMapCalculator< SPACE_DIM >::DistanceMapCalculator ( TetrahedralMesh< SPACE_DIM, SPACE_DIM > &  rMesh  )  [inline]

Constructor

Parameters:
rMesh the mesh to compute maps for

Definition at line 65 of file DistanceMapCalculator.cpp.

References AbstractMesh< ELEMENT_DIM, SPACE_DIM >::GetNumNodes(), DistanceMapCalculator< SPACE_DIM >::mNumNodes, and DistanceMapCalculator< SPACE_DIM >::mrMesh.


Member Function Documentation

template<unsigned SPACE_DIM>
double DistanceMapCalculator< SPACE_DIM >::EuclideanDistanceTwoPoints ( const c_vector< double, SPACE_DIM > &  pointA,
const c_vector< double, SPACE_DIM > &  pointB 
) const [inline, private]

Computes the euclidean distance of two given points

Parameters:
pointA First point
pointB Second point

Definition at line 35 of file DistanceMapCalculator.cpp.

Referenced by DistanceMapCalculator< SPACE_DIM >::ComputeDistanceMap().

template<unsigned SPACE_DIM>
double DistanceMapCalculator< SPACE_DIM >::CartToEucliDistance ( c_vector< double, SPACE_DIM > &  cartDistance  )  const [inline, private]

Given a cartesian distance, computes the associated euclidean distance

Parameters:
cartDistance Cartesian distance of a given point

Definition at line 50 of file DistanceMapCalculator.cpp.

Referenced by DistanceMapCalculator< SPACE_DIM >::ComputeDistanceMap().

template<unsigned SPACE_DIM>
void DistanceMapCalculator< SPACE_DIM >::ComputeDistanceMap ( const std::vector< unsigned > &  rOriginSurface,
std::vector< double > &  rNodeDistances 
) [inline]


Member Data Documentation

template<unsigned SPACE_DIM>
TetrahedralMesh<SPACE_DIM,SPACE_DIM>& DistanceMapCalculator< SPACE_DIM >::mrMesh [private]

template<unsigned SPACE_DIM>
unsigned DistanceMapCalculator< SPACE_DIM >::mNumNodes [private]


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

Generated on Tue Aug 4 16:11:13 2009 for Chaste by  doxygen 1.5.5