MULTIBODY SIMULATION SOFTWARE - API documentation

chrono::ChFunction_Repeat Class Reference

#include <CHfunction.h>

Inheritance diagram for chrono::ChFunction_Repeat:

Inheritance graph
[legend]
Collaboration diagram for chrono::ChFunction_Repeat:

Collaboration graph
[legend]

List of all members.

Public Member Functions

void Copy (ChFunction_Repeat *source)
ChFunctionnew_Duplicate ()
void Set_window_start (double m_v)
double Get_window_start ()
void Set_window_length (double m_v)
double Get_window_length ()
void Set_fa (ChFunction *m_fa)
ChFunctionGet_fa ()
double Get_y (double x)
void Extimate_x_range (double &xmin, double &xmax)
int Get_Type ()
int MakeOptVariableTree (ChList< chjs_propdata > *mtree)
OPT_VARIABLES_START
OPT_VARIABLES_END
void 
StreamOUT (ChStreamOutAscii &mstream)
void StreamIN (ChStreamInBinary &mstream)
void StreamOUT (ChStreamOutBinary &mstream)

Public Attributes

OPT_VARIABLES_START window_start
OPT_VARIABLES_START window_length


Detailed Description

REPEAT FUNCTION: y = __/__/__/

Repeats a 'window' of a function, periodically.


Member Function Documentation

double chrono::ChFunction_Repeat::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).

Reimplemented from chrono::ChFunction.

void chrono::ChFunction_Repeat::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_Repeat::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 run-time downcasting etc.

Reimplemented from chrono::ChFunction.

void chrono::ChFunction_Repeat::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.

Type constraints

void chrono::ChFunction_Repeat::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_Repeat::StreamOUT ( ChStreamOutBinary mstream  )  [virtual]

Method to allow serializing transient data into a persistent binary archive (ex: a file).

Reimplemented from chrono::ChFunction.


CHRONO::ENGINE
C++ library for multibody simulation, (C) Alessandro Tasora
This API documentation has been generated on 17 Jul 2009 by Doxygen