wxPlot 1.8 Real time plot library for wxWidgets

Loading...
Searching...
No Matches
functions.hpp
1#pragma once
2
3#include "../lists/colours.hpp"
4#include <vector>
5
16 void findMaxMin1Ddata(const std::vector<double>& data1D, double& minLimit, double& maxLimit);
17
31std::vector<double> createHistogramData(const std::vector<double>& data1D, const double minY, const double maxY, const unsigned int binCount);
32
43 void setColourPen(wxDC& dc, const int penColour);
44
55 void setColourBrush(wxDC& dc, const int brushColour);
56
67 void setColourText(wxDC& dc, const int textColour, const int backgroundColour);
68
82 double linearScalarXaxis(const double value, const double oldMinLimit, const double newMinLimit, const double oldMaxLimit, const double newMaxLimit);
83
97 double linearScalarYaxis(const double value, const double oldMinLimit, const double newMinLimit, const double oldMaxLimit, const double newMaxLimit);
98
108 bool check2DdataSize(const std::vector<std::vector<double>>& data2D);
109
122 void findMaxMin2Ddata(const std::vector<std::vector<double>>& data2D, double& minX, double& maxX, double& minY, double& maxY);