<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"> <title>The MRPT project: mrpt::gui::CDisplayWindowPlots Class Reference</title> <link href="doxygen.css" rel="stylesheet" type="text/css"> <link href="tabs.css" rel="stylesheet" type="text/css"> </head><body> <div align="left"><a href="http://www.mrpt.org/">Main MRPT website</a> > <b>C++ reference</b> </div> <div align="right"> <a href="index.html"><img border="0" src="mrpt_logo.png" alt="MRPT logo"></a> </div> <!-- Generated by Doxygen 1.7.2 --> <script type="text/javascript"><!-- var searchBox = new SearchBox("searchBox", "search",false,'Search'); --></script> <div class="navigation" id="top"> <div class="tabs"> <ul class="tablist"> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="pages.html"><span>Related Pages</span></a></li> <li><a href="modules.html"><span>Modules</span></a></li> <li><a href="namespaces.html"><span>Namespaces</span></a></li> <li class="current"><a href="annotated.html"><span>Classes</span></a></li> <li><a href="files.html"><span>Files</span></a></li> <li id="searchli"> <div id="MSearchBox" class="MSearchBoxInactive"> <span class="left"> <form id="FSearchBox" action="search.php" method="get"> <img id="MSearchSelect" src="search/mag.png" alt=""/> <input type="text" id="MSearchField" name="query" value="Search" size="20" accesskey="S" onfocus="searchBox.OnSearchFieldFocus(true)" onblur="searchBox.OnSearchFieldFocus(false)"/> </form> </span><span class="right"></span> </div> </li> </ul> </div> <div class="tabs2"> <ul class="tablist"> <li><a href="annotated.html"><span>Class List</span></a></li> <li><a href="classes.html"><span>Class Index</span></a></li> <li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li> <li><a href="functions.html"><span>Class Members</span></a></li> </ul> </div> <div class="navpath"> <ul> <li><a class="el" href="namespacemrpt.html">mrpt</a> </li> <li><a class="el" href="namespacemrpt_1_1gui.html">gui</a> </li> <li><a class="el" href="classmrpt_1_1gui_1_1_c_display_window_plots.html">CDisplayWindowPlots</a> </li> </ul> </div> </div> <div class="header"> <div class="summary"> <a href="#pub-types">Public Types</a> | <a href="#pub-methods">Public Member Functions</a> | <a href="#pub-static-methods">Static Public Member Functions</a> | <a href="#pro-methods">Protected Member Functions</a> | <a href="#pro-attribs">Protected Attributes</a> | <a href="#friends">Friends</a> </div> <div class="headertitle"> <h1>mrpt::gui::CDisplayWindowPlots Class Reference</h1> </div> </div> <div class="contents"> <!-- doxytag: class="mrpt::gui::CDisplayWindowPlots" --><!-- doxytag: inherits="mrpt::gui::CBaseGUIWindow" --><hr/><a name="_details"></a><h2>Detailed Description</h2> <p>Create a GUI window and display plots with MATLAB-like interfaces and commands. </p> <p>For a list of supported events with the observer/observable pattern, see the discussion in <a class="el" href="classmrpt_1_1gui_1_1_c_base_g_u_i_window.html" title="The base class for GUI window classes.">mrpt::gui::CBaseGUIWindow</a>.</p> <p>See <a class="el" href="classmrpt_1_1gui_1_1_c_display_window_plots.html#adafc202997e213b633ad438c3fe0759b" title="Adds a new layer with a 2D plot based on two vectors of X and Y points, using a MATLAB-like syntax...">CDisplayWindowPlots::plot</a> </p> <p>Definition at line <a class="el" href="_c_display_window_plots_8h_source.html#l00056">56</a> of file <a class="el" href="_c_display_window_plots_8h_source.html">CDisplayWindowPlots.h</a>.</p> <p><code>#include <<a class="el" href="_c_display_window_plots_8h_source.html">mrpt/gui/CDisplayWindowPlots.h</a>></code></p> <!-- startSectionHeader --><div class="dynheader"> Inheritance diagram for mrpt::gui::CDisplayWindowPlots:<!-- endSectionHeader --></div> <!-- startSectionSummary --><!-- endSectionSummary --><!-- startSectionContent --><div class="dyncontent"> <div class="center"><img src="classmrpt_1_1gui_1_1_c_display_window_plots__inherit__graph.png" border="0" usemap="#mrpt_1_1gui_1_1_c_display_window_plots_inherit__map" alt="Inheritance graph"/></div> <map name="mrpt_1_1gui_1_1_c_display_window_plots_inherit__map" id="mrpt_1_1gui_1_1_c_display_window_plots_inherit__map"> </map> <center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center><!-- endSectionContent --></div> <p><a href="classmrpt_1_1gui_1_1_c_display_window_plots-members.html">List of all members.</a></p> <table class="memberdecls"> <tr><td colspan="2"><h2><a name="pub-types"></a> Public Types</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">typedef void(* </td><td class="memItemRight" valign="bottom"><a class="el" href="classmrpt_1_1gui_1_1_c_display_window_plots.html#aeaaffdec8db5e63f4648fb6e5a8a6808">TCallbackMenu</a> )(int menuID, float cursor_x, float cursor_y, void *userParam)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Type for the callback function used in setMenuCallback. <a href="#aeaaffdec8db5e63f4648fb6e5a8a6808"></a><br/></td></tr> <tr><td colspan="2"><h2><a name="pub-methods"></a> Public Member Functions</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classmrpt_1_1gui_1_1_c_display_window_plots.html#a8962539d51162cc02b84bb2461ae7215">CDisplayWindowPlots</a> (const std::string &windowCaption=std::string(), unsigned int initialWidth=350, unsigned int initialHeight=300)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Constructor. <a href="#a8962539d51162cc02b84bb2461ae7215"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classmrpt_1_1gui_1_1_c_display_window_plots.html#ab868301892f066ef3f3e42dd964a584b">~CDisplayWindowPlots</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Destructor. <a href="#ab868301892f066ef3f3e42dd964a584b"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">virtual bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classmrpt_1_1gui_1_1_c_display_window_plots.html#ac7b40397609c6d65f0b86d7ac58aa47a">getLastMousePosition</a> (int &x, int &y) const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Gets the last x,y pixel coordinates of the mouse. <a href="#ac7b40397609c6d65f0b86d7ac58aa47a"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classmrpt_1_1gui_1_1_c_display_window_plots.html#a22e02fed4426009e386ba7dd2bb3442e">setCursorCross</a> (bool cursorIsCross)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Set cursor style to default (cursorIsCross=false) or to a cross (cursorIsCross=true) <a href="#a22e02fed4426009e386ba7dd2bb3442e"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classmrpt_1_1gui_1_1_c_display_window_plots.html#ae52ab652258f1cde95ec9c5e6d29d3ef">resize</a> (unsigned int width, unsigned int height)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Resizes the window, stretching the image to fit into the display area. <a href="#ae52ab652258f1cde95ec9c5e6d29d3ef"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classmrpt_1_1gui_1_1_c_display_window_plots.html#a937cc92f848dcbe481ba20666ee5ebab">setPos</a> (int x, int y)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Changes the position of the window on the screen. <a href="#a937cc92f848dcbe481ba20666ee5ebab"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classmrpt_1_1gui_1_1_c_display_window_plots.html#a6c13dd4168d5d31e79bf72ac2c69212a">setWindowTitle</a> (const std::string &str)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Changes the window title text. <a href="#a6c13dd4168d5d31e79bf72ac2c69212a"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classmrpt_1_1gui_1_1_c_display_window_plots.html#a11cf9e446746948c20518dff29cd335c">enableMousePanZoom</a> (bool enabled)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Enable/disable the feature of pan/zoom with the mouse (default=enabled) <a href="#a11cf9e446746948c20518dff29cd335c"></a><br/></td></tr> <tr><td class="memTemplParams" colspan="2">template<typename T1 , typename T2 > </td></tr> <tr><td class="memTemplItemLeft" align="right" valign="top">void </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classmrpt_1_1gui_1_1_c_display_window_plots.html#adafc202997e213b633ad438c3fe0759b">plot</a> (const std::vector< T1 > &x, const std::vector< T2 > &y, const std::string &lineFormat=std::string("b-"), const std::string &plotName=std::string("plotXY"))</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Adds a new layer with a 2D plot based on two vectors of X and Y points, using a MATLAB-like syntax. <a href="#adafc202997e213b633ad438c3fe0759b"></a><br/></td></tr> <tr><td class="memTemplParams" colspan="2">template<typename T1 , typename Derived2 > </td></tr> <tr><td class="memTemplItemLeft" align="right" valign="top">void </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classmrpt_1_1gui_1_1_c_display_window_plots.html#abdfef021994d4b6aae80b964d7509803">plot</a> (const std::vector< T1 > &x, const Eigen::MatrixBase< Derived2 > &y, const std::string &lineFormat=std::string("b-"), const std::string &plotName=std::string("plotXY"))</td></tr> <tr><td class="memTemplParams" colspan="2">template<typename Derived1 , typename T2 > </td></tr> <tr><td class="memTemplItemLeft" align="right" valign="top">void </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classmrpt_1_1gui_1_1_c_display_window_plots.html#a4ccef9a28750f36c6c8dcea3199658cf">plot</a> (const Eigen::MatrixBase< Derived1 > &x, const std::vector< T2 > &y, const std::string &lineFormat=std::string("b-"), const std::string &plotName=std::string("plotXY"))</td></tr> <tr><td class="memTemplParams" colspan="2">template<typename Derived1 , typename Derived2 > </td></tr> <tr><td class="memTemplItemLeft" align="right" valign="top">void </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classmrpt_1_1gui_1_1_c_display_window_plots.html#adf3d5d4d2b64196af35b09cf4e9c6bbc">plot</a> (const Eigen::MatrixBase< Derived1 > &x, const Eigen::MatrixBase< Derived2 > &y, const std::string &lineFormat=std::string("b-"), const std::string &plotName=std::string("plotXY"))</td></tr> <tr><td class="memTemplParams" colspan="2">template<typename T > </td></tr> <tr><td class="memTemplItemLeft" align="right" valign="top">void </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classmrpt_1_1gui_1_1_c_display_window_plots.html#a8b74b28c3f1fe290fb7f9294fd6b30b8">plot</a> (const std::vector< T > &y, const std::string &lineFormat=std::string("b-"), const std::string &plotName=std::string("plotXY"))</td></tr> <tr><td class="memTemplParams" colspan="2">template<typename Derived > </td></tr> <tr><td class="memTemplItemLeft" align="right" valign="top">void </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classmrpt_1_1gui_1_1_c_display_window_plots.html#a836efb7a2146219d215f25ee771cbd57">plot</a> (const Eigen::MatrixBase< Derived > &y, const std::string &lineFormat=std::string("b-"), const std::string &plotName=std::string("plotXY"))</td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classmrpt_1_1gui_1_1_c_display_window_plots.html#a8b063d884b5b140a7fdfaa6b68b323cf">axis</a> (float x_min, float x_max, float y_min, float y_max, bool aspectRatioFix=false)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Set the view area according to the passed coordinated. <a href="#a8b063d884b5b140a7fdfaa6b68b323cf"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classmrpt_1_1gui_1_1_c_display_window_plots.html#a8a022446f3546c0c684c470391d42e58">axis_equal</a> (bool enable=true)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Enable/disable the fixed X/Y aspect ratio fix feature (default=disabled). <a href="#a8a022446f3546c0c684c470391d42e58"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classmrpt_1_1gui_1_1_c_display_window_plots.html#acfd030aa2c2edfcbe26a53278a6f2761">axis_fit</a> (bool aspectRatioFix=false)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Fix automatically the view area according to existing graphs. <a href="#acfd030aa2c2edfcbe26a53278a6f2761"></a><br/></td></tr> <tr><td class="memTemplParams" colspan="2">template<typename T > </td></tr> <tr><td class="memTemplItemLeft" align="right" valign="top">void GUI_IMPEXP </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classmrpt_1_1gui_1_1_c_display_window_plots.html#a4a42c1b63fd20f18923a91341b61f591">plotEllipse</a> (const T mean_x, const T mean_y, const <a class="el" href="classmrpt_1_1math_1_1_c_matrix_template_numeric.html">CMatrixTemplateNumeric</a>< T > &cov22, const float quantiles, const std::string &lineFormat=std::string("b-"), const std::string &plotName=std::string("plotEllipse"), bool showName=false)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Plots a 2D ellipse given its mean, covariance matrix, and Each call to this function creates a new plot, unless the plot name coincides with an already existing plot: in this case the new values are used to update this existing layer (this also applies to using the default plot name). <a href="#a4a42c1b63fd20f18923a91341b61f591"></a><br/></td></tr> <tr><td class="memTemplParams" colspan="2">template<typename T > </td></tr> <tr><td class="memTemplItemLeft" align="right" valign="top">void GUI_IMPEXP </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classmrpt_1_1gui_1_1_c_display_window_plots.html#ac082b8e5f72d875fc5e4c425d28a85f3">plotEllipse</a> (const T mean_x, const T mean_y, const <a class="el" href="classmrpt_1_1math_1_1_c_matrix_fixed_numeric.html">CMatrixFixedNumeric</a>< T, 2, 2 > &cov22, const float quantiles, const std::string &lineFormat=std::string("b-"), const std::string &plotName=std::string("plotEllipse"), bool showName=false)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classmrpt_1_1gui_1_1_c_display_window_plots.html#a096e2c6bdacf0dccea9d9e374d15e395">image</a> (const <a class="el" href="classmrpt_1_1utils_1_1_c_image.html">utils::CImage</a> &img, const float &x_left, const float &y_bottom, const float &x_width, const float &y_height, const std::string &plotName=std::string("image"))</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Adds a bitmap image layer. <a href="#a096e2c6bdacf0dccea9d9e374d15e395"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classmrpt_1_1gui_1_1_c_display_window_plots.html#a3ae79cf56c9a68316c741e9a16981cbf">clear</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Remove all plot objects in the display. <a href="#a3ae79cf56c9a68316c741e9a16981cbf"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classmrpt_1_1gui_1_1_c_display_window_plots.html#a7229d122bbbfa3d0cb3cd6c1190e65f4">clf</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Remove all plot objects in the display (clear and clf do exactly the same). <a href="#a7229d122bbbfa3d0cb3cd6c1190e65f4"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classmrpt_1_1gui_1_1_c_display_window_plots.html#a76cfb0629841e38d9a5d74151185d684">hold_on</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Enables keeping all the graphs, instead of overwritting them. <a href="#a76cfb0629841e38d9a5d74151185d684"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classmrpt_1_1gui_1_1_c_display_window_plots.html#a56a1a2c9db43eaad59fbd9a691321797">hold_off</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Disables keeping all the graphs (this is the default behavior). <a href="#a56a1a2c9db43eaad59fbd9a691321797"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classmrpt_1_1gui_1_1_c_display_window_plots.html#aa4282d3130ab8541b553542b0a0714cf">addPopupMenuEntry</a> (const std::string &label, int menuID)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Disables keeping all the graphs (this is the default behavior). <a href="#aa4282d3130ab8541b553542b0a0714cf"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classmrpt_1_1gui_1_1_c_display_window_plots.html#a4cf001c64566d783754f0c9a99862bda">setMenuCallback</a> (<a class="el" href="classmrpt_1_1gui_1_1_c_display_window_plots.html#aeaaffdec8db5e63f4648fb6e5a8a6808">TCallbackMenu</a> userFunction, void *userParam=NULL)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Must be called to have a callback when the user selects one of the user-defined entries in the popup menu. <a href="#a4cf001c64566d783754f0c9a99862bda"></a><br/></td></tr> <tr><td colspan="2"><h2><a name="pub-static-methods"></a> Static Public Member Functions</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="structmrpt_1_1gui_1_1_c_display_window_plots_ptr.html">CDisplayWindowPlotsPtr</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classmrpt_1_1gui_1_1_c_display_window_plots.html#a322b16ff5c28f80260a4b5fd964d6e3d">Create</a> (const std::string &windowCaption=std::string(), unsigned int initialWindowWidth=400, unsigned int initialWindowHeight=300)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Class factory returning a smart pointer. <a href="#a322b16ff5c28f80260a4b5fd964d6e3d"></a><br/></td></tr> <tr><td colspan="2"><h2><a name="pro-methods"></a> Protected Member Functions</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classmrpt_1_1gui_1_1_c_display_window_plots.html#a4face1c2fa9be779c7e50e273e5668b6">internal_plot</a> (<a class="el" href="structmrpt_1_1dynamicsize__vector.html">vector_float</a> &x, <a class="el" href="structmrpt_1_1dynamicsize__vector.html">vector_float</a> &y, const std::string &lineFormat, const std::string &plotName)</td></tr> <tr><td class="memTemplParams" colspan="2">template<typename VECTOR1 , typename VECTOR2 > </td></tr> <tr><td class="memTemplItemLeft" align="right" valign="top">void </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classmrpt_1_1gui_1_1_c_display_window_plots.html#afac613272cfb37973853094059d490de">internal_plot_interface</a> (const VECTOR1 &x, const VECTOR2 &y, const std::string &lineFormat, const std::string &plotName)</td></tr> <tr><td class="memTemplParams" colspan="2">template<typename VECTOR1 > </td></tr> <tr><td class="memTemplItemLeft" align="right" valign="top">void </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classmrpt_1_1gui_1_1_c_display_window_plots.html#a6ed3dea1d41653eb729387fa1ffa4fbe">internal_plot_interface</a> (const VECTOR1 &y, const std::string &lineFormat, const std::string &plotName)</td></tr> <tr><td colspan="2"><h2><a name="pro-attribs"></a> Protected Attributes</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classmrpt_1_1gui_1_1_c_display_window_plots.html#a3b19a27553d9993e0973629c73cb6151">m_holdon</a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Whether hold_on is enabled. <a href="#a3b19a27553d9993e0973629c73cb6151"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classmrpt_1_1gui_1_1_c_display_window_plots.html#a1c5c678330a336bdc0e7537ff9b1cace">m_holdon_just_disabled</a></td></tr> <tr><td class="memItemLeft" align="right" valign="top">uint32_t </td><td class="memItemRight" valign="bottom"><a class="el" href="classmrpt_1_1gui_1_1_c_display_window_plots.html#abd2e33dc798b3f3db307bbfd2d0d824e">m_holdon_cnt</a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Counter for hold_on. <a href="#abd2e33dc798b3f3db307bbfd2d0d824e"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classmrpt_1_1gui_1_1_c_display_window_plots.html#aeaaffdec8db5e63f4648fb6e5a8a6808">TCallbackMenu</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classmrpt_1_1gui_1_1_c_display_window_plots.html#a3587ab60849d518508112ac9e8c0918e">m_callback</a></td></tr> <tr><td class="memItemLeft" align="right" valign="top">void * </td><td class="memItemRight" valign="bottom"><a class="el" href="classmrpt_1_1gui_1_1_c_display_window_plots.html#a05bdca4f1f0bab30c569d37e6926b1f4">m_callback_param</a></td></tr> <tr><td colspan="2"><h2><a name="friends"></a> Friends</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">class </td><td class="memItemRight" valign="bottom"><a class="el" href="classmrpt_1_1gui_1_1_c_display_window_plots.html#a0eab80c3eb0251b2f663e3d0e010573e">CWindowDialogPlots</a></td></tr> <tr><td colspan="2"><h2><a name="member-group"></a> RTTI stuff</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">typedef <a class="el" href="structmrpt_1_1gui_1_1_c_display_window_plots_ptr.html">CDisplayWindowPlotsPtr</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classmrpt_1_1gui_1_1_c_display_window_plots.html#ad9097e44b0bb5b876b1801e1d577104f">SmartPtr</a></td></tr> <tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="structmrpt_1_1utils_1_1_c_l_a_s_s_i_n_i_t.html">mrpt::utils::CLASSINIT</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classmrpt_1_1gui_1_1_c_display_window_plots.html#a6a33eed16fa851d4fd93c0e89df0850b">_init_CDisplayWindowPlots</a></td></tr> <tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="structmrpt_1_1utils_1_1_t_runtime_class_id.html">mrpt::utils::TRuntimeClassId</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classmrpt_1_1gui_1_1_c_display_window_plots.html#ad8fa14a50c29fddc54baaceb308b5f3a">classCDisplayWindowPlots</a></td></tr> <tr><td class="memItemLeft" align="right" valign="top">static const <br class="typebreak"/> <a class="el" href="structmrpt_1_1utils_1_1_t_runtime_class_id.html">mrpt::utils::TRuntimeClassId</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classmrpt_1_1gui_1_1_c_display_window_plots.html#ab609297009eef1d23ffbba053c217d3a">classinfo</a></td></tr> <tr><td class="memItemLeft" align="right" valign="top">static const <br class="typebreak"/> <a class="el" href="structmrpt_1_1utils_1_1_t_runtime_class_id.html">mrpt::utils::TRuntimeClassId</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classmrpt_1_1gui_1_1_c_display_window_plots.html#abc94a637e932a99ff46c8f788fc1722a">_GetBaseClass</a> ()</td></tr> <tr><td class="memItemLeft" align="right" valign="top">virtual const <br class="typebreak"/> <a class="el" href="structmrpt_1_1utils_1_1_t_runtime_class_id.html">mrpt::utils::TRuntimeClassId</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classmrpt_1_1gui_1_1_c_display_window_plots.html#a18e161cd8c21444bd9835aecb91d33a2">GetRuntimeClass</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Returns information about the class of an object in runtime. <a href="#a18e161cd8c21444bd9835aecb91d33a2"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classmrpt_1_1utils_1_1_c_object.html">mrpt::utils::CObject</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classmrpt_1_1gui_1_1_c_display_window_plots.html#aa6f1cf193c3bf6a2313b53951346e782">duplicate</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Returns a copy of the object, indepently of its class. <a href="#aa6f1cf193c3bf6a2313b53951346e782"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classmrpt_1_1utils_1_1_c_object.html">mrpt::utils::CObject</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classmrpt_1_1gui_1_1_c_display_window_plots.html#a608ae3594073d5be017001e8359b2035">CreateObject</a> ()</td></tr> <tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="structmrpt_1_1gui_1_1_c_display_window_plots_ptr.html">CDisplayWindowPlotsPtr</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classmrpt_1_1gui_1_1_c_display_window_plots.html#a39985a83702f9b2323eab75fccea899e">Create</a> ()</td></tr> </table> <hr/><h2>Member Typedef Documentation</h2> <a class="anchor" id="ad9097e44b0bb5b876b1801e1d577104f"></a><!-- doxytag: member="mrpt::gui::CDisplayWindowPlots::SmartPtr" ref="ad9097e44b0bb5b876b1801e1d577104f" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">typedef <a class="el" href="structmrpt_1_1gui_1_1_c_display_window_plots_ptr.html">CDisplayWindowPlotsPtr</a> <a class="el" href="structmrpt_1_1gui_1_1_c_display_window_plots_ptr.html">mrpt::gui::CDisplayWindowPlots::SmartPtr</a></td> </tr> </table> </div> <div class="memdoc"> <p>A typedef for the associated smart pointer </p> <p>Definition at line <a class="el" href="_c_display_window_plots_8h_source.html#l00059">59</a> of file <a class="el" href="_c_display_window_plots_8h_source.html">CDisplayWindowPlots.h</a>.</p> </div> </div> <a class="anchor" id="aeaaffdec8db5e63f4648fb6e5a8a6808"></a><!-- doxytag: member="mrpt::gui::CDisplayWindowPlots::TCallbackMenu" ref="aeaaffdec8db5e63f4648fb6e5a8a6808" args=")(int menuID, float cursor_x, float cursor_y, void *userParam)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">typedef void(* <a class="el" href="classmrpt_1_1gui_1_1_c_display_window_plots.html#aeaaffdec8db5e63f4648fb6e5a8a6808">mrpt::gui::CDisplayWindowPlots::TCallbackMenu</a>)(int menuID, float cursor_x, float cursor_y, void *userParam)</td> </tr> </table> </div> <div class="memdoc"> <p>Type for the callback function used in setMenuCallback. </p> <p>Definition at line <a class="el" href="_c_display_window_plots_8h_source.html#l00062">62</a> of file <a class="el" href="_c_display_window_plots_8h_source.html">CDisplayWindowPlots.h</a>.</p> </div> </div> <hr/><h2>Constructor & Destructor Documentation</h2> <a class="anchor" id="a8962539d51162cc02b84bb2461ae7215"></a><!-- doxytag: member="mrpt::gui::CDisplayWindowPlots::CDisplayWindowPlots" ref="a8962539d51162cc02b84bb2461ae7215" args="(const std::string &windowCaption=std::string(), unsigned int initialWidth=350, unsigned int initialHeight=300)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">mrpt::gui::CDisplayWindowPlots::CDisplayWindowPlots </td> <td>(</td> <td class="paramtype">const std::string & </td> <td class="paramname"> <em>windowCaption</em> = <code>std::string()</code>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">unsigned int </td> <td class="paramname"> <em>initialWidth</em> = <code>350</code>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">unsigned int </td> <td class="paramname"> <em>initialHeight</em> = <code>300</code> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div> <div class="memdoc"> <p>Constructor. </p> </div> </div> <a class="anchor" id="ab868301892f066ef3f3e42dd964a584b"></a><!-- doxytag: member="mrpt::gui::CDisplayWindowPlots::~CDisplayWindowPlots" ref="ab868301892f066ef3f3e42dd964a584b" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual mrpt::gui::CDisplayWindowPlots::~CDisplayWindowPlots </td> <td>(</td> <td class="paramname"> )</td> <td><code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Destructor. </p> </div> </div> <hr/><h2>Member Function Documentation</h2> <a class="anchor" id="abc94a637e932a99ff46c8f788fc1722a"></a><!-- doxytag: member="mrpt::gui::CDisplayWindowPlots::_GetBaseClass" ref="abc94a637e932a99ff46c8f788fc1722a" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">static const <a class="el" href="structmrpt_1_1utils_1_1_t_runtime_class_id.html">mrpt::utils::TRuntimeClassId</a>* mrpt::gui::CDisplayWindowPlots::_GetBaseClass </td> <td>(</td> <td class="paramname"> )</td> <td><code> [static, protected]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Reimplemented from <a class="el" href="classmrpt_1_1gui_1_1_c_base_g_u_i_window.html#a333e2717ff37f546a049e8613e5476c7">mrpt::gui::CBaseGUIWindow</a>.</p> </div> </div> <a class="anchor" id="aa4282d3130ab8541b553542b0a0714cf"></a><!-- doxytag: member="mrpt::gui::CDisplayWindowPlots::addPopupMenuEntry" ref="aa4282d3130ab8541b553542b0a0714cf" args="(const std::string &label, int menuID)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void mrpt::gui::CDisplayWindowPlots::addPopupMenuEntry </td> <td>(</td> <td class="paramtype">const std::string & </td> <td class="paramname"> <em>label</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"> <em>menuID</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div> <div class="memdoc"> <p>Disables keeping all the graphs (this is the default behavior). </p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">label</td><td>The text that appears in the new popup menu item. </td></tr> <tr><td class="paramname">menuID</td><td>Any positive number (0,1,..). Used to tell which menu was selected in the user callback. </td></tr> </table> </dd> </dl> <dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classmrpt_1_1gui_1_1_c_display_window_plots.html#a4cf001c64566d783754f0c9a99862bda" title="Must be called to have a callback when the user selects one of the user-defined entries in the popup ...">setMenuCallback</a> </dd></dl> </div> </div> <a class="anchor" id="a8b063d884b5b140a7fdfaa6b68b323cf"></a><!-- doxytag: member="mrpt::gui::CDisplayWindowPlots::axis" ref="a8b063d884b5b140a7fdfaa6b68b323cf" args="(float x_min, float x_max, float y_min, float y_max, bool aspectRatioFix=false)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void mrpt::gui::CDisplayWindowPlots::axis </td> <td>(</td> <td class="paramtype">float </td> <td class="paramname"> <em>x_min</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">float </td> <td class="paramname"> <em>x_max</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">float </td> <td class="paramname"> <em>y_min</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">float </td> <td class="paramname"> <em>y_max</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">bool </td> <td class="paramname"> <em>aspectRatioFix</em> = <code>false</code> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div> <div class="memdoc"> <p>Set the view area according to the passed coordinated. </p> </div> </div> <a class="anchor" id="a8a022446f3546c0c684c470391d42e58"></a><!-- doxytag: member="mrpt::gui::CDisplayWindowPlots::axis_equal" ref="a8a022446f3546c0c684c470391d42e58" args="(bool enable=true)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void mrpt::gui::CDisplayWindowPlots::axis_equal </td> <td>(</td> <td class="paramtype">bool </td> <td class="paramname"> <em>enable</em> = <code>true</code> )</td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Enable/disable the fixed X/Y aspect ratio fix feature (default=disabled). </p> </div> </div> <a class="anchor" id="acfd030aa2c2edfcbe26a53278a6f2761"></a><!-- doxytag: member="mrpt::gui::CDisplayWindowPlots::axis_fit" ref="acfd030aa2c2edfcbe26a53278a6f2761" args="(bool aspectRatioFix=false)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void mrpt::gui::CDisplayWindowPlots::axis_fit </td> <td>(</td> <td class="paramtype">bool </td> <td class="paramname"> <em>aspectRatioFix</em> = <code>false</code> )</td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Fix automatically the view area according to existing graphs. </p> </div> </div> <a class="anchor" id="a3ae79cf56c9a68316c741e9a16981cbf"></a><!-- doxytag: member="mrpt::gui::CDisplayWindowPlots::clear" ref="a3ae79cf56c9a68316c741e9a16981cbf" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void mrpt::gui::CDisplayWindowPlots::clear </td> <td>(</td> <td class="paramname"> )</td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Remove all plot objects in the display. </p> <dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classmrpt_1_1gui_1_1_c_display_window_plots.html#adafc202997e213b633ad438c3fe0759b" title="Adds a new layer with a 2D plot based on two vectors of X and Y points, using a MATLAB-like syntax...">plot</a> </dd></dl> </div> </div> <a class="anchor" id="a7229d122bbbfa3d0cb3cd6c1190e65f4"></a><!-- doxytag: member="mrpt::gui::CDisplayWindowPlots::clf" ref="a7229d122bbbfa3d0cb3cd6c1190e65f4" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void mrpt::gui::CDisplayWindowPlots::clf </td> <td>(</td> <td class="paramname"> )</td> <td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Remove all plot objects in the display (clear and clf do exactly the same). </p> <dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classmrpt_1_1gui_1_1_c_display_window_plots.html#adafc202997e213b633ad438c3fe0759b" title="Adds a new layer with a 2D plot based on two vectors of X and Y points, using a MATLAB-like syntax...">plot</a>, <a class="el" href="classmrpt_1_1gui_1_1_c_display_window_plots.html#a76cfb0629841e38d9a5d74151185d684" title="Enables keeping all the graphs, instead of overwritting them.">hold_on</a>, <a class="el" href="classmrpt_1_1gui_1_1_c_display_window_plots.html#a56a1a2c9db43eaad59fbd9a691321797" title="Disables keeping all the graphs (this is the default behavior).">hold_off</a> </dd></dl> <p>Definition at line <a class="el" href="_c_display_window_plots_8h_source.html#l00241">241</a> of file <a class="el" href="_c_display_window_plots_8h_source.html">CDisplayWindowPlots.h</a>.</p> </div> </div> <a class="anchor" id="a322b16ff5c28f80260a4b5fd964d6e3d"></a><!-- doxytag: member="mrpt::gui::CDisplayWindowPlots::Create" ref="a322b16ff5c28f80260a4b5fd964d6e3d" args="(const std::string &windowCaption=std::string(), unsigned int initialWindowWidth=400, unsigned int initialWindowHeight=300)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">static <a class="el" href="structmrpt_1_1gui_1_1_c_display_window_plots_ptr.html">CDisplayWindowPlotsPtr</a> mrpt::gui::CDisplayWindowPlots::Create </td> <td>(</td> <td class="paramtype">const std::string & </td> <td class="paramname"> <em>windowCaption</em> = <code>std::string()</code>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">unsigned int </td> <td class="paramname"> <em>initialWindowWidth</em> = <code>400</code>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">unsigned int </td> <td class="paramname"> <em>initialWindowHeight</em> = <code>300</code> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td><code> [inline, static]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Class factory returning a smart pointer. </p> <p>Definition at line <a class="el" href="_c_display_window_plots_8h_source.html#l00103">103</a> of file <a class="el" href="_c_display_window_plots_8h_source.html">CDisplayWindowPlots.h</a>.</p> </div> </div> <a class="anchor" id="a39985a83702f9b2323eab75fccea899e"></a><!-- doxytag: member="mrpt::gui::CDisplayWindowPlots::Create" ref="a39985a83702f9b2323eab75fccea899e" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">static <a class="el" href="structmrpt_1_1gui_1_1_c_display_window_plots_ptr.html">CDisplayWindowPlotsPtr</a> mrpt::gui::CDisplayWindowPlots::Create </td> <td>(</td> <td class="paramname"> )</td> <td><code> [static]</code></td> </tr> </table> </div> <div class="memdoc"> </div> </div> <a class="anchor" id="a608ae3594073d5be017001e8359b2035"></a><!-- doxytag: member="mrpt::gui::CDisplayWindowPlots::CreateObject" ref="a608ae3594073d5be017001e8359b2035" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">static <a class="el" href="classmrpt_1_1utils_1_1_c_object.html">mrpt::utils::CObject</a>* mrpt::gui::CDisplayWindowPlots::CreateObject </td> <td>(</td> <td class="paramname"> )</td> <td><code> [static]</code></td> </tr> </table> </div> <div class="memdoc"> </div> </div> <a class="anchor" id="aa6f1cf193c3bf6a2313b53951346e782"></a><!-- doxytag: member="mrpt::gui::CDisplayWindowPlots::duplicate" ref="aa6f1cf193c3bf6a2313b53951346e782" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual <a class="el" href="classmrpt_1_1utils_1_1_c_object.html">mrpt::utils::CObject</a>* mrpt::gui::CDisplayWindowPlots::duplicate </td> <td>(</td> <td class="paramname"> )</td> <td> const<code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Returns a copy of the object, indepently of its class. </p> <p>Implements <a class="el" href="classmrpt_1_1utils_1_1_c_object.html#aa1070e173c5f7e307b09c53f1fd256e2">mrpt::utils::CObject</a>.</p> </div> </div> <a class="anchor" id="a11cf9e446746948c20518dff29cd335c"></a><!-- doxytag: member="mrpt::gui::CDisplayWindowPlots::enableMousePanZoom" ref="a11cf9e446746948c20518dff29cd335c" args="(bool enabled)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void mrpt::gui::CDisplayWindowPlots::enableMousePanZoom </td> <td>(</td> <td class="paramtype">bool </td> <td class="paramname"> <em>enabled</em> )</td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Enable/disable the feature of pan/zoom with the mouse (default=enabled) </p> </div> </div> <a class="anchor" id="ac7b40397609c6d65f0b86d7ac58aa47a"></a><!-- doxytag: member="mrpt::gui::CDisplayWindowPlots::getLastMousePosition" ref="ac7b40397609c6d65f0b86d7ac58aa47a" args="(int &x, int &y) const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual bool mrpt::gui::CDisplayWindowPlots::getLastMousePosition </td> <td>(</td> <td class="paramtype">int & </td> <td class="paramname"> <em>x</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int & </td> <td class="paramname"> <em>y</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td> const<code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Gets the last x,y pixel coordinates of the mouse. </p> <dl class="return"><dt><b>Returns:</b></dt><dd>False if the window is closed. </dd></dl> <p>Implements <a class="el" href="classmrpt_1_1gui_1_1_c_base_g_u_i_window.html#a19cec74df8767823690cc5e3ee54b5d5">mrpt::gui::CBaseGUIWindow</a>.</p> </div> </div> <a class="anchor" id="a18e161cd8c21444bd9835aecb91d33a2"></a><!-- doxytag: member="mrpt::gui::CDisplayWindowPlots::GetRuntimeClass" ref="a18e161cd8c21444bd9835aecb91d33a2" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual const <a class="el" href="structmrpt_1_1utils_1_1_t_runtime_class_id.html">mrpt::utils::TRuntimeClassId</a>* mrpt::gui::CDisplayWindowPlots::GetRuntimeClass </td> <td>(</td> <td class="paramname"> )</td> <td> const<code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Returns information about the class of an object in runtime. </p> <p>Reimplemented from <a class="el" href="classmrpt_1_1gui_1_1_c_base_g_u_i_window.html#a64eac7fe898e5cd0395cfe251c903777">mrpt::gui::CBaseGUIWindow</a>.</p> </div> </div> <a class="anchor" id="a56a1a2c9db43eaad59fbd9a691321797"></a><!-- doxytag: member="mrpt::gui::CDisplayWindowPlots::hold_off" ref="a56a1a2c9db43eaad59fbd9a691321797" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void mrpt::gui::CDisplayWindowPlots::hold_off </td> <td>(</td> <td class="paramname"> )</td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Disables keeping all the graphs (this is the default behavior). </p> <dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classmrpt_1_1gui_1_1_c_display_window_plots.html#a76cfb0629841e38d9a5d74151185d684" title="Enables keeping all the graphs, instead of overwritting them.">hold_on</a>, <a class="el" href="classmrpt_1_1gui_1_1_c_display_window_plots.html#adafc202997e213b633ad438c3fe0759b" title="Adds a new layer with a 2D plot based on two vectors of X and Y points, using a MATLAB-like syntax...">plot</a> </dd></dl> </div> </div> <a class="anchor" id="a76cfb0629841e38d9a5d74151185d684"></a><!-- doxytag: member="mrpt::gui::CDisplayWindowPlots::hold_on" ref="a76cfb0629841e38d9a5d74151185d684" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void mrpt::gui::CDisplayWindowPlots::hold_on </td> <td>(</td> <td class="paramname"> )</td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Enables keeping all the graphs, instead of overwritting them. </p> <dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classmrpt_1_1gui_1_1_c_display_window_plots.html#a56a1a2c9db43eaad59fbd9a691321797" title="Disables keeping all the graphs (this is the default behavior).">hold_off</a>, <a class="el" href="classmrpt_1_1gui_1_1_c_display_window_plots.html#adafc202997e213b633ad438c3fe0759b" title="Adds a new layer with a 2D plot based on two vectors of X and Y points, using a MATLAB-like syntax...">plot</a> </dd></dl> </div> </div> <a class="anchor" id="a096e2c6bdacf0dccea9d9e374d15e395"></a><!-- doxytag: member="mrpt::gui::CDisplayWindowPlots::image" ref="a096e2c6bdacf0dccea9d9e374d15e395" args="(const utils::CImage &img, const float &x_left, const float &y_bottom, const float &x_width, const float &y_height, const std::string &plotName=std::string("image"))" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void mrpt::gui::CDisplayWindowPlots::image </td> <td>(</td> <td class="paramtype">const <a class="el" href="classmrpt_1_1utils_1_1_c_image.html">utils::CImage</a> & </td> <td class="paramname"> <em>img</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const float & </td> <td class="paramname"> <em>x_left</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const float & </td> <td class="paramname"> <em>y_bottom</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const float & </td> <td class="paramname"> <em>x_width</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const float & </td> <td class="paramname"> <em>y_height</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const std::string & </td> <td class="paramname"> <em>plotName</em> = <code>std::string("image")</code> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div> <div class="memdoc"> <p>Adds a bitmap image layer. </p> <p>Each call to this function creates a new layer, unless the plot name coincides with an already existing plot: in this case the new values are used to update this existing layer (this also applies to using the default plot name).</p> <dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classmrpt_1_1gui_1_1_c_display_window_plots.html#a8b063d884b5b140a7fdfaa6b68b323cf" title="Set the view area according to the passed coordinated.">axis</a>, <a class="el" href="classmrpt_1_1gui_1_1_c_display_window_plots.html#a8a022446f3546c0c684c470391d42e58" title="Enable/disable the fixed X/Y aspect ratio fix feature (default=disabled).">axis_equal</a>, <a class="el" href="classmrpt_1_1gui_1_1_c_display_window_plots.html#acfd030aa2c2edfcbe26a53278a6f2761" title="Fix automatically the view area according to existing graphs.">axis_fit</a>, <a class="el" href="classmrpt_1_1gui_1_1_c_display_window_plots.html#a76cfb0629841e38d9a5d74151185d684" title="Enables keeping all the graphs, instead of overwritting them.">hold_on</a>, <a class="el" href="classmrpt_1_1gui_1_1_c_display_window_plots.html#a56a1a2c9db43eaad59fbd9a691321797" title="Disables keeping all the graphs (this is the default behavior).">hold_off</a> </dd></dl> </div> </div> <a class="anchor" id="a4face1c2fa9be779c7e50e273e5668b6"></a><!-- doxytag: member="mrpt::gui::CDisplayWindowPlots::internal_plot" ref="a4face1c2fa9be779c7e50e273e5668b6" args="(vector_float &x, vector_float &y, const std::string &lineFormat, const std::string &plotName)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void mrpt::gui::CDisplayWindowPlots::internal_plot </td> <td>(</td> <td class="paramtype"><a class="el" href="structmrpt_1_1dynamicsize__vector.html">vector_float</a> & </td> <td class="paramname"> <em>x</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="structmrpt_1_1dynamicsize__vector.html">vector_float</a> & </td> <td class="paramname"> <em>y</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const std::string & </td> <td class="paramname"> <em>lineFormat</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const std::string & </td> <td class="paramname"> <em>plotName</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td><code> [protected]</code></td> </tr> </table> </div> <div class="memdoc"> </div> </div> <a class="anchor" id="a6ed3dea1d41653eb729387fa1ffa4fbe"></a><!-- doxytag: member="mrpt::gui::CDisplayWindowPlots::internal_plot_interface" ref="a6ed3dea1d41653eb729387fa1ffa4fbe" args="(const VECTOR1 &y, const std::string &lineFormat, const std::string &plotName)" --> <div class="memitem"> <div class="memproto"> <div class="memtemplate"> template<typename VECTOR1 > </div> <table class="memname"> <tr> <td class="memname">void mrpt::gui::CDisplayWindowPlots::internal_plot_interface </td> <td>(</td> <td class="paramtype">const VECTOR1 & </td> <td class="paramname"> <em>y</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const std::string & </td> <td class="paramname"> <em>lineFormat</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const std::string & </td> <td class="paramname"> <em>plotName</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td><code> [inline, protected]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Definition at line <a class="el" href="_c_display_window_plots_8h_source.html#l00085">85</a> of file <a class="el" href="_c_display_window_plots_8h_source.html">CDisplayWindowPlots.h</a>.</p> </div> </div> <a class="anchor" id="afac613272cfb37973853094059d490de"></a><!-- doxytag: member="mrpt::gui::CDisplayWindowPlots::internal_plot_interface" ref="afac613272cfb37973853094059d490de" args="(const VECTOR1 &x, const VECTOR2 &y, const std::string &lineFormat, const std::string &plotName)" --> <div class="memitem"> <div class="memproto"> <div class="memtemplate"> template<typename VECTOR1 , typename VECTOR2 > </div> <table class="memname"> <tr> <td class="memname">void mrpt::gui::CDisplayWindowPlots::internal_plot_interface </td> <td>(</td> <td class="paramtype">const VECTOR1 & </td> <td class="paramname"> <em>x</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const VECTOR2 & </td> <td class="paramname"> <em>y</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const std::string & </td> <td class="paramname"> <em>lineFormat</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const std::string & </td> <td class="paramname"> <em>plotName</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td><code> [inline, protected]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Definition at line <a class="el" href="_c_display_window_plots_8h_source.html#l00075">75</a> of file <a class="el" href="_c_display_window_plots_8h_source.html">CDisplayWindowPlots.h</a>.</p> </div> </div> <a class="anchor" id="adf3d5d4d2b64196af35b09cf4e9c6bbc"></a><!-- doxytag: member="mrpt::gui::CDisplayWindowPlots::plot" ref="adf3d5d4d2b64196af35b09cf4e9c6bbc" args="(const Eigen::MatrixBase< Derived1 > &x, const Eigen::MatrixBase< Derived2 > &y, const std::string &lineFormat=std::string("b-"), const std::string &plotName=std::string("plotXY"))" --> <div class="memitem"> <div class="memproto"> <div class="memtemplate"> template<typename Derived1 , typename Derived2 > </div> <table class="memname"> <tr> <td class="memname">void mrpt::gui::CDisplayWindowPlots::plot </td> <td>(</td> <td class="paramtype">const Eigen::MatrixBase< Derived1 > & </td> <td class="paramname"> <em>x</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const Eigen::MatrixBase< Derived2 > & </td> <td class="paramname"> <em>y</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const std::string & </td> <td class="paramname"> <em>lineFormat</em> = <code>std::string("b-")</code>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const std::string & </td> <td class="paramname"> <em>plotName</em> = <code>std::string("plotXY")</code> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. </p> <p>Definition at line <a class="el" href="_c_display_window_plots_8h_source.html#l00169">169</a> of file <a class="el" href="_c_display_window_plots_8h_source.html">CDisplayWindowPlots.h</a>.</p> </div> </div> <a class="anchor" id="adafc202997e213b633ad438c3fe0759b"></a><!-- doxytag: member="mrpt::gui::CDisplayWindowPlots::plot" ref="adafc202997e213b633ad438c3fe0759b" args="(const std::vector< T1 > &x, const std::vector< T2 > &y, const std::string &lineFormat=std::string("b-"), const std::string &plotName=std::string("plotXY"))" --> <div class="memitem"> <div class="memproto"> <div class="memtemplate"> template<typename T1 , typename T2 > </div> <table class="memname"> <tr> <td class="memname">void mrpt::gui::CDisplayWindowPlots::plot </td> <td>(</td> <td class="paramtype">const std::vector< T1 > & </td> <td class="paramname"> <em>x</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const std::vector< T2 > & </td> <td class="paramname"> <em>y</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const std::string & </td> <td class="paramname"> <em>lineFormat</em> = <code>std::string("b-")</code>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const std::string & </td> <td class="paramname"> <em>plotName</em> = <code>std::string("plotXY")</code> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Adds a new layer with a 2D plot based on two vectors of X and Y points, using a MATLAB-like syntax. </p> <p>Each call to this function creates a new plot, unless the plot name coincides with an already existing plot: in this case the X & Y points are used to update this existing layer (this also applies to using the default plot name). If "hold_on" is enabled, then every call will always create a new plot, even if no "plotName" is provided.</p> <p>The lineFormat string is a combination of the following characters:</p> <ul> <li>Line styles:<ul> <li>'.': One point for each data point</li> <li>'-': A continuous line</li> <li>':': A dashed line</li> </ul> </li> <li>Colors:<ul> <li>k: black</li> <li>r: red</li> <li>g: green</li> <li>b: blue</li> <li>m: magenta</li> <li>c: cyan</li> </ul> </li> <li>Line width:<ul> <li>'1' to '9': The line width (default=1)</li> </ul> </li> </ul> <p>Examples:</p> <ul> <li>'r.' -> red points.</li> <li>'k3' or 'k-3' -> A black line with a line width of 3 pixels. <dl class="note"><dt><b>Note:</b></dt><dd>The vectors x & y can be of types: float or double. </dd></dl> <dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classmrpt_1_1gui_1_1_c_display_window_plots.html#a8b063d884b5b140a7fdfaa6b68b323cf" title="Set the view area according to the passed coordinated.">axis</a>, <a class="el" href="classmrpt_1_1gui_1_1_c_display_window_plots.html#a8a022446f3546c0c684c470391d42e58" title="Enable/disable the fixed X/Y aspect ratio fix feature (default=disabled).">axis_equal</a>, <a class="el" href="classmrpt_1_1gui_1_1_c_display_window_plots.html#acfd030aa2c2edfcbe26a53278a6f2761" title="Fix automatically the view area according to existing graphs.">axis_fit</a>, <a class="el" href="classmrpt_1_1gui_1_1_c_display_window_plots.html#a3ae79cf56c9a68316c741e9a16981cbf" title="Remove all plot objects in the display.">clear</a>, <a class="el" href="classmrpt_1_1gui_1_1_c_display_window_plots.html#a76cfb0629841e38d9a5d74151185d684" title="Enables keeping all the graphs, instead of overwritting them.">hold_on</a>, <a class="el" href="classmrpt_1_1gui_1_1_c_display_window_plots.html#a56a1a2c9db43eaad59fbd9a691321797" title="Disables keeping all the graphs (this is the default behavior).">hold_off</a> </dd></dl> <dl><dt><b>Template Parameters:</b></dt><dd> <table class=""> <tr><td class="paramname">VECTOR</td><td>Can be std::vector<float/double> or <a class="el" href="structmrpt_1_1dynamicsize__vector.html" title="The base class of MRPT vectors, actually, Eigen column matrices of dynamic size with specialized cons...">mrpt::dynamicsize_vector</a><float/double> or a column/row Eigen::Matrix<> </td></tr> </table> </dd> </dl> </li> </ul> <p>Definition at line <a class="el" href="_c_display_window_plots_8h_source.html#l00163">163</a> of file <a class="el" href="_c_display_window_plots_8h_source.html">CDisplayWindowPlots.h</a>.</p> </div> </div> <a class="anchor" id="a4ccef9a28750f36c6c8dcea3199658cf"></a><!-- doxytag: member="mrpt::gui::CDisplayWindowPlots::plot" ref="a4ccef9a28750f36c6c8dcea3199658cf" args="(const Eigen::MatrixBase< Derived1 > &x, const std::vector< T2 > &y, const std::string &lineFormat=std::string("b-"), const std::string &plotName=std::string("plotXY"))" --> <div class="memitem"> <div class="memproto"> <div class="memtemplate"> template<typename Derived1 , typename T2 > </div> <table class="memname"> <tr> <td class="memname">void mrpt::gui::CDisplayWindowPlots::plot </td> <td>(</td> <td class="paramtype">const Eigen::MatrixBase< Derived1 > & </td> <td class="paramname"> <em>x</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const std::vector< T2 > & </td> <td class="paramname"> <em>y</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const std::string & </td> <td class="paramname"> <em>lineFormat</em> = <code>std::string("b-")</code>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const std::string & </td> <td class="paramname"> <em>plotName</em> = <code>std::string("plotXY")</code> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. </p> <p>Definition at line <a class="el" href="_c_display_window_plots_8h_source.html#l00167">167</a> of file <a class="el" href="_c_display_window_plots_8h_source.html">CDisplayWindowPlots.h</a>.</p> </div> </div> <a class="anchor" id="a8b74b28c3f1fe290fb7f9294fd6b30b8"></a><!-- doxytag: member="mrpt::gui::CDisplayWindowPlots::plot" ref="a8b74b28c3f1fe290fb7f9294fd6b30b8" args="(const std::vector< T > &y, const std::string &lineFormat=std::string("b-"), const std::string &plotName=std::string("plotXY"))" --> <div class="memitem"> <div class="memproto"> <div class="memtemplate"> template<typename T > </div> <table class="memname"> <tr> <td class="memname">void mrpt::gui::CDisplayWindowPlots::plot </td> <td>(</td> <td class="paramtype">const std::vector< T > & </td> <td class="paramname"> <em>y</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const std::string & </td> <td class="paramname"> <em>lineFormat</em> = <code>std::string("b-")</code>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const std::string & </td> <td class="paramname"> <em>plotName</em> = <code>std::string("plotXY")</code> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. </p> <p>Definition at line <a class="el" href="_c_display_window_plots_8h_source.html#l00172">172</a> of file <a class="el" href="_c_display_window_plots_8h_source.html">CDisplayWindowPlots.h</a>.</p> </div> </div> <a class="anchor" id="a836efb7a2146219d215f25ee771cbd57"></a><!-- doxytag: member="mrpt::gui::CDisplayWindowPlots::plot" ref="a836efb7a2146219d215f25ee771cbd57" args="(const Eigen::MatrixBase< Derived > &y, const std::string &lineFormat=std::string("b-"), const std::string &plotName=std::string("plotXY"))" --> <div class="memitem"> <div class="memproto"> <div class="memtemplate"> template<typename Derived > </div> <table class="memname"> <tr> <td class="memname">void mrpt::gui::CDisplayWindowPlots::plot </td> <td>(</td> <td class="paramtype">const Eigen::MatrixBase< Derived > & </td> <td class="paramname"> <em>y</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const std::string & </td> <td class="paramname"> <em>lineFormat</em> = <code>std::string("b-")</code>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const std::string & </td> <td class="paramname"> <em>plotName</em> = <code>std::string("plotXY")</code> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. </p> <p>Definition at line <a class="el" href="_c_display_window_plots_8h_source.html#l00174">174</a> of file <a class="el" href="_c_display_window_plots_8h_source.html">CDisplayWindowPlots.h</a>.</p> </div> </div> <a class="anchor" id="abdfef021994d4b6aae80b964d7509803"></a><!-- doxytag: member="mrpt::gui::CDisplayWindowPlots::plot" ref="abdfef021994d4b6aae80b964d7509803" args="(const std::vector< T1 > &x, const Eigen::MatrixBase< Derived2 > &y, const std::string &lineFormat=std::string("b-"), const std::string &plotName=std::string("plotXY"))" --> <div class="memitem"> <div class="memproto"> <div class="memtemplate"> template<typename T1 , typename Derived2 > </div> <table class="memname"> <tr> <td class="memname">void mrpt::gui::CDisplayWindowPlots::plot </td> <td>(</td> <td class="paramtype">const std::vector< T1 > & </td> <td class="paramname"> <em>x</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const Eigen::MatrixBase< Derived2 > & </td> <td class="paramname"> <em>y</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const std::string & </td> <td class="paramname"> <em>lineFormat</em> = <code>std::string("b-")</code>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const std::string & </td> <td class="paramname"> <em>plotName</em> = <code>std::string("plotXY")</code> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. </p> <p>Definition at line <a class="el" href="_c_display_window_plots_8h_source.html#l00165">165</a> of file <a class="el" href="_c_display_window_plots_8h_source.html">CDisplayWindowPlots.h</a>.</p> </div> </div> <a class="anchor" id="ac082b8e5f72d875fc5e4c425d28a85f3"></a><!-- doxytag: member="mrpt::gui::CDisplayWindowPlots::plotEllipse" ref="ac082b8e5f72d875fc5e4c425d28a85f3" args="(const T mean_x, const T mean_y, const CMatrixFixedNumeric< T, 2, 2 > &cov22, const float quantiles, const std::string &lineFormat=std::string("b-"), const std::string &plotName=std::string("plotEllipse"), bool showName=false)" --> <div class="memitem"> <div class="memproto"> <div class="memtemplate"> template<typename T > </div> <table class="memname"> <tr> <td class="memname">void GUI_IMPEXP mrpt::gui::CDisplayWindowPlots::plotEllipse </td> <td>(</td> <td class="paramtype">const T </td> <td class="paramname"> <em>mean_x</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const T </td> <td class="paramname"> <em>mean_y</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const <a class="el" href="classmrpt_1_1math_1_1_c_matrix_fixed_numeric.html">CMatrixFixedNumeric</a>< T, 2, 2 > & </td> <td class="paramname"> <em>cov22</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const float </td> <td class="paramname"> <em>quantiles</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const std::string & </td> <td class="paramname"> <em>lineFormat</em> = <code>std::string("b-")</code>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const std::string & </td> <td class="paramname"> <em>plotName</em> = <code>std::string("plotEllipse")</code>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">bool </td> <td class="paramname"> <em>showName</em> = <code>false</code> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div> <div class="memdoc"> <p>This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. </p> </div> </div> <a class="anchor" id="a4a42c1b63fd20f18923a91341b61f591"></a><!-- doxytag: member="mrpt::gui::CDisplayWindowPlots::plotEllipse" ref="a4a42c1b63fd20f18923a91341b61f591" args="(const T mean_x, const T mean_y, const CMatrixTemplateNumeric< T > &cov22, const float quantiles, const std::string &lineFormat=std::string("b-"), const std::string &plotName=std::string("plotEllipse"), bool showName=false)" --> <div class="memitem"> <div class="memproto"> <div class="memtemplate"> template<typename T > </div> <table class="memname"> <tr> <td class="memname">void GUI_IMPEXP mrpt::gui::CDisplayWindowPlots::plotEllipse </td> <td>(</td> <td class="paramtype">const T </td> <td class="paramname"> <em>mean_x</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const T </td> <td class="paramname"> <em>mean_y</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const <a class="el" href="classmrpt_1_1math_1_1_c_matrix_template_numeric.html">CMatrixTemplateNumeric</a>< T > & </td> <td class="paramname"> <em>cov22</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const float </td> <td class="paramname"> <em>quantiles</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const std::string & </td> <td class="paramname"> <em>lineFormat</em> = <code>std::string("b-")</code>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const std::string & </td> <td class="paramname"> <em>plotName</em> = <code>std::string("plotEllipse")</code>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">bool </td> <td class="paramname"> <em>showName</em> = <code>false</code> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div> <div class="memdoc"> <p>Plots a 2D ellipse given its mean, covariance matrix, and Each call to this function creates a new plot, unless the plot name coincides with an already existing plot: in this case the new values are used to update this existing layer (this also applies to using the default plot name). </p> <p>If "hold_on" is enabled, then every call will always create a new plot, even if no "plotName" is provided.</p> <p>For a description of lineFormat see <a class="el" href="classmrpt_1_1gui_1_1_c_display_window_plots.html#adafc202997e213b633ad438c3fe0759b" title="Adds a new layer with a 2D plot based on two vectors of X and Y points, using a MATLAB-like syntax...">CDisplayWindowPlots::plot</a>. The "quantiles" value determines the confidence interval for the ellipse:</p> <ul> <li>1 : 68.27% confidence interval</li> <li>2 : 95.45%</li> <li>3 : 99.73%</li> <li>4 : 99.994% <dl class="note"><dt><b>Note:</b></dt><dd>This method can be called with 2x2 fixed-sized or dynamic-size matrices of types: float or double. </dd></dl> <dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classmrpt_1_1gui_1_1_c_display_window_plots.html#a8b063d884b5b140a7fdfaa6b68b323cf" title="Set the view area according to the passed coordinated.">axis</a>, <a class="el" href="classmrpt_1_1gui_1_1_c_display_window_plots.html#a8a022446f3546c0c684c470391d42e58" title="Enable/disable the fixed X/Y aspect ratio fix feature (default=disabled).">axis_equal</a>, <a class="el" href="classmrpt_1_1gui_1_1_c_display_window_plots.html#acfd030aa2c2edfcbe26a53278a6f2761" title="Fix automatically the view area according to existing graphs.">axis_fit</a>, <a class="el" href="classmrpt_1_1gui_1_1_c_display_window_plots.html#a76cfb0629841e38d9a5d74151185d684" title="Enables keeping all the graphs, instead of overwritting them.">hold_on</a>, <a class="el" href="classmrpt_1_1gui_1_1_c_display_window_plots.html#a56a1a2c9db43eaad59fbd9a691321797" title="Disables keeping all the graphs (this is the default behavior).">hold_off</a> </dd></dl> </li> </ul> </div> </div> <a class="anchor" id="ae52ab652258f1cde95ec9c5e6d29d3ef"></a><!-- doxytag: member="mrpt::gui::CDisplayWindowPlots::resize" ref="ae52ab652258f1cde95ec9c5e6d29d3ef" args="(unsigned int width, unsigned int height)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void mrpt::gui::CDisplayWindowPlots::resize </td> <td>(</td> <td class="paramtype">unsigned int </td> <td class="paramname"> <em>width</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">unsigned int </td> <td class="paramname"> <em>height</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td><code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Resizes the window, stretching the image to fit into the display area. </p> <p>Implements <a class="el" href="classmrpt_1_1gui_1_1_c_base_g_u_i_window.html#a86463b010eb453b5fb6b45e024730f78">mrpt::gui::CBaseGUIWindow</a>.</p> </div> </div> <a class="anchor" id="a22e02fed4426009e386ba7dd2bb3442e"></a><!-- doxytag: member="mrpt::gui::CDisplayWindowPlots::setCursorCross" ref="a22e02fed4426009e386ba7dd2bb3442e" args="(bool cursorIsCross)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual void mrpt::gui::CDisplayWindowPlots::setCursorCross </td> <td>(</td> <td class="paramtype">bool </td> <td class="paramname"> <em>cursorIsCross</em> )</td> <td><code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Set cursor style to default (cursorIsCross=false) or to a cross (cursorIsCross=true) </p> <p>Implements <a class="el" href="classmrpt_1_1gui_1_1_c_base_g_u_i_window.html#a7d9bba776ec29d60fa7f7ecdedfcd7d3">mrpt::gui::CBaseGUIWindow</a>.</p> </div> </div> <a class="anchor" id="a4cf001c64566d783754f0c9a99862bda"></a><!-- doxytag: member="mrpt::gui::CDisplayWindowPlots::setMenuCallback" ref="a4cf001c64566d783754f0c9a99862bda" args="(TCallbackMenu userFunction, void *userParam=NULL)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void mrpt::gui::CDisplayWindowPlots::setMenuCallback </td> <td>(</td> <td class="paramtype"><a class="el" href="classmrpt_1_1gui_1_1_c_display_window_plots.html#aeaaffdec8db5e63f4648fb6e5a8a6808">TCallbackMenu</a> </td> <td class="paramname"> <em>userFunction</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">void * </td> <td class="paramname"> <em>userParam</em> = <code>NULL</code> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div> <div class="memdoc"> <p>Must be called to have a callback when the user selects one of the user-defined entries in the popup menu. </p> <dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classmrpt_1_1gui_1_1_c_display_window_plots.html#aa4282d3130ab8541b553542b0a0714cf" title="Disables keeping all the graphs (this is the default behavior).">addPopupMenuEntry</a> </dd></dl> </div> </div> <a class="anchor" id="a937cc92f848dcbe481ba20666ee5ebab"></a><!-- doxytag: member="mrpt::gui::CDisplayWindowPlots::setPos" ref="a937cc92f848dcbe481ba20666ee5ebab" args="(int x, int y)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void mrpt::gui::CDisplayWindowPlots::setPos </td> <td>(</td> <td class="paramtype">int </td> <td class="paramname"> <em>x</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"> <em>y</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td><code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Changes the position of the window on the screen. </p> <p>Implements <a class="el" href="classmrpt_1_1gui_1_1_c_base_g_u_i_window.html#a07ed0ab1228962705ac077f8d788e47e">mrpt::gui::CBaseGUIWindow</a>.</p> </div> </div> <a class="anchor" id="a6c13dd4168d5d31e79bf72ac2c69212a"></a><!-- doxytag: member="mrpt::gui::CDisplayWindowPlots::setWindowTitle" ref="a6c13dd4168d5d31e79bf72ac2c69212a" args="(const std::string &str)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void mrpt::gui::CDisplayWindowPlots::setWindowTitle </td> <td>(</td> <td class="paramtype">const std::string & </td> <td class="paramname"> <em>str</em> )</td> <td><code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Changes the window title text. </p> <p>Implements <a class="el" href="classmrpt_1_1gui_1_1_c_base_g_u_i_window.html#af877c8001eef3292f9affc04ca4aa137">mrpt::gui::CBaseGUIWindow</a>.</p> </div> </div> <hr/><h2>Friends And Related Function Documentation</h2> <a class="anchor" id="a0eab80c3eb0251b2f663e3d0e010573e"></a><!-- doxytag: member="mrpt::gui::CDisplayWindowPlots::CWindowDialogPlots" ref="a0eab80c3eb0251b2f663e3d0e010573e" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">friend class CWindowDialogPlots<code> [friend]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Reimplemented from <a class="el" href="classmrpt_1_1gui_1_1_c_base_g_u_i_window.html#a0eab80c3eb0251b2f663e3d0e010573e">mrpt::gui::CBaseGUIWindow</a>.</p> <p>Definition at line <a class="el" href="_c_display_window_plots_8h_source.html#l00065">65</a> of file <a class="el" href="_c_display_window_plots_8h_source.html">CDisplayWindowPlots.h</a>.</p> </div> </div> <hr/><h2>Member Data Documentation</h2> <a class="anchor" id="a6a33eed16fa851d4fd93c0e89df0850b"></a><!-- doxytag: member="mrpt::gui::CDisplayWindowPlots::_init_CDisplayWindowPlots" ref="a6a33eed16fa851d4fd93c0e89df0850b" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="structmrpt_1_1utils_1_1_c_l_a_s_s_i_n_i_t.html">mrpt::utils::CLASSINIT</a> <a class="el" href="classmrpt_1_1gui_1_1_c_display_window_plots.html#a6a33eed16fa851d4fd93c0e89df0850b">mrpt::gui::CDisplayWindowPlots::_init_CDisplayWindowPlots</a><code> [static, protected]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Definition at line <a class="el" href="_c_display_window_plots_8h_source.html#l00059">59</a> of file <a class="el" href="_c_display_window_plots_8h_source.html">CDisplayWindowPlots.h</a>.</p> </div> </div> <a class="anchor" id="ad8fa14a50c29fddc54baaceb308b5f3a"></a><!-- doxytag: member="mrpt::gui::CDisplayWindowPlots::classCDisplayWindowPlots" ref="ad8fa14a50c29fddc54baaceb308b5f3a" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="structmrpt_1_1utils_1_1_t_runtime_class_id.html">mrpt::utils::TRuntimeClassId</a> <a class="el" href="classmrpt_1_1gui_1_1_c_display_window_plots.html#ad8fa14a50c29fddc54baaceb308b5f3a">mrpt::gui::CDisplayWindowPlots::classCDisplayWindowPlots</a><code> [static]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Definition at line <a class="el" href="_c_display_window_plots_8h_source.html#l00059">59</a> of file <a class="el" href="_c_display_window_plots_8h_source.html">CDisplayWindowPlots.h</a>.</p> </div> </div> <a class="anchor" id="ab609297009eef1d23ffbba053c217d3a"></a><!-- doxytag: member="mrpt::gui::CDisplayWindowPlots::classinfo" ref="ab609297009eef1d23ffbba053c217d3a" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">const <a class="el" href="structmrpt_1_1utils_1_1_t_runtime_class_id.html">mrpt::utils::TRuntimeClassId</a>* <a class="el" href="classmrpt_1_1gui_1_1_c_display_window_plots.html#ab609297009eef1d23ffbba053c217d3a">mrpt::gui::CDisplayWindowPlots::classinfo</a><code> [static]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Definition at line <a class="el" href="_c_display_window_plots_8h_source.html#l00059">59</a> of file <a class="el" href="_c_display_window_plots_8h_source.html">CDisplayWindowPlots.h</a>.</p> </div> </div> <a class="anchor" id="a3587ab60849d518508112ac9e8c0918e"></a><!-- doxytag: member="mrpt::gui::CDisplayWindowPlots::m_callback" ref="a3587ab60849d518508112ac9e8c0918e" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classmrpt_1_1gui_1_1_c_display_window_plots.html#aeaaffdec8db5e63f4648fb6e5a8a6808">TCallbackMenu</a> <a class="el" href="classmrpt_1_1gui_1_1_c_display_window_plots.html#a3587ab60849d518508112ac9e8c0918e">mrpt::gui::CDisplayWindowPlots::m_callback</a><code> [protected]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Definition at line <a class="el" href="_c_display_window_plots_8h_source.html#l00070">70</a> of file <a class="el" href="_c_display_window_plots_8h_source.html">CDisplayWindowPlots.h</a>.</p> </div> </div> <a class="anchor" id="a05bdca4f1f0bab30c569d37e6926b1f4"></a><!-- doxytag: member="mrpt::gui::CDisplayWindowPlots::m_callback_param" ref="a05bdca4f1f0bab30c569d37e6926b1f4" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void* <a class="el" href="classmrpt_1_1gui_1_1_c_display_window_plots.html#a05bdca4f1f0bab30c569d37e6926b1f4">mrpt::gui::CDisplayWindowPlots::m_callback_param</a><code> [protected]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Definition at line <a class="el" href="_c_display_window_plots_8h_source.html#l00071">71</a> of file <a class="el" href="_c_display_window_plots_8h_source.html">CDisplayWindowPlots.h</a>.</p> </div> </div> <a class="anchor" id="a3b19a27553d9993e0973629c73cb6151"></a><!-- doxytag: member="mrpt::gui::CDisplayWindowPlots::m_holdon" ref="a3b19a27553d9993e0973629c73cb6151" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">bool <a class="el" href="classmrpt_1_1gui_1_1_c_display_window_plots.html#a3b19a27553d9993e0973629c73cb6151">mrpt::gui::CDisplayWindowPlots::m_holdon</a><code> [protected]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Whether hold_on is enabled. </p> <p>Definition at line <a class="el" href="_c_display_window_plots_8h_source.html#l00067">67</a> of file <a class="el" href="_c_display_window_plots_8h_source.html">CDisplayWindowPlots.h</a>.</p> </div> </div> <a class="anchor" id="abd2e33dc798b3f3db307bbfd2d0d824e"></a><!-- doxytag: member="mrpt::gui::CDisplayWindowPlots::m_holdon_cnt" ref="abd2e33dc798b3f3db307bbfd2d0d824e" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">uint32_t <a class="el" href="classmrpt_1_1gui_1_1_c_display_window_plots.html#abd2e33dc798b3f3db307bbfd2d0d824e">mrpt::gui::CDisplayWindowPlots::m_holdon_cnt</a><code> [protected]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Counter for hold_on. </p> <p>Definition at line <a class="el" href="_c_display_window_plots_8h_source.html#l00069">69</a> of file <a class="el" href="_c_display_window_plots_8h_source.html">CDisplayWindowPlots.h</a>.</p> </div> </div> <a class="anchor" id="a1c5c678330a336bdc0e7537ff9b1cace"></a><!-- doxytag: member="mrpt::gui::CDisplayWindowPlots::m_holdon_just_disabled" ref="a1c5c678330a336bdc0e7537ff9b1cace" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">bool <a class="el" href="classmrpt_1_1gui_1_1_c_display_window_plots.html#a1c5c678330a336bdc0e7537ff9b1cace">mrpt::gui::CDisplayWindowPlots::m_holdon_just_disabled</a><code> [protected]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Definition at line <a class="el" href="_c_display_window_plots_8h_source.html#l00068">68</a> of file <a class="el" href="_c_display_window_plots_8h_source.html">CDisplayWindowPlots.h</a>.</p> </div> </div> </div> <br><hr><br> <table border="0" width="100%"> <tr> <td> Page generated by <a href="http://www.doxygen.org" target="_blank">Doxygen 1.7.2</a> for MRPT 0.9.4 SVN: at Mon Jan 10 22:30:30 UTC 2011</td><td></td> <td width="100"> </td> <td width="150"> </td></tr> </table> </body></html>