source: sasview/sansguiframe/docs/sphinx/html/api/local_perspectives/plotting/SectorSlicer.html @ 96cbb53

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 96cbb53 was 96cbb53, checked in by Jessica Tumarkin <jtumarki@…>, 13 years ago

HTML folder generated by Sphinx

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