1
0
mirror of https://github.com/rene-dev/stmbl.git synced 2024-12-19 07:02:13 +00:00
stmbl/term/basicdrawpane.hpp
2014-11-21 21:34:07 +01:00

34 lines
724 B
C++

#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:
BasicDrawPane(wxFrame* parent, int ch);
void paintEvent(wxPaintEvent & evt);
void paintNow();
void plotvalue(float[]);
void plotvalue(float);
void Clear();
void render(wxDC& dc);
int channels;
static const wxPen pen[];
private:
wxLongLong time;
std::vector<std::vector<float>> data;
int x,y,xold,yold,xpos,xstep;
};