plotting.hpp
Go to the documentation of this file.
1 /*
2  * This file is part of ACADO Toolkit.
3  *
4  * ACADO Toolkit -- A Toolkit for Automatic Control and Dynamic Optimization.
5  * Copyright (C) 2008-2014 by Boris Houska, Hans Joachim Ferreau,
6  * Milan Vukov, Rien Quirynen, KU Leuven.
7  * Developed within the Optimization in Engineering Center (OPTEC)
8  * under supervision of Moritz Diehl. All rights reserved.
9  *
10  * ACADO Toolkit is free software; you can redistribute it and/or
11  * modify it under the terms of the GNU Lesser General Public
12  * License as published by the Free Software Foundation; either
13  * version 3 of the License, or (at your option) any later version.
14  *
15  * ACADO Toolkit is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18  * Lesser General Public License for more details.
19  *
20  * You should have received a copy of the GNU Lesser General Public
21  * License along with ACADO Toolkit; if not, write to the Free Software
22  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
23  *
24  */
25 
26 
33 #ifndef ACADO_TOOLKIT_PLOTTING_HPP
34 #define ACADO_TOOLKIT_PLOTTING_HPP
35 
36 
40 
41 
42 
44 
45 
47 
48 
61 class Plotting
62 {
63  friend class AlgorithmicBase;
64 
65  //
66  // PUBLIC MEMBER FUNCTIONS:
67  //
68  public:
69 
72  Plotting( );
73 
78  Plotting( const Plotting& rhs
79  );
80 
83  virtual ~Plotting( );
84 
90  );
91 
92 
103  inline int operator<<( PlotWindow& _window
104  );
105 
113  inline int addPlotWindow( PlotWindow& _window
114  );
115 
116 
125  inline returnValue getPlotWindow( uint idx,
126  PlotWindow& _window
127  ) const;
128 
139  inline returnValue getPlotWindow( PlotWindow& _window
140  ) const;
141 
142 
149  virtual returnValue plot( PlotFrequency _frequency = PLOT_IN_ANY_CASE
150  );
151 
159  virtual returnValue replot( PlotFrequency _frequency = PLOT_IN_ANY_CASE
160  );
161 
162 
167  inline uint getNumPlotWindows( ) const;
168 
169 
170 
171  //
172  // PROTECTED MEMBER FUNCTIONS:
173  //
174  protected:
175 
187  ) const;
188 
189 
190  //
191  // DATA MEMBERS:
192  //
193  protected:
195 };
196 
197 
199 
200 
201 #include <acado/user_interaction/plotting.ipp>
202 
203 
204 #endif // ACADO_TOOLKIT_PLOTTING_HPP
205 
206 
207 /*
208  * end of file
209  */
virtual returnValue plot(PlotFrequency _frequency=PLOT_IN_ANY_CASE)
virtual returnValue replot(PlotFrequency _frequency=PLOT_IN_ANY_CASE)
returnValue getPlotWindow(uint idx, PlotWindow &_window) const
Plotting & operator=(const Plotting &rhs)
virtual returnValue getPlotDataFromMemberLoggings(PlotWindow &_window) const
Provides a generic way to plot algorithmic outputs during runtime.
Definition: plotting.hpp:61
Allows to pass back messages to the calling function.
Base class for all algorithmic modules within the ACADO Toolkit providing some basic functionality...
BEGIN_NAMESPACE_ACADO typedef unsigned int uint
Definition: acado_types.hpp:42
int operator<<(PlotWindow &_window)
PlotCollection plotCollection
Definition: plotting.hpp:194
#define CLOSE_NAMESPACE_ACADO
uint getNumPlotWindows() const
PlotFrequency
Allows to setup and plot user-specified plot windows for algorithmic outputs.
Definition: plot_window.hpp:76
int addPlotWindow(PlotWindow &_window)
static BEGIN_NAMESPACE_ACADO PlotWindow emptyPlotWindow
Definition: plotting.hpp:46
void rhs(const real_t *x, real_t *f)
Provides a generic list of plot windows (for internal use).
#define BEGIN_NAMESPACE_ACADO


acado
Author(s): Milan Vukov, Rien Quirynen
autogenerated on Mon Jun 10 2019 12:34:59