afl::InterpolationFactory Class Reference

#include <interpolationfactory.h>

List of all members.

Static Public Member Functions

static Interpolatorinterpolation (XMLNode *interpolation, Field *field, const ddf::PropertySet *pset)
static Interpolatorinterpolation (const std::string &function, Field *field, const ddf::PropertySet *pset)
static InterpolatoranalyticInterpolation (Field *field, const std::string &formula)
static InterpolatoranalyticInterpolation (const std::vector< std::string > &formulas, Field *field, size_t columns=1)


Detailed Description

creates interpolation objects


Member Function Documentation

static Interpolator* afl::InterpolationFactory::analyticInterpolation const std::vector< std::string > &  formulas,
Field field,
size_t  columns = 1
[static]
 

creates an analytic interpolation object from forumlas

Parameters:
formulas the formulas the object is described as
field the field that will own the interpolation object
columns the number of columns in the formulas matrix (default is 1)
Returns:
the analytic interpolation object
Exceptions:
ddf::ParseException if the formula is malformed or if the number of formulas is not divisable by the number of columns

static Interpolator* afl::InterpolationFactory::analyticInterpolation Field field,
const std::string &  formula
[static]
 

creates an analytic interpolation object from a formula for scalar fields

Parameters:
formula the formula the object is described as
field the field that will own the interpolation object
Returns:
the analytic interpolation object
Exceptions:
ddf::ParseException if the formula is malformed

static Interpolator* afl::InterpolationFactory::interpolation const std::string &  function,
Field field,
const ddf::PropertySet pset
[static]
 

creates a basis interpolation from an expression and a numeric property set

Parameters:
function the expression in Ui and Ksii that defines the interpolation
field the field that will own the interpolation object
pset the numeric property set that containes "x" and "v"
Returns:
a new basis interpolation for the right space according to the geometry of "x"
Exceptions:
ddf::ParseException if function fails in the parser

static Interpolator* afl::InterpolationFactory::interpolation XMLNode interpolation,
Field field,
const ddf::PropertySet pset
[static]
 

create an interpolation object from XML

Parameters:
interpolation an XML node of the type: <numeric|analytic> ... </numeric|analytic> where the ... represents the interpolation object itself
field the field that will own the interpolation object
pset the DDF property set that contains the points and values
Returns:
the interpolation method used.
Exceptions:
ddf::ParseException if the interpolation method is not recognized from the XML or if the XML is malformed.


The documentation for this class was generated from the following file:
Generated on Fri Dec 22 07:17:51 2006 for afl by  doxygen 1.4.6