wxPlot 1.8 Real time plot library for wxWidgets

Loading...
Searching...
No Matches
line.hpp
1#pragma once
2
3#include <vector>
4#include <wx/wx.h>
5
10 class Line {
11 protected:
12
13 wxCoord plotEndWidth = 0;
14 wxCoord plotEndHeight = 0;
15 wxCoord plotStartWidth = 0;
16 wxCoord plotStartHeight = 0;
17
18 double minX = 0;
19 double maxX = 0;
20 double minY = 0;
21 double maxY = 0;
22
23 public:
24
32 void setLimits(const double minX, const double maxX, const double minY, const double maxY);
33
52 void setPlotStartWidth(const wxCoord plotStartWidth);
53
72 void setPlotStartHeight(const wxCoord plotStartHeight);
73
92 void setPlotEndWidth(const wxCoord plotEndWidth);
93
112 void setPlotEndHeight(const wxCoord plotEndHeight);
113
121 virtual void draw(wxDC& dc, const std::vector<double>& xData, const std::vector<double>& yData, const unsigned int colourIndex);
122};
Line
Line class. Does the most of the things in 2D.
Definition line.hpp:10
Line::plotEndHeight
wxCoord plotEndHeight
Location of right bottom corner in Y-axis.
Definition line.hpp:14
Line::minY
double minY
Minimum value of data in Y-axis.
Definition line.hpp:20
Line::plotStartHeight
wxCoord plotStartHeight
Location of left upper corner in Y-axis.
Definition line.hpp:16
Line::setLimits
void setLimits(const double minX, const double maxX, const double minY, const double maxY)
Set minimum and maximum limits of the data.
Definition line.cpp:5
Line::maxX
double maxX
Maximum value of data in X-axis.
Definition line.hpp:19
Line::maxY
double maxY
Maximum value of data in Y-axis.
Definition line.hpp:21
Line::setPlotEndWidth
void setPlotEndWidth(const wxCoord plotEndWidth)
Set the right upper corner in X-axis. Inside this rectangle, the plot is drawn. NOTE: This value is r...
Definition line.cpp:20
Line::draw
virtual void draw(wxDC &dc, const std::vector< double > &xData, const std::vector< double > &yData, const unsigned int colourIndex)
Draw the line plot inside the rectangle.
Definition line.cpp:28
Line::setPlotEndHeight
void setPlotEndHeight(const wxCoord plotEndHeight)
Set the right bottom corner in Y-axis. Inside this rectangle, the plot is drawn. NOTE: This value is ...
Definition line.cpp:24
Line::setPlotStartHeight
void setPlotStartHeight(const wxCoord plotStartHeight)
Set the left upper corner in Y-axis. Inside this rectangle, the plot is drawn. NOTE: This value is re...
Definition line.cpp:16
Line::setPlotStartWidth
void setPlotStartWidth(const wxCoord plotStartWidth)
Set the left upper corner in X-axis. Inside this rectangle, the plot is drawn. NOTE: This value is re...
Definition line.cpp:12
Line::plotEndWidth
wxCoord plotEndWidth
Location of right upper corner in X-axis.
Definition line.hpp:13
Line::minX
double minX
Minimum value of data in X-axis.
Definition line.hpp:18
Line::plotStartWidth
wxCoord plotStartWidth
Location of left upper corner in X-axis.
Definition line.hpp:15