wxPlot 1.8
Real time plot library for wxWidgets
Loading...
Searching...
No Matches
PlotTypes Class Reference

Here all the plot types e.g 2D, 3D, custom etc. are included. More...

#include <plottypes.hpp>

Public Member Functions

void setWxPlotFigureType (const WXPLOT_FIGURE wxPlotFigure, const WXPLOT_TYPE wxPlotType)
 Set the plot type selection and plot figure selection.
 
void setRadius (const wxCoord radius)
 Set radius. Most used for circles e.g filling scatter plots.
 
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 drawn.
 
void setData (const std::vector< std::vector< double > > &data2D)
 Set 2D data.
 
void setData (const std::vector< double > &data1D)
 Set 1D data.
 
void setPlotStartWidth (const wxCoord plotStartWidth)
 Set the left upper corner in X-axis. Inside this rectangle, the plot is drawn. NOTE: This value is recalculated since the plot figure is drawn! (plotStartWidth, plotStartHeight) --------------------------------------------— (plotEndWidth, plotStartHeight)
 
void setPlotStartHeight (const wxCoord plotStartHeight)
 Set the left upper corner in Y-axis. Inside this rectangle, the plot is drawn. NOTE: This value is recalculated since the plot figure is drawn! (plotStartWidth, plotStartHeight) --------------------------------------------— (plotEndWidth, plotStartHeight)
 
void setPlotEndWidth (const wxCoord plotEndWidth)
 Set the right upper corner in X-axis. Inside this rectangle, the plot is drawn. NOTE: This value is recalculated since the plot figure is drawn! (plotStartWidth, plotStartHeight) --------------------------------------------— (plotEndWidth, plotStartHeight)
 
void setPlotEndHeight (const wxCoord plotEndHeight)
 Set the right bottom corner in Y-axis. Inside this rectangle, the plot is drawn. NOTE: This value is recalculated since the plot figure is drawn! (plotStartWidth, plotStartHeight) --------------------------------------------— (plotEndWidth, plotStartHeight)
 
void setBinCount (const unsigned int binCount)
 Set the bin count for e.g. histogram.
 
void setYlim (const double minY, const double maxY)
 Set the plot zoom limit in Y-axis.
 
void drawType (wxDC &dc)
 This function draw the plot e.g line, bar, histogram, spline, scatter etc. inside in this rectangle.
 

Detailed Description

Here all the plot types e.g 2D, 3D, custom etc. are included.

Member Function Documentation

◆ drawType()

void PlotTypes::drawType ( wxDC & dc)

This function draw the plot e.g line, bar, histogram, spline, scatter etc. inside in this rectangle.

Parameters
dcThe wxDC object for drawing lines, polygons etc.

◆ fillCircles()

void PlotTypes::fillCircles ( const bool fillCircle)

Fill circles if radius is applied if circiles are going to be filled with the same colour as they are drawn.

Parameters
fillCircleSet true if filled.

◆ setBinCount()

void PlotTypes::setBinCount ( const unsigned int binCount)

Set the bin count for e.g. histogram.

Parameters
binCountBin count is total columns inside a e.g historam chart.

◆ setData() [1/2]

void PlotTypes::setData ( const std::vector< double > & data1D)

Set 1D data.

Parameters
data1D1D data in form of 1D vector.

◆ setData() [2/2]

void PlotTypes::setData ( const std::vector< std::vector< double > > & data2D)

Set 2D data.

Parameters
data2D2D data in form of 2D vector.

◆ setPlotEndHeight()

void PlotTypes::setPlotEndHeight ( const wxCoord plotEndHeight)

Set the right bottom corner in Y-axis. Inside this rectangle, the plot is drawn. NOTE: This value is recalculated since the plot figure is drawn! (plotStartWidth, plotStartHeight) --------------------------------------------— (plotEndWidth, plotStartHeight)

(plotStartWidth, plotEndHeight) --------------------------------------------— (plotEndWidth, plotEndHeight)

Parameters
plotEndHeightEnd height is at the end of Y-axis.

◆ setPlotEndWidth()

void PlotTypes::setPlotEndWidth ( const wxCoord plotEndWidth)

Set the right upper corner in X-axis. Inside this rectangle, the plot is drawn. NOTE: This value is recalculated since the plot figure is drawn! (plotStartWidth, plotStartHeight) --------------------------------------------— (plotEndWidth, plotStartHeight)

(plotStartWidth, plotEndHeight) --------------------------------------------— (plotEndWidth, plotEndHeight)

Parameters
plotEndWidthEnd width is at the end of X-axis.

◆ setPlotStartHeight()

void PlotTypes::setPlotStartHeight ( const wxCoord plotStartHeight)

Set the left upper corner in Y-axis. Inside this rectangle, the plot is drawn. NOTE: This value is recalculated since the plot figure is drawn! (plotStartWidth, plotStartHeight) --------------------------------------------— (plotEndWidth, plotStartHeight)

(plotStartWidth, plotEndHeight) --------------------------------------------— (plotEndWidth, plotEndHeight)

Parameters
plotStartHeightStart height is at the start of Y-axis.

◆ setPlotStartWidth()

void PlotTypes::setPlotStartWidth ( const wxCoord plotStartWidth)

Set the left upper corner in X-axis. Inside this rectangle, the plot is drawn. NOTE: This value is recalculated since the plot figure is drawn! (plotStartWidth, plotStartHeight) --------------------------------------------— (plotEndWidth, plotStartHeight)

(plotStartWidth, plotEndHeight) --------------------------------------------— (plotEndWidth, plotEndHeight)

Parameters
plotStartWidthStart width is at the start of X-axis.

◆ setRadius()

void PlotTypes::setRadius ( const wxCoord radius)

Set radius. Most used for circles e.g filling scatter plots.

Parameters
radiusThe radius of the circle.

◆ setWxPlotFigureType()

void PlotTypes::setWxPlotFigureType ( const WXPLOT_FIGURE wxPlotFigure,
const WXPLOT_TYPE wxPlotType )

Set the plot type selection and plot figure selection.

Parameters
wxPlotFigureSelection of plot figure.
wxPlotTypeSelection of plot type.

◆ setYlim()

void PlotTypes::setYlim ( const double minY,
const double maxY )

Set the plot zoom limit in Y-axis.

Parameters
minYMinimum limit in Y-axis.
maxYMaximum limit in Y-axis.

The documentation for this class was generated from the following files: