<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi, I think that the vtk users guide is the best tutorial for vtk. The
examples (at least in the edition&nbsp; I have) are all in tcl, but it's
trivial to write equivalent python code from them. I personally like to
use python to explore vtk interactively as I write C++ code by using
idle. I have written a small python module to assist which I called
"qexp" for quick explore. see attachment. The two main functions in
qexp.py are <br>
<br>
shob: shows all the attributes and methods of an object that are
visible within python<br>
shdoc: prints the doc string of an object or method<br>
<br>
You can use qexp interactivly from with IDLE like so:<br>
<br>
$ilde<br>
&gt;&gt;&gt; from qexp import *<br>
&gt;&gt;&gt; import vtk<br>
&gt;&gt;&gt; id = vtk.vtkImageData()<br>
&gt;&gt;&gt; shob(id)<br>
<br>
...prints a nice formatted list of all methods of object id too long to
include here...<br>
<br>
&gt;&gt;&gt; shdoc(id)<br>
vtkImageData - topologically and geometrically regular array of data<br>
<br>
Super Class:<br>
<br>
&nbsp;vtkDataSet<br>
<br>
&nbsp;vtkImageData is a data object that is a concrete implementation of<br>
&nbsp;vtkDataSet. vtkImageData represents a geometric structure that is <br>
&nbsp;a topological and geometrical regular array of points. Examples include<br>
&nbsp;volumes (voxel data) and pixmaps. <br>
<br>
<br>
&gt;&gt;&gt; shdoc(id.AddObserver)<br>
V.AddObserver(int, function) -&gt; int<br>
<br>
&nbsp;Add an event callback function(vtkObject, int) for an event type.<br>
&nbsp;Returns a handle that can be used with RemoveEvent(int).<br>
<br>
&gt;&gt;&gt;<br>
<br>
good luck.<br>
<pre class="moz-signature" cols="72">-- 
Burlen Loring
Information Technologist III
Space Science Center
Institute for the Study of Earth, Oceans, and Space
University of New Hampshire
39 College Road, Durham, NH 03824
Phone: 603-862-1140</pre>
<br>
<br>
yadin Bocuma Rivas wrote:
<blockquote cite="mid141869.36935.qm@web51307.mail.re2.yahoo.com"
 type="cite">Hi ALL!<br>
Pls can any one tell me where i can get information about a helpful
tutorial on VTK used from python....used on a windows pc.<br>
am using python 2.4(Enthought Edition for windows)<br>
I need to learn VTK + mayaVI ASAP please where can iget a good VTK
introductory tutorial and nice examaples...?<br>
I got the cone.py and other things from the net but there are not
working....<br>
please all the exmaples and other staff that i got from the net is not
working..<br>
please help me...<br>
  <br>
  <p> __________________________________________________<br>
Correo Yahoo!<br>
Espacio para todos tus mensajes, antivirus y antispam &iexcl;gratis! <br>
Reg&iacute;strate ya - <a class="moz-txt-link-freetext" href="http://correo.espanol.yahoo.com/">http://correo.espanol.yahoo.com/</a> </p>
  <pre wrap="">
<hr size="4" width="90%">
_______________________________________________
This is the private VTK discussion list. 
Please keep messages on-topic. Check the FAQ at: <a class="moz-txt-link-freetext" href="http://www.vtk.org/Wiki/VTK_FAQ">http://www.vtk.org/Wiki/VTK_FAQ</a>
Follow this link to subscribe/unsubscribe:
<a class="moz-txt-link-freetext" href="http://www.vtk.org/mailman/listinfo/vtkusers">http://www.vtk.org/mailman/listinfo/vtkusers</a>
  </pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">
</pre>
</body>
</html>