source: sasview/sansguiframe/docs/sphinx/html/api/local_perspectives/plotting/SectorSlicer.html @ 67cd7c0

ESS_GUIESS_GUI_DocsESS_GUI_batch_fittingESS_GUI_bumps_abstractionESS_GUI_iss1116ESS_GUI_iss879ESS_GUI_iss959ESS_GUI_openclESS_GUI_orderingESS_GUI_sync_sascalccostrafo411magnetic_scattrelease-4.1.1release-4.1.2release-4.2.2release_4.0.1ticket-1009ticket-1094-headlessticket-1242-2d-resolutionticket-1243ticket-1249ticket885unittest-saveload
Last change on this file since 67cd7c0 was bce8148, checked in by Gervaise Alina <gervyh@…>, 13 years ago

sphinx build

  • Property mode set to 100644
File size: 37.5 KB
Line 
1
2
3<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
6
7<html xmlns="http://www.w3.org/1999/xhtml">
8  <head>
9    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
10   
11    <title>SectorSlicer &mdash; guiframe 0.1.0 documentation</title>
12   
13    <link rel="stylesheet" href="../../../_static/default.css" type="text/css" />
14    <link rel="stylesheet" href="../../../_static/pygments.css" type="text/css" />
15   
16    <script type="text/javascript">
17      var DOCUMENTATION_OPTIONS = {
18        URL_ROOT:    '../../../',
19        VERSION:     '0.1.0',
20        COLLAPSE_INDEX: false,
21        FILE_SUFFIX: '.html',
22        HAS_SOURCE:  true
23      };
24    </script>
25    <script type="text/javascript" src="../../../_static/jquery.js"></script>
26    <script type="text/javascript" src="../../../_static/underscore.js"></script>
27    <script type="text/javascript" src="../../../_static/doctools.js"></script>
28    <link rel="top" title="guiframe 0.1.0 documentation" href="../../../index.html" />
29    <link rel="up" title="Local Perspective: plotting" href="index.html" />
30    <link rel="next" title="slicerpanel" href="slicerpanel.html" />
31    <link rel="prev" title="sectorMask" href="sectorMask.html" /> 
32  </head>
33  <body>
34    <div class="related">
35      <h3>Navigation</h3>
36      <ul>
37        <li class="right" style="margin-right: 10px">
38          <a href="../../../genindex.html" title="General Index"
39             accesskey="I">index</a></li>
40        <li class="right" >
41          <a href="../../../py-modindex.html" title="Python Module Index"
42             >modules</a> |</li>
43        <li class="right" >
44          <a href="slicerpanel.html" title="slicerpanel"
45             accesskey="N">next</a> |</li>
46        <li class="right" >
47          <a href="sectorMask.html" title="sectorMask"
48             accesskey="P">previous</a> |</li>
49        <li><a href="../../../index.html">guiframe 0.1.0 documentation</a> &raquo;</li>
50          <li><a href="index.html" accesskey="U">Local Perspective: plotting</a> &raquo;</li> 
51      </ul>
52    </div> 
53
54    <div class="document">
55      <div class="documentwrapper">
56        <div class="bodywrapper">
57          <div class="body">
58           
59  <div class="section" id="sectorslicer">
60<h1>SectorSlicer<a class="headerlink" href="#sectorslicer" title="Permalink to this headline">¶</a></h1>
61<div class="section" id="sans-guiframe-local-perspectives-plotting-sectorslicer">
62<h2><a class="reference internal" href="#module-sans.guiframe.local_perspectives.plotting.SectorSlicer" title="sans.guiframe.local_perspectives.plotting.SectorSlicer"><tt class="xref py py-mod docutils literal"><span class="pre">sans.guiframe.local_perspectives.plotting.SectorSlicer</span></tt></a><a class="headerlink" href="#sans-guiframe-local-perspectives-plotting-sectorslicer" title="Permalink to this headline">¶</a></h2>
63<span class="target" id="module-sans.guiframe.local_perspectives.plotting.SectorSlicer"></span><dl class="class">
64<dt id="sans.guiframe.local_perspectives.plotting.SectorSlicer.LineInteractor">
65<em class="property">class </em><tt class="descclassname">sans.guiframe.local_perspectives.plotting.SectorSlicer.</tt><tt class="descname">LineInteractor</tt><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.SectorSlicer.LineInteractor" title="Permalink to this definition">¶</a></dt>
66<dd><p>Bases: <a class="reference internal" href="BaseInteractor.html#sans.guiframe.local_perspectives.plotting.BaseInteractor._BaseInteractor" title="sans.guiframe.local_perspectives.plotting.BaseInteractor._BaseInteractor"><tt class="xref py py-class docutils literal"><span class="pre">sans.guiframe.local_perspectives.plotting.BaseInteractor._BaseInteractor</span></tt></a></p>
67<p>Select an annulus through a 2D plot</p>
68<dl class="method">
69<dt id="sans.guiframe.local_perspectives.plotting.SectorSlicer.LineInteractor.__init__">
70<tt class="descname">__init__</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.SectorSlicer.LineInteractor.__init__" title="Permalink to this definition">¶</a></dt>
71<dd></dd></dl>
72
73<dl class="attribute">
74<dt id="sans.guiframe.local_perspectives.plotting.SectorSlicer.LineInteractor.__module__">
75<tt class="descname">__module__</tt><em class="property"> = 'sans.guiframe.local_perspectives.plotting.SectorSlicer'</em><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.SectorSlicer.LineInteractor.__module__" title="Permalink to this definition">¶</a></dt>
76<dd></dd></dl>
77
78<dl class="method">
79<dt id="sans.guiframe.local_perspectives.plotting.SectorSlicer.LineInteractor.clear">
80<tt class="descname">clear</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.SectorSlicer.LineInteractor.clear" title="Permalink to this definition">¶</a></dt>
81<dd></dd></dl>
82
83<dl class="method">
84<dt id="sans.guiframe.local_perspectives.plotting.SectorSlicer.LineInteractor.clear_markers">
85<tt class="descname">clear_markers</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.SectorSlicer.LineInteractor.clear_markers" title="Permalink to this definition">¶</a></dt>
86<dd><p>Clear old markers and interfaces.</p>
87</dd></dl>
88
89<dl class="method">
90<dt id="sans.guiframe.local_perspectives.plotting.SectorSlicer.LineInteractor.connect_markers">
91<tt class="descname">connect_markers</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.SectorSlicer.LineInteractor.connect_markers" title="Permalink to this definition">¶</a></dt>
92<dd><p>Connect markers to callbacks</p>
93</dd></dl>
94
95<dl class="method">
96<dt id="sans.guiframe.local_perspectives.plotting.SectorSlicer.LineInteractor.dpixel">
97<tt class="descname">dpixel</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.SectorSlicer.LineInteractor.dpixel" title="Permalink to this definition">¶</a></dt>
98<dd><p>Return the step size in data coordinates for a small
99step in screen coordinates.  If nudge is False (default)
100the step size is one pixel.  If nudge is True, the step
101size is 0.2 pixels.</p>
102</dd></dl>
103
104<dl class="method">
105<dt id="sans.guiframe.local_perspectives.plotting.SectorSlicer.LineInteractor.get_params">
106<tt class="descname">get_params</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.SectorSlicer.LineInteractor.get_params" title="Permalink to this definition">¶</a></dt>
107<dd></dd></dl>
108
109<dl class="method">
110<dt id="sans.guiframe.local_perspectives.plotting.SectorSlicer.LineInteractor.move">
111<tt class="descname">move</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.SectorSlicer.LineInteractor.move" title="Permalink to this definition">¶</a></dt>
112<dd><p>Process move to a new position, making sure that the move is allowed.</p>
113</dd></dl>
114
115<dl class="method">
116<dt id="sans.guiframe.local_perspectives.plotting.SectorSlicer.LineInteractor.moveend">
117<tt class="descname">moveend</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.SectorSlicer.LineInteractor.moveend" title="Permalink to this definition">¶</a></dt>
118<dd></dd></dl>
119
120<dl class="method">
121<dt id="sans.guiframe.local_perspectives.plotting.SectorSlicer.LineInteractor.onClick">
122<tt class="descname">onClick</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.SectorSlicer.LineInteractor.onClick" title="Permalink to this definition">¶</a></dt>
123<dd><p>Prepare to move the artist.  Calls save() to preserve the state for
124later restore().</p>
125</dd></dl>
126
127<dl class="method">
128<dt id="sans.guiframe.local_perspectives.plotting.SectorSlicer.LineInteractor.onDrag">
129<tt class="descname">onDrag</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.SectorSlicer.LineInteractor.onDrag" title="Permalink to this definition">¶</a></dt>
130<dd><p>Move the artist.  Calls move() to update the state, or restore() if
131the mouse leaves the window.</p>
132</dd></dl>
133
134<dl class="method">
135<dt id="sans.guiframe.local_perspectives.plotting.SectorSlicer.LineInteractor.onHilite">
136<tt class="descname">onHilite</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.SectorSlicer.LineInteractor.onHilite" title="Permalink to this definition">¶</a></dt>
137<dd><p>Hilite the artist reporting the event, indicating that it is
138ready to receive a click.</p>
139</dd></dl>
140
141<dl class="method">
142<dt id="sans.guiframe.local_perspectives.plotting.SectorSlicer.LineInteractor.onKey">
143<tt class="descname">onKey</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.SectorSlicer.LineInteractor.onKey" title="Permalink to this definition">¶</a></dt>
144<dd><p>Respond to keyboard events.  Arrow keys move the widget.  Escape
145restores it to the position before the last click.</p>
146<p>Calls move() to update the state.  Calls restore() on escape.</p>
147</dd></dl>
148
149<dl class="method">
150<dt id="sans.guiframe.local_perspectives.plotting.SectorSlicer.LineInteractor.onLeave">
151<tt class="descname">onLeave</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.SectorSlicer.LineInteractor.onLeave" title="Permalink to this definition">¶</a></dt>
152<dd><p>Restore the artist to the original colour when the cursor leaves.</p>
153</dd></dl>
154
155<dl class="method">
156<dt id="sans.guiframe.local_perspectives.plotting.SectorSlicer.LineInteractor.onRelease">
157<tt class="descname">onRelease</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.SectorSlicer.LineInteractor.onRelease" title="Permalink to this definition">¶</a></dt>
158<dd></dd></dl>
159
160<dl class="method">
161<dt id="sans.guiframe.local_perspectives.plotting.SectorSlicer.LineInteractor.restore">
162<tt class="descname">restore</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.SectorSlicer.LineInteractor.restore" title="Permalink to this definition">¶</a></dt>
163<dd><p>Restore the roughness for this layer.</p>
164</dd></dl>
165
166<dl class="method">
167<dt id="sans.guiframe.local_perspectives.plotting.SectorSlicer.LineInteractor.save">
168<tt class="descname">save</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.SectorSlicer.LineInteractor.save" title="Permalink to this definition">¶</a></dt>
169<dd><p>Remember the roughness for this layer and the next so that we
170can restore on Esc.</p>
171</dd></dl>
172
173<dl class="method">
174<dt id="sans.guiframe.local_perspectives.plotting.SectorSlicer.LineInteractor.set_cursor">
175<tt class="descname">set_cursor</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.SectorSlicer.LineInteractor.set_cursor" title="Permalink to this definition">¶</a></dt>
176<dd></dd></dl>
177
178<dl class="method">
179<dt id="sans.guiframe.local_perspectives.plotting.SectorSlicer.LineInteractor.set_layer">
180<tt class="descname">set_layer</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.SectorSlicer.LineInteractor.set_layer" title="Permalink to this definition">¶</a></dt>
181<dd></dd></dl>
182
183<dl class="method">
184<dt id="sans.guiframe.local_perspectives.plotting.SectorSlicer.LineInteractor.set_params">
185<tt class="descname">set_params</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.SectorSlicer.LineInteractor.set_params" title="Permalink to this definition">¶</a></dt>
186<dd></dd></dl>
187
188<dl class="method">
189<dt id="sans.guiframe.local_perspectives.plotting.SectorSlicer.LineInteractor.update">
190<tt class="descname">update</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.SectorSlicer.LineInteractor.update" title="Permalink to this definition">¶</a></dt>
191<dd><p>Draw the new roughness on the graph.</p>
192</dd></dl>
193
194</dd></dl>
195
196<dl class="class">
197<dt id="sans.guiframe.local_perspectives.plotting.SectorSlicer.SectorInteractor">
198<em class="property">class </em><tt class="descclassname">sans.guiframe.local_perspectives.plotting.SectorSlicer.</tt><tt class="descname">SectorInteractor</tt><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.SectorSlicer.SectorInteractor" title="Permalink to this definition">¶</a></dt>
199<dd><p>Bases: <a class="reference internal" href="BaseInteractor.html#sans.guiframe.local_perspectives.plotting.BaseInteractor._BaseInteractor" title="sans.guiframe.local_perspectives.plotting.BaseInteractor._BaseInteractor"><tt class="xref py py-class docutils literal"><span class="pre">sans.guiframe.local_perspectives.plotting.BaseInteractor._BaseInteractor</span></tt></a></p>
200<p>Draw a sector slicer.Allow to performQ averaging on data 2D</p>
201<dl class="method">
202<dt id="sans.guiframe.local_perspectives.plotting.SectorSlicer.SectorInteractor.__init__">
203<tt class="descname">__init__</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.SectorSlicer.SectorInteractor.__init__" title="Permalink to this definition">¶</a></dt>
204<dd></dd></dl>
205
206<dl class="attribute">
207<dt id="sans.guiframe.local_perspectives.plotting.SectorSlicer.SectorInteractor.__module__">
208<tt class="descname">__module__</tt><em class="property"> = 'sans.guiframe.local_perspectives.plotting.SectorSlicer'</em><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.SectorSlicer.SectorInteractor.__module__" title="Permalink to this definition">¶</a></dt>
209<dd></dd></dl>
210
211<dl class="method">
212<dt id="sans.guiframe.local_perspectives.plotting.SectorSlicer.SectorInteractor._onEVT_SLICER_PARS">
213<tt class="descname">_onEVT_SLICER_PARS</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.SectorSlicer.SectorInteractor._onEVT_SLICER_PARS" title="Permalink to this definition">¶</a></dt>
214<dd><p>receive an event containing parameters values to reset the slicer</p>
215<table class="docutils field-list" frame="void" rules="none">
216<col class="field-name" />
217<col class="field-body" />
218<tbody valign="top">
219<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>event</strong> &#8211; event of type SlicerParameterEvent with params as</td>
220</tr>
221</tbody>
222</table>
223<p>attribute</p>
224</dd></dl>
225
226<dl class="method">
227<dt id="sans.guiframe.local_perspectives.plotting.SectorSlicer.SectorInteractor._post_data">
228<tt class="descname">_post_data</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.SectorSlicer.SectorInteractor._post_data" title="Permalink to this definition">¶</a></dt>
229<dd><p>compute sector averaging of data2D into data1D</p>
230<table class="docutils field-list" frame="void" rules="none">
231<col class="field-name" />
232<col class="field-body" />
233<tbody valign="top">
234<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>nbins</strong> &#8211; the number of point to plot for the average 1D data</td>
235</tr>
236</tbody>
237</table>
238</dd></dl>
239
240<dl class="method">
241<dt id="sans.guiframe.local_perspectives.plotting.SectorSlicer.SectorInteractor.clear">
242<tt class="descname">clear</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.SectorSlicer.SectorInteractor.clear" title="Permalink to this definition">¶</a></dt>
243<dd><p>Clear the slicer and all connected events related to this slicer</p>
244</dd></dl>
245
246<dl class="method">
247<dt id="sans.guiframe.local_perspectives.plotting.SectorSlicer.SectorInteractor.clear_markers">
248<tt class="descname">clear_markers</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.SectorSlicer.SectorInteractor.clear_markers" title="Permalink to this definition">¶</a></dt>
249<dd><p>Clear old markers and interfaces.</p>
250</dd></dl>
251
252<dl class="method">
253<dt id="sans.guiframe.local_perspectives.plotting.SectorSlicer.SectorInteractor.connect_markers">
254<tt class="descname">connect_markers</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.SectorSlicer.SectorInteractor.connect_markers" title="Permalink to this definition">¶</a></dt>
255<dd><p>Connect markers to callbacks</p>
256</dd></dl>
257
258<dl class="method">
259<dt id="sans.guiframe.local_perspectives.plotting.SectorSlicer.SectorInteractor.dpixel">
260<tt class="descname">dpixel</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.SectorSlicer.SectorInteractor.dpixel" title="Permalink to this definition">¶</a></dt>
261<dd><p>Return the step size in data coordinates for a small
262step in screen coordinates.  If nudge is False (default)
263the step size is one pixel.  If nudge is True, the step
264size is 0.2 pixels.</p>
265</dd></dl>
266
267<dl class="method">
268<dt id="sans.guiframe.local_perspectives.plotting.SectorSlicer.SectorInteractor.draw">
269<tt class="descname">draw</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.SectorSlicer.SectorInteractor.draw" title="Permalink to this definition">¶</a></dt>
270<dd></dd></dl>
271
272<dl class="method">
273<dt id="sans.guiframe.local_perspectives.plotting.SectorSlicer.SectorInteractor.freeze_axes">
274<tt class="descname">freeze_axes</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.SectorSlicer.SectorInteractor.freeze_axes" title="Permalink to this definition">¶</a></dt>
275<dd></dd></dl>
276
277<dl class="method">
278<dt id="sans.guiframe.local_perspectives.plotting.SectorSlicer.SectorInteractor.get_params">
279<tt class="descname">get_params</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.SectorSlicer.SectorInteractor.get_params" title="Permalink to this definition">¶</a></dt>
280<dd><p>Store a copy of values of parameters of the slicer into a dictionary.</p>
281<table class="docutils field-list" frame="void" rules="none">
282<col class="field-name" />
283<col class="field-body" />
284<tbody valign="top">
285<tr class="field-odd field"><th class="field-name">Return params:</th><td class="field-body">the dictionary created</td>
286</tr>
287</tbody>
288</table>
289</dd></dl>
290
291<dl class="method">
292<dt id="sans.guiframe.local_perspectives.plotting.SectorSlicer.SectorInteractor.move">
293<tt class="descname">move</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.SectorSlicer.SectorInteractor.move" title="Permalink to this definition">¶</a></dt>
294<dd><p>Process move to a new position, making sure that the move is allowed.</p>
295</dd></dl>
296
297<dl class="method">
298<dt id="sans.guiframe.local_perspectives.plotting.SectorSlicer.SectorInteractor.moveend">
299<tt class="descname">moveend</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.SectorSlicer.SectorInteractor.moveend" title="Permalink to this definition">¶</a></dt>
300<dd><p>Called a dragging motion ends.Get slicer event</p>
301</dd></dl>
302
303<dl class="method">
304<dt id="sans.guiframe.local_perspectives.plotting.SectorSlicer.SectorInteractor.onClick">
305<tt class="descname">onClick</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.SectorSlicer.SectorInteractor.onClick" title="Permalink to this definition">¶</a></dt>
306<dd><p>Prepare to move the artist.  Calls save() to preserve the state for
307later restore().</p>
308</dd></dl>
309
310<dl class="method">
311<dt id="sans.guiframe.local_perspectives.plotting.SectorSlicer.SectorInteractor.onDrag">
312<tt class="descname">onDrag</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.SectorSlicer.SectorInteractor.onDrag" title="Permalink to this definition">¶</a></dt>
313<dd><p>Move the artist.  Calls move() to update the state, or restore() if
314the mouse leaves the window.</p>
315</dd></dl>
316
317<dl class="method">
318<dt id="sans.guiframe.local_perspectives.plotting.SectorSlicer.SectorInteractor.onHilite">
319<tt class="descname">onHilite</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.SectorSlicer.SectorInteractor.onHilite" title="Permalink to this definition">¶</a></dt>
320<dd><p>Hilite the artist reporting the event, indicating that it is
321ready to receive a click.</p>
322</dd></dl>
323
324<dl class="method">
325<dt id="sans.guiframe.local_perspectives.plotting.SectorSlicer.SectorInteractor.onKey">
326<tt class="descname">onKey</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.SectorSlicer.SectorInteractor.onKey" title="Permalink to this definition">¶</a></dt>
327<dd><p>Respond to keyboard events.  Arrow keys move the widget.  Escape
328restores it to the position before the last click.</p>
329<p>Calls move() to update the state.  Calls restore() on escape.</p>
330</dd></dl>
331
332<dl class="method">
333<dt id="sans.guiframe.local_perspectives.plotting.SectorSlicer.SectorInteractor.onLeave">
334<tt class="descname">onLeave</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.SectorSlicer.SectorInteractor.onLeave" title="Permalink to this definition">¶</a></dt>
335<dd><p>Restore the artist to the original colour when the cursor leaves.</p>
336</dd></dl>
337
338<dl class="method">
339<dt id="sans.guiframe.local_perspectives.plotting.SectorSlicer.SectorInteractor.onRelease">
340<tt class="descname">onRelease</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.SectorSlicer.SectorInteractor.onRelease" title="Permalink to this definition">¶</a></dt>
341<dd></dd></dl>
342
343<dl class="method">
344<dt id="sans.guiframe.local_perspectives.plotting.SectorSlicer.SectorInteractor.restore">
345<tt class="descname">restore</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.SectorSlicer.SectorInteractor.restore" title="Permalink to this definition">¶</a></dt>
346<dd><p>Restore the roughness for this layer.</p>
347</dd></dl>
348
349<dl class="method">
350<dt id="sans.guiframe.local_perspectives.plotting.SectorSlicer.SectorInteractor.save">
351<tt class="descname">save</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.SectorSlicer.SectorInteractor.save" title="Permalink to this definition">¶</a></dt>
352<dd><p>Remember the roughness for this layer and the next so that we
353can restore on Esc.</p>
354</dd></dl>
355
356<dl class="method">
357<dt id="sans.guiframe.local_perspectives.plotting.SectorSlicer.SectorInteractor.set_cursor">
358<tt class="descname">set_cursor</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.SectorSlicer.SectorInteractor.set_cursor" title="Permalink to this definition">¶</a></dt>
359<dd></dd></dl>
360
361<dl class="method">
362<dt id="sans.guiframe.local_perspectives.plotting.SectorSlicer.SectorInteractor.set_layer">
363<tt class="descname">set_layer</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.SectorSlicer.SectorInteractor.set_layer" title="Permalink to this definition">¶</a></dt>
364<dd><p>Allow adding plot to the same panel</p>
365<table class="docutils field-list" frame="void" rules="none">
366<col class="field-name" />
367<col class="field-body" />
368<tbody valign="top">
369<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>n</strong> &#8211; the number of layer</td>
370</tr>
371</tbody>
372</table>
373</dd></dl>
374
375<dl class="method">
376<dt id="sans.guiframe.local_perspectives.plotting.SectorSlicer.SectorInteractor.set_params">
377<tt class="descname">set_params</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.SectorSlicer.SectorInteractor.set_params" title="Permalink to this definition">¶</a></dt>
378<dd><p>Receive a dictionary and reset the slicer with values contained
379in the values of the dictionary.</p>
380<table class="docutils field-list" frame="void" rules="none">
381<col class="field-name" />
382<col class="field-body" />
383<tbody valign="top">
384<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>params</strong> &#8211; a dictionary containing name of slicer parameters and
385values the user assigned to the slicer.</td>
386</tr>
387</tbody>
388</table>
389</dd></dl>
390
391<dl class="method">
392<dt id="sans.guiframe.local_perspectives.plotting.SectorSlicer.SectorInteractor.thaw_axes">
393<tt class="descname">thaw_axes</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.SectorSlicer.SectorInteractor.thaw_axes" title="Permalink to this definition">¶</a></dt>
394<dd></dd></dl>
395
396<dl class="method">
397<dt id="sans.guiframe.local_perspectives.plotting.SectorSlicer.SectorInteractor.update">
398<tt class="descname">update</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.SectorSlicer.SectorInteractor.update" title="Permalink to this definition">¶</a></dt>
399<dd><p>Respond to changes in the model by recalculating the profiles and
400resetting the widgets.</p>
401</dd></dl>
402
403</dd></dl>
404
405<dl class="class">
406<dt id="sans.guiframe.local_perspectives.plotting.SectorSlicer.SideInteractor">
407<em class="property">class </em><tt class="descclassname">sans.guiframe.local_perspectives.plotting.SectorSlicer.</tt><tt class="descname">SideInteractor</tt><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.SectorSlicer.SideInteractor" title="Permalink to this definition">¶</a></dt>
408<dd><p>Bases: <a class="reference internal" href="BaseInteractor.html#sans.guiframe.local_perspectives.plotting.BaseInteractor._BaseInteractor" title="sans.guiframe.local_perspectives.plotting.BaseInteractor._BaseInteractor"><tt class="xref py py-class docutils literal"><span class="pre">sans.guiframe.local_perspectives.plotting.BaseInteractor._BaseInteractor</span></tt></a></p>
409<p>Draw an oblique line</p>
410<table class="docutils field-list" frame="void" rules="none">
411<col class="field-name" />
412<col class="field-body" />
413<tbody valign="top">
414<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
415<li><strong>phi</strong> &#8211; the phase between the middle line and one side line</li>
416<li><strong>theta2</strong> &#8211; the angle between the middle line and x- axis</li>
417</ul>
418</td>
419</tr>
420</tbody>
421</table>
422<dl class="method">
423<dt id="sans.guiframe.local_perspectives.plotting.SectorSlicer.SideInteractor.__init__">
424<tt class="descname">__init__</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.SectorSlicer.SideInteractor.__init__" title="Permalink to this definition">¶</a></dt>
425<dd></dd></dl>
426
427<dl class="attribute">
428<dt id="sans.guiframe.local_perspectives.plotting.SectorSlicer.SideInteractor.__module__">
429<tt class="descname">__module__</tt><em class="property"> = 'sans.guiframe.local_perspectives.plotting.SectorSlicer'</em><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.SectorSlicer.SideInteractor.__module__" title="Permalink to this definition">¶</a></dt>
430<dd></dd></dl>
431
432<dl class="method">
433<dt id="sans.guiframe.local_perspectives.plotting.SectorSlicer.SideInteractor.clear">
434<tt class="descname">clear</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.SectorSlicer.SideInteractor.clear" title="Permalink to this definition">¶</a></dt>
435<dd><p>Clear the slicer and all connected events related to this slicer</p>
436</dd></dl>
437
438<dl class="method">
439<dt id="sans.guiframe.local_perspectives.plotting.SectorSlicer.SideInteractor.clear_markers">
440<tt class="descname">clear_markers</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.SectorSlicer.SideInteractor.clear_markers" title="Permalink to this definition">¶</a></dt>
441<dd><p>Clear old markers and interfaces.</p>
442</dd></dl>
443
444<dl class="method">
445<dt id="sans.guiframe.local_perspectives.plotting.SectorSlicer.SideInteractor.connect_markers">
446<tt class="descname">connect_markers</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.SectorSlicer.SideInteractor.connect_markers" title="Permalink to this definition">¶</a></dt>
447<dd><p>Connect markers to callbacks</p>
448</dd></dl>
449
450<dl class="method">
451<dt id="sans.guiframe.local_perspectives.plotting.SectorSlicer.SideInteractor.dpixel">
452<tt class="descname">dpixel</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.SectorSlicer.SideInteractor.dpixel" title="Permalink to this definition">¶</a></dt>
453<dd><p>Return the step size in data coordinates for a small
454step in screen coordinates.  If nudge is False (default)
455the step size is one pixel.  If nudge is True, the step
456size is 0.2 pixels.</p>
457</dd></dl>
458
459<dl class="method">
460<dt id="sans.guiframe.local_perspectives.plotting.SectorSlicer.SideInteractor.get_params">
461<tt class="descname">get_params</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.SectorSlicer.SideInteractor.get_params" title="Permalink to this definition">¶</a></dt>
462<dd></dd></dl>
463
464<dl class="method">
465<dt id="sans.guiframe.local_perspectives.plotting.SectorSlicer.SideInteractor.move">
466<tt class="descname">move</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.SectorSlicer.SideInteractor.move" title="Permalink to this definition">¶</a></dt>
467<dd><p>Process move to a new position, making sure that the move is allowed.</p>
468</dd></dl>
469
470<dl class="method">
471<dt id="sans.guiframe.local_perspectives.plotting.SectorSlicer.SideInteractor.moveend">
472<tt class="descname">moveend</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.SectorSlicer.SideInteractor.moveend" title="Permalink to this definition">¶</a></dt>
473<dd></dd></dl>
474
475<dl class="method">
476<dt id="sans.guiframe.local_perspectives.plotting.SectorSlicer.SideInteractor.onClick">
477<tt class="descname">onClick</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.SectorSlicer.SideInteractor.onClick" title="Permalink to this definition">¶</a></dt>
478<dd><p>Prepare to move the artist.  Calls save() to preserve the state for
479later restore().</p>
480</dd></dl>
481
482<dl class="method">
483<dt id="sans.guiframe.local_perspectives.plotting.SectorSlicer.SideInteractor.onDrag">
484<tt class="descname">onDrag</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.SectorSlicer.SideInteractor.onDrag" title="Permalink to this definition">¶</a></dt>
485<dd><p>Move the artist.  Calls move() to update the state, or restore() if
486the mouse leaves the window.</p>
487</dd></dl>
488
489<dl class="method">
490<dt id="sans.guiframe.local_perspectives.plotting.SectorSlicer.SideInteractor.onHilite">
491<tt class="descname">onHilite</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.SectorSlicer.SideInteractor.onHilite" title="Permalink to this definition">¶</a></dt>
492<dd><p>Hilite the artist reporting the event, indicating that it is
493ready to receive a click.</p>
494</dd></dl>
495
496<dl class="method">
497<dt id="sans.guiframe.local_perspectives.plotting.SectorSlicer.SideInteractor.onKey">
498<tt class="descname">onKey</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.SectorSlicer.SideInteractor.onKey" title="Permalink to this definition">¶</a></dt>
499<dd><p>Respond to keyboard events.  Arrow keys move the widget.  Escape
500restores it to the position before the last click.</p>
501<p>Calls move() to update the state.  Calls restore() on escape.</p>
502</dd></dl>
503
504<dl class="method">
505<dt id="sans.guiframe.local_perspectives.plotting.SectorSlicer.SideInteractor.onLeave">
506<tt class="descname">onLeave</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.SectorSlicer.SideInteractor.onLeave" title="Permalink to this definition">¶</a></dt>
507<dd><p>Restore the artist to the original colour when the cursor leaves.</p>
508</dd></dl>
509
510<dl class="method">
511<dt id="sans.guiframe.local_perspectives.plotting.SectorSlicer.SideInteractor.onRelease">
512<tt class="descname">onRelease</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.SectorSlicer.SideInteractor.onRelease" title="Permalink to this definition">¶</a></dt>
513<dd></dd></dl>
514
515<dl class="method">
516<dt id="sans.guiframe.local_perspectives.plotting.SectorSlicer.SideInteractor.restore">
517<tt class="descname">restore</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.SectorSlicer.SideInteractor.restore" title="Permalink to this definition">¶</a></dt>
518<dd><p>Restore the roughness for this layer.</p>
519</dd></dl>
520
521<dl class="method">
522<dt id="sans.guiframe.local_perspectives.plotting.SectorSlicer.SideInteractor.save">
523<tt class="descname">save</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.SectorSlicer.SideInteractor.save" title="Permalink to this definition">¶</a></dt>
524<dd><p>Remember the roughness for this layer and the next so that we
525can restore on Esc.</p>
526</dd></dl>
527
528<dl class="method">
529<dt id="sans.guiframe.local_perspectives.plotting.SectorSlicer.SideInteractor.set_cursor">
530<tt class="descname">set_cursor</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.SectorSlicer.SideInteractor.set_cursor" title="Permalink to this definition">¶</a></dt>
531<dd></dd></dl>
532
533<dl class="method">
534<dt id="sans.guiframe.local_perspectives.plotting.SectorSlicer.SideInteractor.set_layer">
535<tt class="descname">set_layer</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.SectorSlicer.SideInteractor.set_layer" title="Permalink to this definition">¶</a></dt>
536<dd><p>Allow adding plot to the same panel</p>
537<table class="docutils field-list" frame="void" rules="none">
538<col class="field-name" />
539<col class="field-body" />
540<tbody valign="top">
541<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>n</strong> &#8211; the number of layer</td>
542</tr>
543</tbody>
544</table>
545</dd></dl>
546
547<dl class="method">
548<dt id="sans.guiframe.local_perspectives.plotting.SectorSlicer.SideInteractor.set_params">
549<tt class="descname">set_params</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.SectorSlicer.SideInteractor.set_params" title="Permalink to this definition">¶</a></dt>
550<dd></dd></dl>
551
552<dl class="method">
553<dt id="sans.guiframe.local_perspectives.plotting.SectorSlicer.SideInteractor.update">
554<tt class="descname">update</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.SectorSlicer.SideInteractor.update" title="Permalink to this definition">¶</a></dt>
555<dd><p>Draw oblique line</p>
556<table class="docutils field-list" frame="void" rules="none">
557<col class="field-name" />
558<col class="field-body" />
559<tbody valign="top">
560<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
561<li><strong>phi</strong> &#8211; the phase between the middle line and the current line</li>
562<li><strong>delta</strong> &#8211; phi/2 applied only when the mline was moved</li>
563</ul>
564</td>
565</tr>
566</tbody>
567</table>
568</dd></dl>
569
570</dd></dl>
571
572</div>
573</div>
574
575
576          </div>
577        </div>
578      </div>
579      <div class="sphinxsidebar">
580        <div class="sphinxsidebarwrapper">
581  <h3><a href="../../../index.html">Table Of Contents</a></h3>
582  <ul>
583<li><a class="reference internal" href="#">SectorSlicer</a><ul>
584<li><a class="reference internal" href="#sans-guiframe-local-perspectives-plotting-sectorslicer"><tt class="docutils literal"><span class="pre">sans.guiframe.local_perspectives.plotting.SectorSlicer</span></tt></a></li>
585</ul>
586</li>
587</ul>
588
589  <h4>Previous topic</h4>
590  <p class="topless"><a href="sectorMask.html"
591                        title="previous chapter">sectorMask</a></p>
592  <h4>Next topic</h4>
593  <p class="topless"><a href="slicerpanel.html"
594                        title="next chapter">slicerpanel</a></p>
595  <h3>This Page</h3>
596  <ul class="this-page-menu">
597    <li><a href="../../../_sources/api/local_perspectives/plotting/SectorSlicer.txt"
598           rel="nofollow">Show Source</a></li>
599  </ul>
600<div id="searchbox" style="display: none">
601  <h3>Quick search</h3>
602    <form class="search" action="../../../search.html" method="get">
603      <input type="text" name="q" />
604      <input type="submit" value="Go" />
605      <input type="hidden" name="check_keywords" value="yes" />
606      <input type="hidden" name="area" value="default" />
607    </form>
608    <p class="searchtip" style="font-size: 90%">
609    Enter search terms or a module, class or function name.
610    </p>
611</div>
612<script type="text/javascript">$('#searchbox').show(0);</script>
613        </div>
614      </div>
615      <div class="clearer"></div>
616    </div>
617    <div class="related">
618      <h3>Navigation</h3>
619      <ul>
620        <li class="right" style="margin-right: 10px">
621          <a href="../../../genindex.html" title="General Index"
622             >index</a></li>
623        <li class="right" >
624          <a href="../../../py-modindex.html" title="Python Module Index"
625             >modules</a> |</li>
626        <li class="right" >
627          <a href="slicerpanel.html" title="slicerpanel"
628             >next</a> |</li>
629        <li class="right" >
630          <a href="sectorMask.html" title="sectorMask"
631             >previous</a> |</li>
632        <li><a href="../../../index.html">guiframe 0.1.0 documentation</a> &raquo;</li>
633          <li><a href="index.html" >Local Perspective: plotting</a> &raquo;</li> 
634      </ul>
635    </div>
636    <div class="footer">
637        &copy; Copyright 2010, sans group.
638      Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.1.
639    </div>
640  </body>
641</html>
Note: See TracBrowser for help on using the repository browser.