File: Scientific_41.html

package info (click to toggle)
python-scientific 2.4.11-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 1,956 kB
  • ctags: 3,063
  • sloc: python: 9,157; ansic: 4,483; xml: 4,145; makefile: 126; sh: 18; csh: 1
file content (96 lines) | stat: -rw-r--r-- 1,702 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
<h1>Module Scientific.TkWidgets.TkVisualizationCanvas</h1>











<hr width=70%>
<h2>Class PolyLine3D: Multiple connected lines</h2>





<p>Constructor: PolyLine(<i>points</i>, **|attr|), where <i>points</i> is
any sequence of (x, y, z) number triples and <i>attr</i> stands for line
attributes specified by keyword arguments, which are
<tt>width</tt> (an integer) and <tt>color</tt> (a string whose value is one of
the color names defined in Tk). The default is a black line
of width 1.
</p>



<hr width=70%>
<h2>Class VisualizationGraphics: Compound graphics object</h2>





<p>Constructor: VisualizationGraphics(<i>objects</i>), where <i>objects</i> is a list
whose elements can be instances of the classes PolyLine3D and
VisualizationGraphics.
</p>



<hr width=70%>
<h2>Class VisualizationCanvas: Tk visualization widget</h2>





<p>Constructor: VisualizationCanvas(<i>master</i>, <i>width</i>, <i>height</i>,
                                 **|attributes|).
The arguments have the same meaning as for a standard Tk canvas.
The default background color is white and the default font is
Helvetica at 10 points.</p>



<p>VisualizationCanvas objects support all operations of Tk widgets.</p>



<p>Interactive manipulation of the display is possible with
click-and-drag operations. The left mouse button rotates the
objects, the middle button translates it, and the right button
scales it up or down.
</p>



<b>Methods:</b><br>
<ul>
<li> <b><i>draw</i></b>(<i>graphics</i>)




<p>Draws the graphics object <i>graphics</i>, which can be
a PolyLine3D or a VisualizationGraphics object.</p>





<li> <b><i>clear</i></b>(<i>keepscale</i>=<tt>0</tt>)




<p>Clears the canvas.</p>





</ul>