Code Search for Developers
 
 
  

incrementalplot.h from marsyas at Krugle


Show incrementalplot.h syntax highlighted

#ifndef _INCREMENTALPLOT_H_
#define _INCREMENTALPLOT_H_ 1

#include <qwt_array.h>
#include <qwt_plot.h>

class QwtPlotCurve;

class CurveData
{
    // A container class for growing data
public:

    CurveData();

    void append(double *x, double *y, int count);

    int count() const;
    int size() const;
    const double *x() const;
    const double *y() const;

private:
    int d_count;
    QwtArray<double> d_x;
    QwtArray<double> d_y;
};

class IncrementalPlot : public QwtPlot
{
    Q_OBJECT
public:
    IncrementalPlot(QWidget *parent = NULL);
    virtual ~IncrementalPlot();

    void appendData(double x, double y);
    void appendData(double *x, double *y, int size);

    void removeData();

private:
    CurveData *d_data;
    QwtPlotCurve *d_curve;
};

#endif // _INCREMENTALPLOT_H_




See more files for this project here

marsyas

Marsyas (Music Analysis, Retrieval and Synthesis for Audio Signals) is a framework for developing systems for audio processing. It provides an general architecture for connecting audio, soundfiles, signal processing blocks and machine learning.

Project homepage: http://sourceforge.net/projects/marsyas
Programming language(s): C++
License: other

  debug/
  README
  clear.xpm
  incrementalplot.cpp
  incrementalplot.h
  mainwindow.cpp
  mainwindow.h
  randomplot.cpp
  randomplot.h
  realtime.cpp
  realtime_plot.pro
  scrollbar.cpp
  scrollbar.h
  scrollzoomer.cpp
  scrollzoomer.h
  start.xpm