Provides a generic way to plot algorithmic outputs during runtime. More...
#include <plotting.hpp>
Public Member Functions | |
int | addPlotWindow (PlotWindow &_window) |
uint | getNumPlotWindows () const |
returnValue | getPlotWindow (uint idx, PlotWindow &_window) const |
returnValue | getPlotWindow (PlotWindow &_window) const |
int | operator<< (PlotWindow &_window) |
Plotting & | operator= (const Plotting &rhs) |
virtual returnValue | plot (PlotFrequency _frequency=PLOT_IN_ANY_CASE) |
Plotting () | |
Plotting (const Plotting &rhs) | |
virtual returnValue | replot (PlotFrequency _frequency=PLOT_IN_ANY_CASE) |
virtual | ~Plotting () |
Protected Member Functions | |
virtual returnValue | getPlotDataFromMemberLoggings (PlotWindow &_window) const |
Protected Attributes | |
PlotCollection | plotCollection |
Friends | |
class | AlgorithmicBase |
Provides a generic way to plot algorithmic outputs during runtime.
The class Plotting provides a generic way to plot algorithmic outputs during runtime. This class is part of the UserInterface class, i.e. all classes that are intended to interact with the user inherit the public functionality of the Plotting class.
Definition at line 61 of file plotting.hpp.
BEGIN_NAMESPACE_ACADO Plotting::Plotting | ( | ) |
Default constructor.
Definition at line 47 of file acado/user_interaction/plotting.cpp.
Plotting::Plotting | ( | const Plotting & | rhs | ) |
Copy constructor (deep copy).
@param[in] rhs Right-hand side object.
Definition at line 52 of file acado/user_interaction/plotting.cpp.
|
virtual |
Destructor.
Definition at line 58 of file acado/user_interaction/plotting.cpp.
|
inline |
Adds a window to the plot collection.
@param[in] _window Window to be added.
|
inline |
Returns number of windows contained in the plot collection.
|
protectedvirtual |
Copies all collected logging information required to plot a given window.
@param[in] _window Window to be plotted. \note This function is overloaded within the UserInterface class to syncronize the logging information collected elsewhere within the algorithm with the one stored within the given window for plotting. \return SUCCESSFUL_RETURN
Reimplemented in UserInteraction.
Definition at line 128 of file acado/user_interaction/plotting.cpp.
|
inline |
Returns the window with given index from the plot collection.
@param[in] idx Index of desired window. @param[out] _window Desired window.
|
inline |
Returns the window with certain index from the plot collection. This index is not provided when calling the function, but rather obtained by using the alias index of the window. If the window is no alias window, the error RET_INDEX_OUT_OF_BOUNDS is thrown.
[out] | _window | Desired window. |
|
inline |
Adds a window to the plot collection.
@param[in] _window Window to be added. \note This function is doing the same as the corresponding addPlotWindow member function and is introduced for syntax reasons only.
Assignment operator (deep copy).
@param[in] rhs Right-hand side object.
Definition at line 63 of file acado/user_interaction/plotting.cpp.
|
virtual |
Plots all windows of the plot collection, each one into a new figure.
@param[in] _frequency Frequency determining at which time instants the window is to be plotted. \return SUCCESSFUL_RETURN
Definition at line 74 of file acado/user_interaction/plotting.cpp.
|
virtual |
Plots all windows of the plot collection, each one into the corresponding existing figure, if possible.
[in] | _frequency | Frequency determining at which time instants the window is to be plotted. |
Reimplemented in Process.
Definition at line 98 of file acado/user_interaction/plotting.cpp.
|
friend |
Definition at line 63 of file plotting.hpp.
|
protected |
Plot collection containing a singly-linked list of plot windows.
Definition at line 194 of file plotting.hpp.