PlotWindow Class Reference

Plot window. More...

#include <PlotWindow.hh>

Inherits QWidget.

Public Member Functions

 PlotWindow (QWidget *_parent=nullptr)
 Constructor. More...
 
virtual ~PlotWindow ()
 Destructor. More...
 
PlotCanvasAddCanvas ()
 Add a new canvas. More...
 
unsigned int CanvasCount () const
 Get the number of canvases in this plot window. More...
 
void Clear ()
 Clear and remove all canvases. More...
 
std::list< PlotCanvas * > Plots ()
 Get a list of all the plots. More...
 
void RemoveCanvas (PlotCanvas *_canvas)
 Remove a plot canvas. More...
 
void Restart ()
 Restart plotting. More...
 

Detailed Description

Plot window.

Constructor & Destructor Documentation

◆ PlotWindow()

PlotWindow ( QWidget *  _parent = nullptr)
explicit

Constructor.

Parameters
[in]_parentPointer to the parent widget.

◆ ~PlotWindow()

virtual ~PlotWindow ( )
virtual

Destructor.

Member Function Documentation

◆ AddCanvas()

PlotCanvas* AddCanvas ( )

Add a new canvas.

◆ CanvasCount()

unsigned int CanvasCount ( ) const

Get the number of canvases in this plot window.

Returns
Number of canvases

◆ Clear()

void Clear ( )

Clear and remove all canvases.

◆ Plots()

std::list<PlotCanvas *> Plots ( )

Get a list of all the plots.

Returns
A list of all the plots.

◆ RemoveCanvas()

void RemoveCanvas ( PlotCanvas _canvas)

Remove a plot canvas.

Parameters
[in]_canvasCanvas to remove

◆ Restart()

void Restart ( )

Restart plotting.

A new plot curve will be created for each variable in the plot. Existing plot curves will no longer be updated.


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