source: flair-dev/trunk/doc/Flair/classflair_1_1gui_1_1_data_plot1_d.html @ 15

Last change on this file since 15 was 15, checked in by Sanahuja Guillaume, 5 years ago

m

File size: 16.6 KB
Line 
1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2<html xmlns="http://www.w3.org/1999/xhtml">
3<head>
4<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
5<meta http-equiv="X-UA-Compatible" content="IE=9"/>
6<meta name="generator" content="Doxygen 1.8.7"/>
7<title>Flair: flair::gui::DataPlot1D Class Reference</title>
8<link href="tabs.css" rel="stylesheet" type="text/css"/>
9<script type="text/javascript" src="jquery.js"></script>
10<script type="text/javascript" src="dynsections.js"></script>
11<link href="navtree.css" rel="stylesheet" type="text/css"/>
12<script type="text/javascript" src="resize.js"></script>
13<script type="text/javascript" src="navtree.js"></script>
14<script type="text/javascript">
15  $(document).ready(initResizable);
16  $(window).load(resizeHeight);
17</script>
18<link href="search/search.css" rel="stylesheet" type="text/css"/>
19<script type="text/javascript" src="search/search.js"></script>
20<script type="text/javascript">
21  $(document).ready(function() { searchBox.OnSelectItem(0); });
22</script>
23<link href="doxygen.css" rel="stylesheet" type="text/css" />
24</head>
25<body>
26<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
27<div id="titlearea">
28<table cellspacing="0" cellpadding="0">
29 <tbody>
30 <tr style="height: 56px;">
31  <td id="projectlogo"><img alt="Logo" src="logo_hds.png"/></td>
32  <td style="padding-left: 0.5em;">
33   <div id="projectname">Flair
34   </div>
35   <div id="projectbrief">Framework Libre Air</div>
36  </td>
37 </tr>
38 </tbody>
39</table>
40</div>
41<!-- end header part -->
42<!-- Generated by Doxygen 1.8.7 -->
43<script type="text/javascript">
44var searchBox = new SearchBox("searchBox", "search",false,'Search');
45</script>
46  <div id="navrow1" class="tabs">
47    <ul class="tablist">
48      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
49      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
50      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
51      <li><a href="files.html"><span>Files</span></a></li>
52      <li>
53        <div id="MSearchBox" class="MSearchBoxInactive">
54        <span class="left">
55          <img id="MSearchSelect" src="search/mag_sel.png"
56               onmouseover="return searchBox.OnSearchSelectShow()"
57               onmouseout="return searchBox.OnSearchSelectHide()"
58               alt=""/>
59          <input type="text" id="MSearchField" value="Search" accesskey="S"
60               onfocus="searchBox.OnSearchFieldFocus(true)" 
61               onblur="searchBox.OnSearchFieldFocus(false)" 
62               onkeyup="searchBox.OnSearchFieldChange(event)"/>
63          </span><span class="right">
64            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
65          </span>
66        </div>
67      </li>
68    </ul>
69  </div>
70  <div id="navrow2" class="tabs2">
71    <ul class="tablist">
72      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
73      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
74      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
75      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
76    </ul>
77  </div>
78</div><!-- top -->
79<div id="side-nav" class="ui-resizable side-nav-resizable">
80  <div id="nav-tree">
81    <div id="nav-tree-contents">
82      <div id="nav-sync" class="sync"></div>
83    </div>
84  </div>
85  <div id="splitbar" style="-moz-user-select:none;" 
86       class="ui-resizable-handle">
87  </div>
88</div>
89<script type="text/javascript">
90$(document).ready(function(){initNavTree('classflair_1_1gui_1_1_data_plot1_d.html','');});
91</script>
92<div id="doc-content">
93<!-- window showing the filter options -->
94<div id="MSearchSelectWindow"
95     onmouseover="return searchBox.OnSearchSelectShow()"
96     onmouseout="return searchBox.OnSearchSelectHide()"
97     onkeydown="return searchBox.OnSearchSelectKey(event)">
98<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Properties</a></div>
99
100<!-- iframe showing the search results (closed by default) -->
101<div id="MSearchResultsWindow">
102<iframe src="javascript:void(0)" frameborder="0" 
103        name="MSearchResults" id="MSearchResults">
104</iframe>
105</div>
106
107<div class="header">
108  <div class="summary">
109<a href="#pub-methods">Public Member Functions</a> &#124;
110<a href="classflair_1_1gui_1_1_data_plot1_d-members.html">List of all members</a>  </div>
111  <div class="headertitle">
112<div class="title">flair::gui::DataPlot1D Class Reference</div>  </div>
113</div><!--header-->
114<div class="contents">
115
116<p>Class displaying a 1D plot on the ground station. 
117 <a href="classflair_1_1gui_1_1_data_plot1_d.html#details">More...</a></p>
118
119<p><code>#include &lt;<a class="el" href="_data_plot1_d_8h_source.html">DataPlot1D.h</a>&gt;</code></p>
120<div id="dynsection-0" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
121  <img id="dynsection-0-trigger" src="closed.png" alt="+"/> Inheritance diagram for flair::gui::DataPlot1D:</div>
122<div id="dynsection-0-summary" class="dynsummary" style="display:block;">
123</div>
124<div id="dynsection-0-content" class="dyncontent" style="display:none;">
125 <div class="center">
126  <img src="classflair_1_1gui_1_1_data_plot1_d.png" usemap="#flair::gui::DataPlot1D_map" alt=""/>
127  <map id="flair::gui::DataPlot1D_map" name="flair::gui::DataPlot1D_map">
128<area href="classflair_1_1gui_1_1_data_plot.html" title="Abstract class to display plots on ground station. " alt="flair::gui::DataPlot" shape="rect" coords="0,0,126,24"/>
129</map>
130 </div></div>
131<table class="memberdecls">
132<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
133Public Member Functions</h2></td></tr>
134<tr class="memitem:a75fdd0a5c2506ab59de05a7a7de1b10d"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classflair_1_1gui_1_1_data_plot1_d.html#a75fdd0a5c2506ab59de05a7a7de1b10d">DataPlot1D</a> (const <a class="el" href="classflair_1_1gui_1_1_layout_position.html">LayoutPosition</a> *position, std::string name, float ymin, float ymax)</td></tr>
135<tr class="memdesc:a75fdd0a5c2506ab59de05a7a7de1b10d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructor.  <a href="#a75fdd0a5c2506ab59de05a7a7de1b10d">More...</a><br /></td></tr>
136<tr class="separator:a75fdd0a5c2506ab59de05a7a7de1b10d"><td class="memSeparator" colspan="2">&#160;</td></tr>
137<tr class="memitem:a418a2533a0ebb0bdd09c3f6a731d121d"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classflair_1_1gui_1_1_data_plot1_d.html#a418a2533a0ebb0bdd09c3f6a731d121d">~DataPlot1D</a> ()</td></tr>
138<tr class="memdesc:a418a2533a0ebb0bdd09c3f6a731d121d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Destructor.  <a href="#a418a2533a0ebb0bdd09c3f6a731d121d">More...</a><br /></td></tr>
139<tr class="separator:a418a2533a0ebb0bdd09c3f6a731d121d"><td class="memSeparator" colspan="2">&#160;</td></tr>
140<tr class="memitem:ab0837bfa0a3423c8ef25bf6cf1c2ba76"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classflair_1_1gui_1_1_data_plot1_d.html#ab0837bfa0a3423c8ef25bf6cf1c2ba76">AddCurve</a> (const <a class="el" href="classflair_1_1core_1_1_i_o_data_element.html">core::IODataElement</a> *element, <a class="el" href="classflair_1_1gui_1_1_data_plot.html#a0e106271554ff92ebeb94d22014f037e">Color_t</a> color, std::string curve_name=&quot;&quot;)</td></tr>
141<tr class="memdesc:ab0837bfa0a3423c8ef25bf6cf1c2ba76"><td class="mdescLeft">&#160;</td><td class="mdescRight">Add a curve from an IODataElement to the plot.  <a href="#ab0837bfa0a3423c8ef25bf6cf1c2ba76">More...</a><br /></td></tr>
142<tr class="separator:ab0837bfa0a3423c8ef25bf6cf1c2ba76"><td class="memSeparator" colspan="2">&#160;</td></tr>
143<tr class="memitem:ae3a47f720e4922ee6dd82a57279a3469"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classflair_1_1gui_1_1_data_plot1_d.html#ae3a47f720e4922ee6dd82a57279a3469">AddCurve</a> (const <a class="el" href="classflair_1_1core_1_1_i_o_data_element.html">core::IODataElement</a> *element, uint8_t r=255, uint8_t g=0, uint8_t b=0, std::string curve_name=&quot;&quot;)</td></tr>
144<tr class="memdesc:ae3a47f720e4922ee6dd82a57279a3469"><td class="mdescLeft">&#160;</td><td class="mdescRight">Add a curve from an IODataElement to the plot.  <a href="#ae3a47f720e4922ee6dd82a57279a3469">More...</a><br /></td></tr>
145<tr class="separator:ae3a47f720e4922ee6dd82a57279a3469"><td class="memSeparator" colspan="2">&#160;</td></tr>
146</table>
147<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
148<div class="textblock"><p>Class displaying a 1D plot on the ground station. </p>
149</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
150<a class="anchor" id="a75fdd0a5c2506ab59de05a7a7de1b10d"></a>
151<div class="memitem">
152<div class="memproto">
153      <table class="memname">
154        <tr>
155          <td class="memname">flair::gui::DataPlot1D::DataPlot1D </td>
156          <td>(</td>
157          <td class="paramtype">const <a class="el" href="classflair_1_1gui_1_1_layout_position.html">LayoutPosition</a> *&#160;</td>
158          <td class="paramname"><em>position</em>, </td>
159        </tr>
160        <tr>
161          <td class="paramkey"></td>
162          <td></td>
163          <td class="paramtype">std::string&#160;</td>
164          <td class="paramname"><em>name</em>, </td>
165        </tr>
166        <tr>
167          <td class="paramkey"></td>
168          <td></td>
169          <td class="paramtype">float&#160;</td>
170          <td class="paramname"><em>ymin</em>, </td>
171        </tr>
172        <tr>
173          <td class="paramkey"></td>
174          <td></td>
175          <td class="paramtype">float&#160;</td>
176          <td class="paramname"><em>ymax</em>&#160;</td>
177        </tr>
178        <tr>
179          <td></td>
180          <td>)</td>
181          <td></td><td></td>
182        </tr>
183      </table>
184</div><div class="memdoc">
185
186<p>Constructor. </p>
187<p>Construct a 1D plot at given position.</p>
188<dl class="params"><dt>Parameters</dt><dd>
189  <table class="params">
190    <tr><td class="paramname">position</td><td>position to display the plot </td></tr>
191    <tr><td class="paramname">name</td><td>name </td></tr>
192    <tr><td class="paramname">ymin</td><td>default ymin of the plot </td></tr>
193    <tr><td class="paramname">ymax</td><td>default ymax of the plot </td></tr>
194  </table>
195  </dd>
196</dl>
197
198</div>
199</div>
200<a class="anchor" id="a418a2533a0ebb0bdd09c3f6a731d121d"></a>
201<div class="memitem">
202<div class="memproto">
203      <table class="memname">
204        <tr>
205          <td class="memname">flair::gui::DataPlot1D::~DataPlot1D </td>
206          <td>(</td>
207          <td class="paramname"></td><td>)</td>
208          <td></td>
209        </tr>
210      </table>
211</div><div class="memdoc">
212
213<p>Destructor. </p>
214
215</div>
216</div>
217<h2 class="groupheader">Member Function Documentation</h2>
218<a class="anchor" id="ab0837bfa0a3423c8ef25bf6cf1c2ba76"></a>
219<div class="memitem">
220<div class="memproto">
221      <table class="memname">
222        <tr>
223          <td class="memname">void flair::gui::DataPlot1D::AddCurve </td>
224          <td>(</td>
225          <td class="paramtype">const <a class="el" href="classflair_1_1core_1_1_i_o_data_element.html">core::IODataElement</a> *&#160;</td>
226          <td class="paramname"><em>element</em>, </td>
227        </tr>
228        <tr>
229          <td class="paramkey"></td>
230          <td></td>
231          <td class="paramtype"><a class="el" href="classflair_1_1gui_1_1_data_plot.html#a0e106271554ff92ebeb94d22014f037e">Color_t</a>&#160;</td>
232          <td class="paramname"><em>color</em>, </td>
233        </tr>
234        <tr>
235          <td class="paramkey"></td>
236          <td></td>
237          <td class="paramtype">std::string&#160;</td>
238          <td class="paramname"><em>curve_name</em> = <code>&quot;&quot;</code>&#160;</td>
239        </tr>
240        <tr>
241          <td></td>
242          <td>)</td>
243          <td></td><td></td>
244        </tr>
245      </table>
246</div><div class="memdoc">
247
248<p>Add a curve from an IODataElement to the plot. </p>
249<p>Curve's color can be selected by its name.</p>
250<dl class="params"><dt>Parameters</dt><dd>
251  <table class="params">
252    <tr><td class="paramname">element</td><td>element to plot </td></tr>
253    <tr><td class="paramname">color</td><td>color of the curve </td></tr>
254    <tr><td class="paramname">curve_name</td><td>name of the curve for the legend, if unspecified, element-&gt;<a class="el" href="classflair_1_1core_1_1_object.html#a9b0344dff7e1c05424d9152c8274523a" title="Name. ">ObjectName()</a> will be used </td></tr>
255  </table>
256  </dd>
257</dl>
258
259</div>
260</div>
261<a class="anchor" id="ae3a47f720e4922ee6dd82a57279a3469"></a>
262<div class="memitem">
263<div class="memproto">
264      <table class="memname">
265        <tr>
266          <td class="memname">void flair::gui::DataPlot1D::AddCurve </td>
267          <td>(</td>
268          <td class="paramtype">const <a class="el" href="classflair_1_1core_1_1_i_o_data_element.html">core::IODataElement</a> *&#160;</td>
269          <td class="paramname"><em>element</em>, </td>
270        </tr>
271        <tr>
272          <td class="paramkey"></td>
273          <td></td>
274          <td class="paramtype">uint8_t&#160;</td>
275          <td class="paramname"><em>r</em> = <code>255</code>, </td>
276        </tr>
277        <tr>
278          <td class="paramkey"></td>
279          <td></td>
280          <td class="paramtype">uint8_t&#160;</td>
281          <td class="paramname"><em>g</em> = <code>0</code>, </td>
282        </tr>
283        <tr>
284          <td class="paramkey"></td>
285          <td></td>
286          <td class="paramtype">uint8_t&#160;</td>
287          <td class="paramname"><em>b</em> = <code>0</code>, </td>
288        </tr>
289        <tr>
290          <td class="paramkey"></td>
291          <td></td>
292          <td class="paramtype">std::string&#160;</td>
293          <td class="paramname"><em>curve_name</em> = <code>&quot;&quot;</code>&#160;</td>
294        </tr>
295        <tr>
296          <td></td>
297          <td>)</td>
298          <td></td><td></td>
299        </tr>
300      </table>
301</div><div class="memdoc">
302
303<p>Add a curve from an IODataElement to the plot. </p>
304<p>Curve's color can be selected by its RGB components.</p>
305<dl class="params"><dt>Parameters</dt><dd>
306  <table class="params">
307    <tr><td class="paramname">element</td><td>element to plot </td></tr>
308    <tr><td class="paramname">r</td><td>red component of the curve </td></tr>
309    <tr><td class="paramname">g</td><td>green component of the curve </td></tr>
310    <tr><td class="paramname">b</td><td>blue component of the curve </td></tr>
311    <tr><td class="paramname">curve_name</td><td>name of the curve for the legend, if unspecified, element-&gt;<a class="el" href="classflair_1_1core_1_1_object.html#a9b0344dff7e1c05424d9152c8274523a" title="Name. ">ObjectName()</a> will be used </td></tr>
312  </table>
313  </dd>
314</dl>
315
316</div>
317</div>
318</div><!-- contents -->
319</div><!-- doc-content -->
320<!-- start footer part -->
321<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
322  <ul>
323    <li class="navelem"><a class="el" href="namespaceflair.html">flair</a></li><li class="navelem"><a class="el" href="namespaceflair_1_1gui.html">gui</a></li><li class="navelem"><a class="el" href="classflair_1_1gui_1_1_data_plot1_d.html">DataPlot1D</a></li>
324    <li class="footer">Generated on Wed Apr 20 2016 16:16:01 for Flair by
325    <a href="http://www.doxygen.org/index.html">
326    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.7 </li>
327  </ul>
328</div>
329</body>
330</html>
Note: See TracBrowser for help on using the repository browser.