RobWorkProject  23.9.11-
Classes | Public Types | Public Member Functions | List of all members
PlotView Class Referenceabstract

GUI Element for showing RobWork plots. More...

#include <PlotView.hpp>

Inherited by ChartView, and PlotSimpleView.

Classes

class  Dispatcher
 Dispatcher for plots. More...
 
class  Factory
 A factory for PlotView::Dispatcher objects. This factory defines an extension point for PointView::Dispatcher (rws.PlotView). Typically this is for plugins that provide widgets capable of showing and interacting with plots. The extensions registered at this extension point must have an extension descriptor with a property called "identifier" giving a unique identifier for that particular type of PlotView. More...
 

Public Types

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

Public Member Functions

 PlotView ()
 Constructor.
 
virtual ~PlotView ()
 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 QGraphicsView * getWidget (QWidget *parent)=0
 

Detailed Description

GUI Element for showing RobWork plots.

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 ChartView, and PlotSimpleView.


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