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

#include <ImplicitSurfaceMapping.h>

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

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

Collaboration graph
[legend]

Data Structures

struct  CubeData
 For each cube, store the vertex indices on each 3 first edges, and the data value. More...

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

 ImplicitSurfaceMapping (In *from, Out *to)
virtual ~ImplicitSurfaceMapping ()
virtual void init ()
 Initialization method called at graph modification, during bottom-up traversal.
virtual void parse (core::objectmodel::BaseObjectDescription *arg)
 Parse the given description to assign values to this object's fields and potentially other parameters.
double getStep () const
void setStep (double val)
double getRadius () const
void setRadius (double val)
double getIsoValue () const
void setIsoValue (double val)
const InCoord & getGridMin () const
void setGridMin (const InCoord &val)
void setGridMin (double x, double y, double z)
const InCoord & getGridMax () const
void setGridMax (const InCoord &val)
void setGridMax (double x, double y, double z)
void apply (OutVecCoord &out, const InVecCoord &in)
void applyJ (OutVecDeriv &out, const InVecDeriv &in)

Protected Member Functions

void newPlane ()
 Pointer to second plane.
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
Data< InCoord > mGridMin
Data< InCoord > mGridMax
Data< sofa::helper::vector
< CubeData > > 
planes
sofa::helper::vector< CubeData >
::iterator 
P0
sofa::helper::vector< CubeData >
::iterator 
P1
 Pointer to first plane.

Detailed Description

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

Definition at line 46 of file ImplicitSurfaceMapping.h.


Member Typedef Documentation

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

Definition at line 57 of file ImplicitSurfaceMapping.h.

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

Definition at line 58 of file ImplicitSurfaceMapping.h.

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

Definition at line 49 of file ImplicitSurfaceMapping.h.

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

Definition at line 59 of file ImplicitSurfaceMapping.h.

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

Definition at line 55 of file ImplicitSurfaceMapping.h.

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

Definition at line 56 of file ImplicitSurfaceMapping.h.

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

Definition at line 52 of file ImplicitSurfaceMapping.h.

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

Definition at line 53 of file ImplicitSurfaceMapping.h.

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

Definition at line 54 of file ImplicitSurfaceMapping.h.

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

Definition at line 50 of file ImplicitSurfaceMapping.h.

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

Definition at line 51 of file ImplicitSurfaceMapping.h.


Constructor & Destructor Documentation

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

Definition at line 61 of file ImplicitSurfaceMapping.h.

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

Definition at line 71 of file ImplicitSurfaceMapping.h.


Member Function Documentation

template<class In , class Out >
int sofa::component::mapping::ImplicitSurfaceMapping< 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::ImplicitSurfaceMapping< 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::ImplicitSurfaceMapping< In, Out >::apply ( OutVecCoord &  out,
const InVecCoord &  in 
) [inline]

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

Definition at line 270 of file ImplicitSurfaceMapping.inl.

template<class In , class Out >
const InCoord& sofa::component::mapping::ImplicitSurfaceMapping< In, Out >::getGridMax (  )  const [inline]

template<class In , class Out >
const InCoord& sofa::component::mapping::ImplicitSurfaceMapping< In, Out >::getGridMin (  )  const [inline]

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

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

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

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

Initialization method called at graph modification, during bottom-up traversal.

Reimplemented from sofa::core::Mapping< TIn, TOut >.

Definition at line 49 of file ImplicitSurfaceMapping.inl.

template<class In , class Out >
void sofa::component::mapping::ImplicitSurfaceMapping< In, Out >::newPlane (  )  [inline, protected]

template<class In , class Out >
void sofa::component::mapping::ImplicitSurfaceMapping< In, Out >::parse ( core::objectmodel::BaseObjectDescription *  arg  )  [inline, virtual]

template<class In , class Out >
void sofa::component::mapping::ImplicitSurfaceMapping< In, Out >::setGridMax ( double  x,
double  y,
double  z 
) [inline]

template<class In , class Out >
void sofa::component::mapping::ImplicitSurfaceMapping< In, Out >::setGridMax ( const InCoord &  val  )  [inline]

template<class In , class Out >
void sofa::component::mapping::ImplicitSurfaceMapping< In, Out >::setGridMin ( double  x,
double  y,
double  z 
) [inline]

template<class In , class Out >
void sofa::component::mapping::ImplicitSurfaceMapping< In, Out >::setGridMin ( const InCoord &  val  )  [inline]

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

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

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


Field Documentation

template<class In , class Out >
Data< InCoord > sofa::component::mapping::ImplicitSurfaceMapping< In, Out >::mGridMax [protected]

template<class In , class Out >
Data< InCoord > sofa::component::mapping::ImplicitSurfaceMapping< In, Out >::mGridMin [protected]

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

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

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

template<class In , class Out >
sofa::helper::vector<CubeData>::iterator sofa::component::mapping::ImplicitSurfaceMapping< In, Out >::P0 [protected]

template<class In , class Out >
sofa::helper::vector<CubeData>::iterator sofa::component::mapping::ImplicitSurfaceMapping< In, Out >::P1 [protected]

template<class In , class Out >
Data< sofa::helper::vector<CubeData> > sofa::component::mapping::ImplicitSurfaceMapping< In, Out >::planes [protected]


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

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