Commit c204cb45 authored by Laurent Belcour's avatar Laurent Belcour

Adding a parametrization class and ways to evaluate the parametrization

from objects
parent d1545947
......@@ -7,6 +7,7 @@
#include "common.h"
#include "args.h"
#include "params.h"
class data ;
......@@ -64,6 +65,7 @@ class function
virtual vec getMin() const { return _min ; }
virtual vec getMax() const { return _max ; }
virtual params::type parametrization() const { return params::UNKNOWN; }
protected: //data
......
......@@ -12,16 +12,29 @@
*/
class params
{
//! \brief list of all supported parametrization. An unsupported
//! parametrization will go under the name <em>unknown</em>.
enum type
{
unknown
};
public: // data
//! \brief static function for input type convertion.
static vec convert(const vec& invec, params::type intype, params::type outtype)
{
return invec;
}
//! \brief list of all supported parametrization. An unsupported
//! parametrization will go under the name <em>unknown</em>.
enum type
{
ROMEIRO_TH_TD,
RUSIN_TH_PH_TD,
RUSIN_TH_TD_PD,
RUSIN_TH_PH_TD_PD,
COS_TH_TD,
ISOTROPIC_TV_TL_DPHI,
ISOTROPIC_TD_PD, // Difference between two directions such as R and H
CARTESIAN,
SPHERICAL_TL_PL_TV_PV,
UNKNOWN
};
public: // methods
//! \brief static function for input type convertion.
static vec convert(const vec& invec, params::type intype, params::type outtype)
{
return invec;
}
};
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment