| MULTIBODY SIMULATION SOFTWARE - API documentation |
#include <CHfunction_Recorder.h>


Public Member Functions | |
| void | Copy (ChFunction_Recorder *source) |
| ChFunction * | new_Duplicate () |
| int | AddPoint (double mx, double my, double mw) |
| int | AddPoint (double mx, double my) |
| int | AddPointClean (double mx, double my, double dx_clean) |
| void | Reset () |
| ChList< ChRecPoint > * | GetPointList () |
| double | Get_y (double x) |
| double | Get_y_dx (double x) |
| double | Get_y_dxdx (double x) |
| void | Extimate_x_range (double &xmin, double &xmax) |
| int | Get_Type () |
| void | StreamOUT (ChStreamOutAscii &mstream) |
| void | StreamIN (ChStreamInBinary &mstream) |
| void | StreamOUT (ChStreamOutBinary &mstream) |
RECORDER FUNCTION y = interpolation of array of (x,y) data, where (x,y) points can be inserted randomly.
| void chrono::ChFunction_Recorder::Extimate_x_range | ( | double & | xmin, |
| double & | xmax | ||
| ) | [virtual] |
These functions can be used to implement automatic zooming on the most representative range of function (if GUI is implemented)
Reimplemented from chrono::ChFunction.
| int chrono::ChFunction_Recorder::Get_Type | ( | ) | [virtual] |
Each class inherited from the ChFunction class must return an unique integer identifier with the virtual function Get_type(). This is useful for fast run-time downcasting etc.
Reimplemented from chrono::ChFunction.
| double chrono::ChFunction_Recorder::Get_y | ( | double | x | ) | [virtual] |
Returns the y value of the function, at position x. (For this base class, it will be a constant value y=C).
Implements chrono::ChFunction.
| double chrono::ChFunction_Recorder::Get_y_dx | ( | double | x | ) | [virtual] |
Returns the dy/dx derivative of the function, at position x. Note that inherited classes may also avoid overriding this method, because this base method already provide a general-purpose numerical differentiation to get dy/dx only from the Get_y() function. (however, if the analytical derivative is known, it may better to implement a custom method).
Reimplemented from chrono::ChFunction.
| double chrono::ChFunction_Recorder::Get_y_dxdx | ( | double | x | ) | [virtual] |
Returns the ddy/dxdx double derivative of the function, at position x. Note that inherited classes may also avoid overriding this method, because this base method already provide a general-purpose numerical differentiation to get ddy/dxdx only from the Get_y() function. (however, if the analytical derivative is known, it may be better to implement a custom method).
Reimplemented from chrono::ChFunction.
| void chrono::ChFunction_Recorder::StreamIN | ( | ChStreamInBinary & | mstream | ) | [virtual] |
Method to allow deserializing a persistent binary archive (ex: a file) into transient data.
Reimplemented from chrono::ChFunction.
| void chrono::ChFunction_Recorder::StreamOUT | ( | ChStreamOutAscii & | mstream | ) | [virtual] |
Method to allow serialization of transient data in ascii, as a readable item, for example "chrono::GetLog() << myobject;"
Reimplemented from chrono::ChFunction.
| void chrono::ChFunction_Recorder::StreamOUT | ( | ChStreamOutBinary & | mstream | ) | [virtual] |
Method to allow serializing transient data into a persistent binary archive (ex: a file).
Reimplemented from chrono::ChFunction.
CHRONO::ENGINE