sofa::component::mapping::SPHFluidSurfaceMapping< In, Out > Class Template Reference

#include <SPHFluidSurfaceMapping.h>

Inheritance diagram for sofa::component::mapping::SPHFluidSurfaceMapping< In, Out >:

Inheritance graph
[legend]
Collaboration diagram for sofa::component::mapping::SPHFluidSurfaceMapping< In, Out >:

Collaboration graph
[legend]

Public Types

typedef core::Mapping< In, Out > Inherit
typedef Out::VecCoord OutVecCoord
typedef Out::VecDeriv OutVecDeriv
typedef Out::Coord OutCoord
typedef Out::Deriv OutDeriv
typedef OutCoord::value_type OutReal
typedef In::VecCoord InVecCoord
typedef In::VecDeriv InVecDeriv
typedef In::Coord InCoord
typedef In::Deriv InDeriv
typedef InCoord::value_type InReal

Public Member Functions

 SPHFluidSurfaceMapping (In *from, Out *to)
virtual ~SPHFluidSurfaceMapping ()
double getStep () const
void setStep (double val)
double getRadius () const
void setRadius (double val)
double getIsoValue () const
void setIsoValue (double val)
void init ()
 Initialization method called at graph modification, during bottom-up traversal.
void apply (OutVecCoord &out, const InVecCoord &in)
void applyJ (OutVecDeriv &out, const InVecDeriv &in)
void draw ()
 Render internal data of this object, for debugging purposes.

Protected Types

enum  { GRIDDIM = Grid::GRIDDIM }
enum  { DX = Grid::DX }
enum  { DY = Grid::DY }
enum  { DZ = Grid::DZ }
typedef
forcefield::SPHFluidForceField
< typename In::DataTypes > 
SPHForceField
typedef
SPHFluidSurfaceMappingGridTypes
< typename In::DataTypes,
typename Out::DataTypes > 
GridTypes
typedef SpatialGrid< GridTypes > Grid
typedef Grid::Cell Cell

Protected Member Functions

void createPoints (OutVecCoord &out, int x, int y, int z, Cell *c, const Cell *cx, const Cell *cy, const Cell *cz, const OutReal isoval)
void createFaces (OutVecCoord &out, const Cell **cells, const OutReal isoval)
template<int C>
int addPoint (OutVecCoord &out, int x, int y, int z, OutReal v0, OutReal v1, OutReal iso)
int addFace (int p1, int p2, int p3, int nbp)

Protected Attributes

Data< double > mStep
Data< double > mRadius
Data< double > mIsoValue
SPHForceField * sph
Grid * grid

Detailed Description

template<class In, class Out>
class sofa::component::mapping::SPHFluidSurfaceMapping< In, Out >

Definition at line 96 of file SPHFluidSurfaceMapping.h.


Member Typedef Documentation

template<class In , class Out >
typedef Grid::Cell sofa::component::mapping::SPHFluidSurfaceMapping< In, Out >::Cell [protected]

Definition at line 174 of file SPHFluidSurfaceMapping.h.

template<class In , class Out >
typedef SpatialGrid<GridTypes> sofa::component::mapping::SPHFluidSurfaceMapping< In, Out >::Grid [protected]

Definition at line 173 of file SPHFluidSurfaceMapping.h.

template<class In , class Out >
typedef SPHFluidSurfaceMappingGridTypes<typename In::DataTypes, typename Out::DataTypes> sofa::component::mapping::SPHFluidSurfaceMapping< In, Out >::GridTypes [protected]

Definition at line 171 of file SPHFluidSurfaceMapping.h.

template<class In , class Out >
typedef In::Coord sofa::component::mapping::SPHFluidSurfaceMapping< In, Out >::InCoord

Definition at line 107 of file SPHFluidSurfaceMapping.h.

template<class In , class Out >
typedef In::Deriv sofa::component::mapping::SPHFluidSurfaceMapping< In, Out >::InDeriv

Definition at line 108 of file SPHFluidSurfaceMapping.h.

template<class In , class Out >
typedef core::Mapping<In, Out> sofa::component::mapping::SPHFluidSurfaceMapping< In, Out >::Inherit

Definition at line 99 of file SPHFluidSurfaceMapping.h.

template<class In , class Out >
typedef InCoord::value_type sofa::component::mapping::SPHFluidSurfaceMapping< In, Out >::InReal

Definition at line 109 of file SPHFluidSurfaceMapping.h.

template<class In , class Out >
typedef In::VecCoord sofa::component::mapping::SPHFluidSurfaceMapping< In, Out >::InVecCoord

Definition at line 105 of file SPHFluidSurfaceMapping.h.

template<class In , class Out >
typedef In::VecDeriv sofa::component::mapping::SPHFluidSurfaceMapping< In, Out >::InVecDeriv

Definition at line 106 of file SPHFluidSurfaceMapping.h.

template<class In , class Out >
typedef Out::Coord sofa::component::mapping::SPHFluidSurfaceMapping< In, Out >::OutCoord

Definition at line 102 of file SPHFluidSurfaceMapping.h.

template<class In , class Out >
typedef Out::Deriv sofa::component::mapping::SPHFluidSurfaceMapping< In, Out >::OutDeriv

Definition at line 103 of file SPHFluidSurfaceMapping.h.

template<class In , class Out >
typedef OutCoord::value_type sofa::component::mapping::SPHFluidSurfaceMapping< In, Out >::OutReal

