2014-09-21 01:04:29 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <wx/wx.h>
|
|
|
|
#include <wx/splitter.h>
|
|
|
|
#include <wx/listctrl.h>
|
|
|
|
#include <wx/bitmap.h>
|
|
|
|
#include <wx/artprov.h>
|
|
|
|
#include <wx/stattext.h>
|
|
|
|
#include <wx/textctrl.h>
|
|
|
|
#include <wx/choice.h>
|
|
|
|
#include <wx/arrstr.h>
|
|
|
|
#include <wx/button.h>
|
|
|
|
#include <math.h>
|
|
|
|
#include <vector>
|
|
|
|
#include <libserialport.h>
|
|
|
|
|
|
|
|
class BasicDrawPane : public wxPanel
|
|
|
|
{
|
|
|
|
public:
|
2014-10-31 15:00:08 +00:00
|
|
|
BasicDrawPane(wxFrame* parent, int ch);
|
2014-09-21 01:04:29 +00:00
|
|
|
void paintEvent(wxPaintEvent & evt);
|
|
|
|
void paintNow();
|
2014-11-09 19:51:18 +00:00
|
|
|
void plotvalue(float[]);
|
|
|
|
void plotvalue(float);
|
2014-11-03 11:35:53 +00:00
|
|
|
void Clear();
|
2014-09-21 01:04:29 +00:00
|
|
|
void render(wxDC& dc);
|
2014-10-31 15:00:08 +00:00
|
|
|
int channels;
|
2014-11-03 11:35:53 +00:00
|
|
|
static const wxPen pen[];
|
2014-09-21 01:04:29 +00:00
|
|
|
private:
|
2014-10-01 22:02:10 +00:00
|
|
|
wxLongLong time;
|
2014-10-30 20:17:58 +00:00
|
|
|
std::vector<std::vector<float>> data;
|
2014-09-21 01:04:29 +00:00
|
|
|
int x,y,xold,yold,xpos,xstep;
|
|
|
|
};
|