stmbl/term/basicdrawpane.hpp

32 lines
663 B
C++
Raw Permalink Normal View History

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[]);
2014-11-03 11:35:53 +00:00
void Clear();
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;
2015-11-27 00:25:46 +00:00
double x,y,xpos,xstep;
2014-09-21 01:04:29 +00:00
};