RobWorkProject  23.9.11-
Public Types | Public Member Functions | Protected Member Functions | List of all members
Plot Class Referenceabstract

Interface for generation of plot images. More...

#include <Plot.hpp>

Inherited by MathGLPlot.

Public Types

typedef rw::core::Ptr< PlotPtr
 Smart pointer type.
 

Public Member Functions

virtual ~Plot ()
 Destructor.
 
virtual void listPlot (const std::vector< double > &x, const std::vector< double > &y, const std::string &title="", const std::string &xlabel="", const std::string &ylabel="")=0
 Do a ListPlot with the given x- and y-values. More...
 
virtual rw::core::Ptr< rw::sensor::Imagerender (unsigned int width, unsigned int height)=0
 Render the plot as an image. More...
 

Protected Member Functions

 Plot ()
 Constructor.
 

Detailed Description

Interface for generation of plot images.

Member Function Documentation

◆ listPlot()

virtual void listPlot ( const std::vector< double > &  x,
const std::vector< double > &  y,
const std::string &  title = "",
const std::string &  xlabel = "",
const std::string &  ylabel = "" 
)
pure virtual

Do a ListPlot with the given x- and y-values.

Parameters
x[in] the x-values.
y[in] the y-values.
title[in] (optional) the plot title.
xlabel[in] (optional) x axis label.
ylabel[in] (optional) y axis label.

Implemented in MathGLPlot.

◆ render()

virtual rw::core::Ptr<rw::sensor::Image> render ( unsigned int  width,
unsigned int  height 
)
pure virtual

Render the plot as an image.

Parameters
width[in] desired width.
height[in] desired height.
Returns
image with the rendered plot.

Implemented in MathGLPlot.


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