wxPlot 1.8
Real time plot library for wxWidgets
Loading...
Searching...
No Matches
plottypes.hpp
1#pragma once
2
3#include "2D/2Dtype.hpp"
4
9class PlotTypes {
10
11private:
12
13 WXPLOT_FIGURE wxPlotFigure = WXPLOT_FIGURE_2D;
14
15 _2DType _2d;
16
17public:
18
24 void setWxPlotFigureType(const WXPLOT_FIGURE wxPlotFigure, const WXPLOT_TYPE wxPlotType);
25
30 void setRadius(const wxCoord radius);
31
36 void fillCircles(const bool fillCircle);
37
42 void setData(const std::vector<std::vector<double>>& data2D);
43
48 void setData(const std::vector<double>& data1D);
49
68 void setPlotStartWidth(const wxCoord plotStartWidth);
69
88 void setPlotStartHeight(const wxCoord plotStartHeight);
89
108 void setPlotEndWidth(const wxCoord plotEndWidth);
109
128 void setPlotEndHeight(const wxCoord plotEndHeight);
129
134 void setBinCount(const unsigned int binCount);
135
141 void setYlim(const double minY, const double maxY);
142
147 void drawType(wxDC& dc);
148};
Here all the 2D plot types.
Definition 2Dtype.hpp:13
Here all the plot types e.g 2D, 3D, custom etc. are included.
Definition plottypes.hpp:9
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 plottypes.cpp:32
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 plottypes.cpp:36
void setRadius(const wxCoord radius)
Set radius. Most used for circles e.g filling scatter plots.
Definition plottypes.cpp:8
void drawType(wxDC &dc)
This function draw the plot e.g line, bar, histogram, spline, scatter etc. inside in this rectangle.
Definition plottypes.cpp:48
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 plottypes.cpp:28
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 plottypes.cpp:12
void setBinCount(const unsigned int binCount)
Set the bin count for e.g. histogram.
Definition plottypes.cpp:44
void setData(const std::vector< std::vector< double > > &data2D)
Set 2D data.
Definition plottypes.cpp:16
void setYlim(const double minY, const double maxY)
Set the plot zoom limit in Y-axis.
Definition plottypes.cpp:40
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 plottypes.cpp:24
void setWxPlotFigureType(const WXPLOT_FIGURE wxPlotFigure, const WXPLOT_TYPE wxPlotType)
Set the plot type selection and plot figure selection.
Definition plottypes.cpp:3