MULTIBODY SIMULATION SOFTWARE - API documentation
Public Member Functions
chrono::ChFunction_Noise Class Reference

#include <CHfunction_Noise.h>

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

List of all members.

Public Member Functions

void Copy (ChFunction_Noise *source)
ChFunctionnew_Duplicate ()
void Set_Amp (double mamp)
double Get_Amp ()
void Set_Freq (double mf)
double Get_Freq ()
void Set_AmpRatio (double ma)
double Get_AmpRatio ()
void Set_Octaves (int mo)
int Get_Octaves ()
double Get_y (double x)
int Get_Type ()
void StreamOUT (ChStreamOutAscii &mstream)
void StreamIN (ChStreamInBinary &mstream)
void StreamOUT (ChStreamOutBinary &mstream)

Detailed Description

NOISE FUNCTION: y = multi-octave noise with cubic interpolation


Member Function Documentation

int chrono::ChFunction_Noise::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_Noise::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.

void chrono::ChFunction_Noise::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_Noise::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_Noise::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 Tue Jul 10 2012 by Doxygen