RTXI  2.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
GeneratorSine Class Reference

#include <gen_sine.h>

Inheritance diagram for GeneratorSine:
Generator

Public Member Functions

 GeneratorSine ()
 
 GeneratorSine (double freq, double amplitude, double dt)
 
 ~GeneratorSine ()
 
void init (double freq, double amplitude, double dt)
 
- Public Member Functions inherited from Generator
 Generator ()
 
 ~Generator ()
 
void clear ()
 
void init ()
 
double get ()
 
double getOne ()
 
int numSamples () const
 
int getIndex () const
 
void setIndex (int value)
 

Protected Attributes

double freq
 
double amplitude
 
- Protected Attributes inherited from Generator
std::vector< double > wave
 
int index
 
int numsamples
 
double dt
 

Detailed Description

Definition at line 23 of file gen_sine.h.

Constructor & Destructor Documentation

GeneratorSine::GeneratorSine()

Definition at line 24 of file gen_sine.cpp.

GeneratorSine::GeneratorSine(double freq,
double amplitude,
double dt 
)

Definition at line 39 of file gen_sine.cpp.

GeneratorSine::~GeneratorSine()

Definition at line 51 of file gen_sine.cpp.

Member Function Documentation

void GeneratorSine::init(double freq,
double amplitude,
double dt 
)

Definition at line 56 of file gen_sine.cpp.

Member Data Documentation

double GeneratorSine::amplitude
protected

Definition at line 37 of file gen_sine.h.

double GeneratorSine::freq
protected

Definition at line 36 of file gen_sine.h.


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