File: shapebox.rst

package info (click to toggle)
neuron 8.2.6-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 34,760 kB
  • sloc: cpp: 149,571; python: 58,465; ansic: 50,329; sh: 3,510; xml: 213; pascal: 51; makefile: 35; sed: 5
file content (62 lines) | stat: -rw-r--r-- 1,946 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62

.. _hoc_shapebox:


MenuExplore
-----------

Shape and browser for creating a section panel 

.. index:: MenuExpore (HOC class)

usage:
    ``ob = MenuExplore()``
 
Pressing the left mouse button on a section in the Shape scene (make 
sure the :guilabel:`Section` popup menu item is selected) colors the section red and 
highlights the corresponding section name in the browser. 
 
Pressing the left mouse button once on a name in the browser colors 
the corresponding section in the Shape Scene (you can drag the mouse as well). 
 
Double clicking the left mouse button on a name in the browser pops up 
a panel showing the parameters associated with that section. 
 
This assumes homogeneous sections by default. So Parameters which are not 
initialized as constants along the section get a label to that effect instead 
of a field editor.  If this is not desired specify a position, 0 < x < 1, 
for the location. 
 
If panels besides PARAMETER are desired select from the :guilabel:`Type` menu. 
     

PointProcessLocator
~~~~~~~~~~~~~~~~~~~

.. index:: PointProcessLocator (HOC class)

shape, browser, and menu for a point process 

usage:
    :samp:`ob = PointProcessLocator({pointprocess})` 
 
In the shape scene there is a blue dot showing the location of the 
pointprocess.  Press the left mouse button at any point on the neuron to 
relocate the point process. Parameters of the point process are 
displayed in the lower part of the window. 
 

ShapeBrowser
~~~~~~~~~~~~

Pressing the left mouse button on a section in the Shape scene (make 
sure the :guilabel:`Section` popup menu item is selected) colors the section red and 
highlights the corresponding section name in the browser. 
 
Pressing the left mouse button once on a name in the browser colors 
the corresponding section in the Shape Scene (you can drag the mouse as well). 
 
This class is useful as a part of a larger class and as a dialog for 
selecting a section.