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 (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 >

Todo:
This class defines

Definition at line 42 of file DistanceMapCalculator.hpp.


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 ( std::vector< unsigned > &  rOriginSurface,
std::vector< double > &  rNodeDistances 
) [inline]

Generates a distance map of all the nodes of the mesh to the given surface

Parameters:
rOriginSurface set of node indexes defining the surface
rNodeDistances distance map computed

Definition at line 73 of file DistanceMapCalculator.cpp.

References DistanceMapCalculator< SPACE_DIM >::CartToEucliDistance(), Node< SPACE_DIM >::ContainingElementsBegin(), Node< SPACE_DIM >::ContainingElementsEnd(), DistanceMapCalculator< SPACE_DIM >::EuclideanDistanceTwoPoints(), Node< SPACE_DIM >::GetIndex(), and Node< SPACE_DIM >::rGetLocation().


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

Generated on Wed Mar 18 12:52:29 2009 for Chaste by  doxygen 1.5.5