C3D Toolkit
Kernel - 117950, Vision - 2.7.5.29
|
Factory of functions. More...
#include <function_factory.h>
Public Member Functions | |
MbFunctionFactory () | |
Constructor. | |
MbResultType | Status () const |
Get the state of creation. | |
MbFunction * | CreateAnalyticalFunction (const c3d::string_t &data, MbListVars &vars, const MbMathematicalNode &root, const c3d::string_t &argument, double tmin, double tmax) const |
MbFunction * | CreateAnalyticalFunction (const c3d::string_t &data, const c3d::string_t &argument, double tmin, double tmax, bool useFirstVar=false) const |
Create a symbolic function. More... | |
MbFunction * | CreateConstFunction (double value) const |
Create a constant function. | |
MbFunction * | CreateLineFunction (double v1, double v2, double t1, double t2) const |
Create a linear function. | |
MbFunction * | CreateCubicFunction (const SArray< double > &values, bool closed) const |
Create a cubic function. | |
MbFunction * | CreateCubicFunction (const SArray< double > &values, const SArray< double > ¶ms, bool closed) const |
Create a cubic function. | |
MbFunction * | CreateCubicFunction (const SArray< double > &values, const SArray< double > &firsts, const SArray< double > ¶ms, bool closed) const |
Create a cubic function. | |
![]() | |
void | Lock () const |
Switch lock on (locking happens only in parallel region). | |
void | Unlock () const |
Switch lock off if locking has been set. | |
Factory of functions.
Factory of functions.
MbFunction* MbFunctionFactory::CreateAnalyticalFunction | ( | const c3d::string_t & | data, |
MbListVars & | vars, | ||
const MbMathematicalNode & | root, | ||
const c3d::string_t & | argument, | ||
double | tmin, | ||
double | tmax | ||
) | const |
MbFunction* MbFunctionFactory::CreateAnalyticalFunction | ( | const c3d::string_t & | data, |
const c3d::string_t & | argument, | ||
double | tmin, | ||
double | tmax, | ||
bool | useFirstVar = false |
||
) | const |
Create a symbolic function.
Create symbolic function from its string representation.
[in] | data | - String representation of a function. |
[in] | argument | - String representation of a function argument. |
[in] | tmin | - Minimum function value. |
[in] | tmax | - Maximum function value. |
[in] | useFirstVar | - Flag for selecting the analytical function to use: if useFirstVar = true, MdAnalyticalFunction is used; when useFirstVar = false, MdCharacterFunction is used. |