C3D Toolkit  Kernel - 117982, Vision - 2.9.2.2

Factory of functions. More...

#include <function_factory.h>

+ Inheritance diagram for MbFunctionFactory:
+ Collaboration diagram for MbFunctionFactory:

Public Member Functions

 MbFunctionFactory ()
 Constructor.
 
MbResultType Status () const
 Get the state of creation.
 
MbFunctionCreateAnalyticalFunction (const c3d::string_t &data, const c3d::string_t &argument, double tmin, double tmax, bool useFirstVar=false) const
 Create a symbolic function. More...
 
MbFunctionCreateConstFunction (double value) const
 Create a constant function.
 
MbFunctionCreateLineFunction (double v1, double v2, double t1, double t2) const
 Create a linear function.
 
MbFunctionCreateCubicFunction (const SArray< double > &values, bool closed) const
 Create a cubic function.
 
MbFunctionCreateCubicFunction (const SArray< double > &values, const SArray< double > &params, bool closed) const
 Create a cubic function.
 
MbFunctionCreateCubicFunction (const SArray< double > &values, const SArray< double > &firsts, const SArray< double > &params, bool closed) const
 Create a cubic function.
 
- Public Member Functions inherited from MbSyncItem
void Lock () const
 Switch lock on (locking happens only in parallel region).
 
void Unlock () const
 Switch lock off if locking has been set.
 

Detailed Description

Factory of functions.

Factory of functions.

Member Function Documentation

◆ CreateAnalyticalFunction()

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.

Parameters
[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.

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