C3D Toolkit  Kernel - 118069, Vision - 2.16.7.1844

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.
 
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 > &params, bool closed) const
 Create a cubic function.
 
MbFunction * CreateCubicFunction (const SArray< double > &values, const SArray< double > &firsts, const SArray< double > &params, bool closed) const
 Create a cubic function.
 
c3d::FunctionSPtr CreateFunctionByTransitions (const c3d::TransitionMarkerVector &markers) const
 Create a non-closed function based on transition markers. More...
 
c3d::FunctionSPtr CreateFunctionByTransitions (const c3d::TransitionMarkerVector &markers, const double periodBeg, const double periodEnd) const
 Create a closed function based on transition markers at a given period. More...
 
- 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.

◆ CreateFunctionByTransitions() [1/2]

c3d::FunctionSPtr MbFunctionFactory::CreateFunctionByTransitions ( const c3d::TransitionMarkerVector &  markers) const

Create a non-closed function based on transition markers.

Parameters
[in]markers- A non-closed function defined from the first to the last marker.

◆ CreateFunctionByTransitions() [2/2]

c3d::FunctionSPtr MbFunctionFactory::CreateFunctionByTransitions ( const c3d::TransitionMarkerVector &  markers,
const double  periodBeg,
const double  periodEnd 
) const

Create a closed function based on transition markers at a given period.

Parameters
[in]markers- List of transition markers.
[in]periodBeg- Start point of the period.
[in]periodEnd- End point of the period.
Returns
A closed function defined on a period.

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