mirror of
https://github.com/cjcliffe/CubicSDR.git
synced 2024-11-18 18:11:56 -05:00
37 lines
665 B
C++
37 lines
665 B
C++
#pragma once
|
|
|
|
#include "wx/glcanvas.h"
|
|
#include "wx/timer.h"
|
|
|
|
#include <vector>
|
|
#include <queue>
|
|
|
|
#include "ScopeContext.h"
|
|
|
|
#include "fftw3.h"
|
|
#include "Timer.h"
|
|
|
|
class ScopeCanvas: public wxGLCanvas {
|
|
public:
|
|
std::vector<float> waveform_points;
|
|
|
|
ScopeCanvas(wxWindow *parent, int *attribList = NULL);
|
|
~ScopeCanvas();
|
|
|
|
void setWaveformPoints(std::vector<float> &waveform_points_in);
|
|
private:
|
|
void OnPaint(wxPaintEvent& event);
|
|
void OnKeyDown(wxKeyEvent& event);
|
|
|
|
void OnIdle(wxIdleEvent &event);
|
|
|
|
wxWindow *parent;
|
|
|
|
ScopeContext *glContext;
|
|
Timer timer;
|
|
float frameTimer;
|
|
// event table
|
|
wxDECLARE_EVENT_TABLE();
|
|
};
|
|
|