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
|
<a name="Module:Scientific.TkWidgets.TkVisualizationCanvas"><h1>Module Scientific.TkWidgets.TkVisualizationCanvas</h1></a>
<hr width=70%>
<a name="Class:Scientific.TkWidgets.TkVisualizationCanvas.PolyLine3D"><h2>Class PolyLine3D: Multiple connected lines</h2></a>
<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%>
<a name="Class:Scientific.TkWidgets.TkVisualizationCanvas.VisualizationGraphics"><h2>Class VisualizationGraphics: Compound graphics object</h2></a>
<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%>
<a name="Class:Scientific.TkWidgets.TkVisualizationCanvas.VisualizationCanvas"><h2>Class VisualizationCanvas: Tk visualization widget</h2></a>
<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>
|