wxPlot 1.8 Real time plot library for wxWidgets

Loading...
Searching...
No Matches
scatter.hpp
1#pragma once
2
3#include <vector>
4#include <wx/wx.h>
5#include "../line/line.hpp"
6
11 class Scatter: public Line {
12 private:
13
14 wxCoord radius = 3;
15 bool fillCircle = false;
16
17 public:
22 void setRadius(const wxCoord radius);
23
28 void fillCircles(const bool fillCircle);
29
37 void draw(wxDC& dc, const std::vector<double>& xData, const std::vector<double>& yData, const unsigned int colourIndex) override;
38};
Line
Line class. Does the most of the things in 2D.
Definition line.hpp:10
Scatter
Scatter class. Inheritance from class Line.
Definition scatter.hpp:11
Scatter::fillCircles
void fillCircles(const bool fillCircle)
Fill circles if radius is applied if circiles are going to be filled with the same colour as they are...
Definition scatter.cpp:8
Scatter::setRadius
void setRadius(const wxCoord radius)
Set radius. Most used for circles e.g filling scatter plots.
Definition scatter.cpp:5
Scatter::draw
void draw(wxDC &dc, const std::vector< double > &xData, const std::vector< double > &yData, const unsigned int colourIndex) override
Draw the scatter plot inside the rectangle.
Definition scatter.cpp:12