sofa::component::mapping::BarycentricMapperRegularGridTopology< gpu::cuda::CudaVectorTypes< VecIn, VecIn, float >, gpu::cuda::CudaVectorTypes< VecOut, VecOut, float > > Class Template Reference

#include <CudaBarycentricMapping.h>

Inheritance diagram for sofa::component::mapping::BarycentricMapperRegularGridTopology< gpu::cuda::CudaVectorTypes< VecIn, VecIn, float >, gpu::cuda::CudaVectorTypes< VecOut, VecOut, float > >:

Inheritance graph
[legend]
Collaboration diagram for sofa::component::mapping::BarycentricMapperRegularGridTopology< gpu::cuda::CudaVectorTypes< VecIn, VecIn, float >, gpu::cuda::CudaVectorTypes< VecOut, VecOut, float > >:

Collaboration graph
[legend]

Public Types

typedef
gpu::cuda::CudaVectorTypes
< VecIn, VecIn, float > 
In
typedef
gpu::cuda::CudaVectorTypes
< VecOut, VecOut, float > 
Out
typedef
TopologyBarycentricMapper< In,
Out > 
Inherit
typedef Inherit::Real Real
typedef Inherit::OutReal OutReal
typedef Inherit::CubeData CubeData

Public Member Functions

 BarycentricMapperRegularGridTopology (topology::RegularGridTopology *topology)
void clear (int reserve=0)
int addPointInCube (int cubeIndex, const Real *baryCoords)
bool isEmpty ()
void setTopology (topology::RegularGridTopology *_topology)
void init (const typename Out::VecCoord &out, const typename In::VecCoord &in)
void apply (typename Out::VecCoord &out, const typename In::VecCoord &in)
void applyJ (typename Out::VecDeriv &out, const typename In::VecDeriv &in)
void applyJT (typename In::VecDeriv &out, const typename Out::VecDeriv &in)
void applyJT (typename In::VecConst &out, const typename Out::VecConst &in)
void draw (const typename Out::VecCoord &out, const typename In::VecCoord &in)

Protected Member Functions

void calcMapT ()

Protected Attributes

gpu::cuda::CudaVector< CubeData > map
int maxNOut
gpu::cuda::CudaVector
< std::pair< int, float > > 
mapT
topology::RegularGridTopology * topology

Friends

std::istream & operator>> (std::istream &in, BarycentricMapperRegularGridTopology< In, Out > &b)
std::ostream & operator<< (std::ostream &out, const BarycentricMapperRegularGridTopology< In, Out > &b)

Detailed Description

template<typename VecIn, typename VecOut>
class sofa::component::mapping::BarycentricMapperRegularGridTopology< gpu::cuda::CudaVectorTypes< VecIn, VecIn, float >, gpu::cuda::CudaVectorTypes< VecOut, VecOut, float > >

Definition at line 44 of file CudaBarycentricMapping.h.


Member Typedef Documentation

template<typename VecIn , typename VecOut >
typedef Inherit::CubeData sofa::component::mapping::BarycentricMapperRegularGridTopology< gpu::cuda::CudaVectorTypes< VecIn, VecIn, float >, gpu::cuda::CudaVectorTypes< VecOut, VecOut, float > >::CubeData

template<typename VecIn , typename VecOut >
typedef gpu::cuda::CudaVectorTypes<VecIn,VecIn,float> sofa::component::mapping::BarycentricMapperRegularGridTopology< gpu::cuda::CudaVectorTypes< VecIn, VecIn, float >, gpu::cuda::CudaVectorTypes< VecOut, VecOut, float > >::In

Definition at line 47 of file CudaBarycentricMapping.h.

template<typename VecIn , typename VecOut >
typedef TopologyBarycentricMapper<In,Out> sofa::component::mapping::BarycentricMapperRegularGridTopology< gpu::cuda::CudaVectorTypes< VecIn, VecIn, float >, gpu::cuda::CudaVectorTypes< VecOut, VecOut, float > >::Inherit