Definition at line 104 of file SPHFluidSurfaceMapping.h.

template<class In , class Out >
typedef Out::VecCoord sofa::component::mapping::SPHFluidSurfaceMapping< In, Out >::OutVecCoord

Definition at line 100 of file SPHFluidSurfaceMapping.h.

template<class In , class Out >
typedef Out::VecDeriv sofa::component::mapping::SPHFluidSurfaceMapping< In, Out >::OutVecDeriv

Definition at line 101 of file SPHFluidSurfaceMapping.h.

template<class In , class Out >
typedef forcefield::SPHFluidForceField<typename In::DataTypes> sofa::component::mapping::SPHFluidSurfaceMapping< In, Out >::SPHForceField [protected]

Definition at line 166 of file SPHFluidSurfaceMapping.h.


Member Enumeration Documentation

template<class In , class Out >
anonymous enum [protected]

Enumerator:
GRIDDIM 

Definition at line 175 of file SPHFluidSurfaceMapping.h.

template<class In , class Out >
anonymous enum [protected]

Enumerator:
DX 

Definition at line 176 of file SPHFluidSurfaceMapping.h.

template<class In , class Out >
anonymous enum [protected]

Enumerator:
DY 

Definition at line 177 of file SPHFluidSurfaceMapping.h.

template<class In , class Out >
anonymous enum [protected]

Enumerator:
DZ 

Definition at line 178 of file SPHFluidSurfaceMapping.h.


Constructor & Destructor Documentation

template<class In , class Out >
sofa::component::mapping::SPHFluidSurfaceMapping< In, Out >::SPHFluidSurfaceMapping ( In *  from,
Out *  to 
) [inline]

Definition at line 111 of file SPHFluidSurfaceMapping.h.

template<class In , class Out >
virtual sofa::component::mapping::SPHFluidSurfaceMapping< In, Out >::~SPHFluidSurfaceMapping (  )  [inline, virtual]

Definition at line 120 of file SPHFluidSurfaceMapping.h.


Member Function Documentation

template<class In , class Out >
int sofa::component::mapping::SPHFluidSurfaceMapping< In, Out >::addFace ( int  p1,
int  p2,
int  p3,
int  nbp 
) [inline, protected]

template<class In , class Out >
template<int C>
int sofa::component::mapping::SPHFluidSurfaceMapping< In, Out >::addPoint ( OutVecCoord &  out,
int  x,
int  y,
int  z,
OutReal  v0,
OutReal  v1,
OutReal  iso 
) [inline, protected]

template<class In , class Out >
void sofa::component::mapping::SPHFluidSurfaceMapping< In, Out >::apply ( OutVecCoord &  out,
const InVecCoord &  in 
) [inline]

template<class In , class Out >
void sofa::component::mapping::SPHFluidSurfaceMapping< In, Out >::applyJ ( OutVecDeriv &  out,
const InVecDeriv &  in 
) [inline]

Definition at line 346 of file SPHFluidSurfaceMapping.inl.

template<class In , class Out >
void sofa::component::mapping::SPHFluidSurfaceMapping< In, Out >::createFaces ( OutVecCoord &  out,
const Cell **  cells,
const OutReal  isoval 
) [inline, protected]

template<class In , class Out >
void sofa::component::mapping::SPHFluidSurfaceMapping< In, Out >::createPoints ( OutVecCoord &  out,
int  x,
int  y,
int  z,
Cell *  c,
const Cell *  cx,
const Cell *  cy,
const Cell *  cz,
const OutReal  isoval 
) [inline, protected]

template<class In , class Out >
void sofa::component::mapping::SPHFluidSurfaceMapping< In, Out >::draw (  )  [inline, virtual]

template<class In , class Out >
double sofa::component::mapping::SPHFluidSurfaceMapping< In, Out >::getIsoValue (  )  const [inline]

template<class In , class Out >
double sofa::component::mapping::SPHFluidSurfaceMapping< In, Out >::getRadius (  )  const [inline]

template<class In , class Out >
double sofa::component::mapping::SPHFluidSurfaceMapping< In, Out >::getStep (  )  const [inline]

template<class In , class Out >
void sofa::component::mapping::SPHFluidSurfaceMapping< In, Out >::init ( void   )  [inline, virtual]

template<class In , class Out >
void sofa::component::mapping::SPHFluidSurfaceMapping< In, Out >::setIsoValue ( double  val  )  [inline]

template<class In , class Out >
void sofa::component::mapping::SPHFluidSurfaceMapping< In, Out >::setRadius ( double  val  )  [inline]

template<class In , class Out >
void sofa::component::mapping::SPHFluidSurfaceMapping< In, Out >::setStep ( double  val  )  [inline]


Field Documentation

template<class In , class Out >
Grid* sofa::component::mapping::SPHFluidSurfaceMapping< In, Out >::grid [protected]

template<class In , class Out >
Data< double > sofa::component::mapping::SPHFluidSurfaceMapping< In, Out >::mIsoValue [protected]

template<class In , class Out >
Data< double > sofa::component::mapping::SPHFluidSurfaceMapping< In, Out >::mRadius [protected]

template<class In , class Out >
Data< double > sofa::component::mapping::SPHFluidSurfaceMapping< In, Out >::mStep [protected]

template<class In , class Out >
SPHForceField* sofa::component::mapping::SPHFluidSurfaceMapping< In, Out >::sph [protected]


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

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