2014-11-15 23:41:41 -05:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <vector>
|
|
|
|
#include <queue>
|
|
|
|
|
2015-01-02 21:32:24 -05:00
|
|
|
#include "InteractiveCanvas.h"
|
2015-08-10 00:33:31 -04:00
|
|
|
#include "PrimaryGLContext.h"
|
2014-11-25 22:51:14 -05:00
|
|
|
#include "MouseTracker.h"
|
2015-08-03 01:38:38 -04:00
|
|
|
#include "SpectrumVisualProcessor.h"
|
2015-08-10 00:33:31 -04:00
|
|
|
#include "SpectrumPanel.h"
|
2014-11-15 23:41:41 -05:00
|
|
|
|
2015-01-01 21:10:54 -05:00
|
|
|
class WaterfallCanvas;
|
|
|
|
|
2015-01-02 21:32:24 -05:00
|
|
|
class SpectrumCanvas: public InteractiveCanvas {
|
2014-11-15 23:41:41 -05:00
|
|
|
public:
|
|
|
|
SpectrumCanvas(wxWindow *parent, int *attribList = NULL);
|
|
|
|
~SpectrumCanvas();
|
|
|
|
|
2015-01-01 21:10:54 -05:00
|
|
|
void attachWaterfallCanvas(WaterfallCanvas *canvas_in);
|
2015-04-23 19:38:44 -04:00
|
|
|
void moveCenterFrequency(long long freqChange);
|
2015-01-01 21:10:54 -05:00
|
|
|
|
2015-08-03 01:38:38 -04:00
|
|
|
SpectrumVisualDataQueue *getVisualDataQueue();
|
|
|
|
|
2014-11-15 23:41:41 -05:00
|
|
|
private:
|
|
|
|
void OnPaint(wxPaintEvent& event);
|
|
|
|
|
|
|
|
void OnIdle(wxIdleEvent &event);
|
|
|
|
|
2015-01-03 17:07:39 -05:00
|
|
|
void OnMouseMoved(wxMouseEvent& event);
|
|
|
|
void OnMouseDown(wxMouseEvent& event);
|
|
|
|
void OnMouseWheelMoved(wxMouseEvent& event);
|
|
|
|
void OnMouseReleased(wxMouseEvent& event);
|
|
|
|
void OnMouseLeftWindow(wxMouseEvent& event);
|
2014-11-25 00:35:06 -05:00
|
|
|
|
2015-08-10 00:33:31 -04:00
|
|
|
PrimaryGLContext *glContext;
|
2015-01-01 21:10:54 -05:00
|
|
|
WaterfallCanvas *waterfallCanvas;
|
2015-08-10 00:33:31 -04:00
|
|
|
SpectrumPanel spectrumPanel;
|
2015-08-03 01:38:38 -04:00
|
|
|
|
|
|
|
SpectrumVisualDataQueue visualDataQueue;
|
|
|
|
|
2014-11-15 23:41:41 -05:00
|
|
|
// event table
|
|
|
|
wxDECLARE_EVENT_TABLE();
|
|
|
|
};
|
|
|
|
|