template<typename VecIn , typename VecOut >
typedef gpu::cuda::CudaVectorTypes<VecOut,VecOut,float> sofa::component::mapping::BarycentricMapperRegularGridTopology< gpu::cuda::CudaVectorTypes< VecIn, VecIn, float >, gpu::cuda::CudaVectorTypes< VecOut, VecOut, float > >::Out

Definition at line 48 of file CudaBarycentricMapping.h.

template<typename VecIn , typename VecOut >
typedef Inherit::OutReal sofa::component::mapping::BarycentricMapperRegularGridTopology< gpu::cuda::CudaVectorTypes< VecIn, VecIn, float >, gpu::cuda::CudaVectorTypes< VecOut, VecOut, float > >::OutReal

template<typename VecIn , typename VecOut >
typedef Inherit::Real sofa::component::mapping::BarycentricMapperRegularGridTopology< gpu::cuda::CudaVectorTypes< VecIn, VecIn, float >, gpu::cuda::CudaVectorTypes< VecOut, VecOut, float > >::Real


Constructor & Destructor Documentation

template<typename VecIn , typename VecOut >
sofa::component::mapping::BarycentricMapperRegularGridTopology< gpu::cuda::CudaVectorTypes< VecIn, VecIn, float >, gpu::cuda::CudaVectorTypes< VecOut, VecOut, float > >::BarycentricMapperRegularGridTopology ( topology::RegularGridTopology *  topology  )  [inline]

Definition at line 60 of file CudaBarycentricMapping.h.


Member Function Documentation

template<typename VecIn , typename VecOut >
int sofa::component::mapping::BarycentricMapperRegularGridTopology< gpu::cuda::CudaVectorTypes< VecIn, VecIn, float >, gpu::cuda::CudaVectorTypes< VecOut, VecOut, float > >::addPointInCube ( int  cubeIndex,
const Real *  baryCoords 
) [inline]

Definition at line 95 of file CudaBarycentricMapping.inl.

template<typename VecIn , typename VecOut >
void sofa::component::mapping::BarycentricMapperRegularGridTopology< gpu::cuda::CudaVectorTypes< VecIn, VecIn, float >, gpu::cuda::CudaVectorTypes< VecOut, VecOut, float > >::apply ( typename Out::VecCoord &  out,
const typename In::VecCoord &  in 
) [virtual]

template<typename VecIn , typename VecOut >
void sofa::component::mapping::BarycentricMapperRegularGridTopology< gpu::cuda::CudaVectorTypes< VecIn, VecIn, float >, gpu::cuda::CudaVectorTypes< VecOut, VecOut, float > >::applyJ ( typename Out::VecDeriv &  out,
const typename In::VecDeriv &  in 
)

template<typename VecIn , typename VecOut >
void sofa::component::mapping::BarycentricMapperRegularGridTopology< gpu::cuda::CudaVectorTypes< VecIn, VecIn, float >, gpu::cuda::CudaVectorTypes< VecOut, VecOut, float > >::applyJT ( typename In::VecConst &  out,
const typename Out::VecConst &  in 
)

template<typename VecIn , typename VecOut >
void sofa::component::mapping::BarycentricMapperRegularGridTopology< gpu::cuda::CudaVectorTypes< VecIn, VecIn, float >, gpu::cuda::CudaVectorTypes< VecOut, VecOut, float > >::applyJT ( typename In::VecDeriv &  out,
const typename Out::VecDeriv &  in 
)

template<typename VecIn , typename VecOut >
void sofa::component::mapping::BarycentricMapperRegularGridTopology< gpu::cuda::CudaVectorTypes< VecIn, VecIn, float >, gpu::cuda::CudaVectorTypes< VecOut, VecOut, float > >::calcMapT (  )  [inline, protected]

Definition at line 133 of file CudaBarycentricMapping.inl.

References BSIZE.

