Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

com::cosylab::gui::components::r2::chart::SinusFunction Class Reference

Inheritance diagram for com::cosylab::gui::components::r2::chart::SinusFunction:

Inheritance graph
[legend]
Collaboration diagram for com::cosylab::gui::components::r2::chart::SinusFunction:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 SinusFunction ()
 SinusFunction (double amplitude, double frequency, double offset, double phase)
double getAmplitude ()
double getFrequency ()
double getOffset ()
double getPhase ()
void setAmplitude (double newAmplitude)
void setFrequency (double newFrequency)
void setOffset (double newOffset)
void setPhase (double newPhase)
double y (double x)

Private Attributes

double offset = 1.0
double amplitude = 2.0
double phase = 0.0
double frequency = 1.0

Detailed Description

This is an example of function, which calculate sinus of argument, pre-defined amplitude, phase, frequency, and then adds constant called offset.


Constructor & Destructor Documentation

com::cosylab::gui::components::r2::chart::SinusFunction::SinusFunction  )  [inline]
 

SimusFunction constructor with no arguments.

com::cosylab::gui::components::r2::chart::SinusFunction::SinusFunction double  amplitude,
double  frequency,
double  offset,
double  phase
[inline]
 

SimusFunction constructor with no arguments.


Member Function Documentation

double com::cosylab::gui::components::r2::chart::SinusFunction::getAmplitude  )  [inline]
 

This method return amplitude of function.

double com::cosylab::gui::components::r2::chart::SinusFunction::getFrequency  )  [inline]
 

This method return frequency of function.

double com::cosylab::gui::components::r2::chart::SinusFunction::getOffset  )  [inline]
 

This method return offset of function. That is constant value, which is added to sinus value.

double com::cosylab::gui::components::r2::chart::SinusFunction::getPhase  )  [inline]
 

This method return phase of function.

void com::cosylab::gui::components::r2::chart::SinusFunction::setAmplitude double  newAmplitude  )  [inline]
 

This method sets amplitude of function.

void com::cosylab::gui::components::r2::chart::SinusFunction::setFrequency double  newFrequency  )  [inline]
 

This method sets frequency of function.

void com::cosylab::gui::components::r2::chart::SinusFunction::setOffset double  newOffset  )  [inline]
 

This method sets offset of function.

void com::cosylab::gui::components::r2::chart::SinusFunction::setPhase double  newPhase  )  [inline]
 

This method sets phase of function.

double com::cosylab::gui::components::r2::chart::SinusFunction::y double  x  )  [inline]
 

This method calculate value and return it.

Implements com::cosylab::gui::components::r2::chart::Function.


Member Data Documentation

double com::cosylab::gui::components::r2::chart::SinusFunction::amplitude = 2.0 [private]
 

double com::cosylab::gui::components::r2::chart::SinusFunction::frequency = 1.0 [private]
 

double com::cosylab::gui::components::r2::chart::SinusFunction::offset = 1.0 [private]
 

double com::cosylab::gui::components::r2::chart::SinusFunction::phase = 0.0 [private]
 


The documentation for this class was generated from the following file:
Generated on Thu Apr 30 03:12:56 2009 for ACS Java API by doxygen 1.3.8