Main Page   Class Hierarchy   Compound List   File List   Compound Members   Related Pages  

GapeDrawnWaveformUnit Class Reference

Used with GapeWaveformPalette to allow users to draw a waveform and hear it. More...

#include <gapefunctionunit.h>

Inheritance diagram for GapeDrawnWaveformUnit::

GapeFunctionUnit GapeUnit List of all members.

Public Slots

void setPoint (double x, double y)

Public Methods

 GapeDrawnWaveformUnit (QWidget *parent)
virtual ~GapeDrawnWaveformUnit ()

Protected Methods

virtual void fillBuffer ()
 Pure virtual function which fills the FunctionUnit's internal buffer with data representing one period of a waveform. More...


Protected Attributes

double* xData

Detailed Description

Used with GapeWaveformPalette to allow users to draw a waveform and hear it.

Author:
Dave Chisholm
Since:
Beta 1.0
Version:
Last Modified Beta 1.0

Definition at line 178 of file gapefunctionunit.h.


Member Function Documentation

void GapeDrawnWaveformUnit::fillBuffer ( ) [protected, virtual]
 

Pure virtual function which fills the FunctionUnit's internal buffer with data representing one period of a waveform.

You must allocate storage for this buffer (which is designated by the sampleData pointer) and also set the length of the data (in samples) in the variable dataLength. Deallocation of the data is taken care of by the destructor.

Reimplemented from GapeFunctionUnit.

Definition at line 241 of file gapefunctionunit.cpp.


The documentation for this class was generated from the following files:
Generated at Thu Jun 21 13:28:51 2001 for GAPE by doxygen1.2.8.1 written by Dimitri van Heesch, © 1997-2001