template<typename VecIn , typename VecOut >
void sofa::component::mapping::BarycentricMapperRegularGridTopology< gpu::cuda::CudaVectorTypes< VecIn, VecIn, float >, gpu::cuda::CudaVectorTypes< VecOut, VecOut, float > >::clear ( int  reserve = 0  )  [inline, virtual]

template<typename VecIn , typename VecOut >
void sofa::component::mapping::BarycentricMapperRegularGridTopology< gpu::cuda::CudaVectorTypes< VecIn, VecIn, float >, gpu::cuda::CudaVectorTypes< VecOut, VecOut, float > >::draw ( const typename Out::VecCoord &  out,
const typename In::VecCoord &  in 
) [virtual]

template<typename VecIn , typename VecOut >
void sofa::component::mapping::BarycentricMapperRegularGridTopology< gpu::cuda::CudaVectorTypes< VecIn, VecIn, float >, gpu::cuda::CudaVectorTypes< VecOut, VecOut, float > >::init ( const typename Out::VecCoord &  out,
const typename In::VecCoord &  in 
) [inline, virtual]

template<typename VecIn , typename VecOut >
bool sofa::component::mapping::BarycentricMapperRegularGridTopology< gpu::cuda::CudaVectorTypes< VecIn, VecIn, float >, gpu::cuda::CudaVectorTypes< VecOut, VecOut, float > >::isEmpty (  )  [inline]

Definition at line 69 of file CudaBarycentricMapping.h.

template<typename VecIn , typename VecOut >
void sofa::component::mapping::BarycentricMapperRegularGridTopology< gpu::cuda::CudaVectorTypes< VecIn, VecIn, float >, gpu::cuda::CudaVectorTypes< VecOut, VecOut, float > >::setTopology ( topology::RegularGridTopology *  _topology  )  [inline]


Friends And Related Function Documentation

template<typename VecIn , typename VecOut >
std::ostream& operator<< ( std::ostream &  out,
const BarycentricMapperRegularGridTopology< In, Out > &  b 
) [friend]

Definition at line 85 of file CudaBarycentricMapping.h.

template<typename VecIn , typename VecOut >
std::istream& operator>> ( std::istream &  in,
BarycentricMapperRegularGridTopology< In, Out > &  b 
) [friend]

Definition at line 79 of file CudaBarycentricMapping.h.


Field Documentation

template<typename VecIn , typename VecOut >
gpu::cuda::CudaVector<CubeData> sofa::component::mapping::BarycentricMapperRegularGridTopology< gpu::cuda::CudaVectorTypes< VecIn, VecIn, float >, gpu::cuda::CudaVectorTypes< VecOut, VecOut, float > >::map [protected]

Definition at line 54 of file CudaBarycentricMapping.h.

template<typename VecIn , typename VecOut >
gpu::cuda::CudaVector< std::pair<int,float> > sofa::component::mapping::BarycentricMapperRegularGridTopology< gpu::cuda::CudaVectorTypes< VecIn, VecIn, float >, gpu::cuda::CudaVectorTypes< VecOut, VecOut, float > >::mapT [protected]

Definition at line 56 of file CudaBarycentricMapping.h.

template<typename VecIn , typename VecOut >
int sofa::component::mapping::BarycentricMapperRegularGridTopology< gpu::cuda::CudaVectorTypes< VecIn, VecIn, float >, gpu::cuda::CudaVectorTypes< VecOut, VecOut, float > >::maxNOut [protected]

Definition at line 55 of file CudaBarycentricMapping.h.

template<typename VecIn , typename VecOut >
topology::RegularGridTopology* sofa::component::mapping::BarycentricMapperRegularGridTopology< gpu::cuda::CudaVectorTypes< VecIn, VecIn, float >, gpu::cuda::CudaVectorTypes< VecOut, VecOut, float > >::topology [protected]

Definition at line 57 of file CudaBarycentricMapping.h.


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

Generated on Sun Nov 23 04:21:09 2008 for Sofa by  doxygen 1.5.7.1