[vtkusers] Question with basic Titan example
Bill Sherman
shermanw at indiana.edu
Mon Jun 7 11:25:36 EDT 2010
Hello,
I've recently gone through the build process for Titan on my MacBookPro,
and now that I have it built I'm trying to figure out how to use it.
I used the instructions on the kitware wiki to do the build:
- https://www.kitware.com/InfovisWiki/index.php/Build_Instructions
So I found a couple of potential resources for examples, but I'm still
stuck.
The first potential resource was another page on the kitware.com wiki:
- https://www.kitware.com/InfovisWiki/index.php/Titan_Simple_Application
But the first line there indicates that the example is out of date, but
it does point to a directory of examples. I plan to work my way through
some of the Python examples, but without explanatory text, it's somewhat
of a tedious task.
I then found the powerpoint slides for the IEEE Vis08 tutorial for
"Information Visualization in VTK", and it gives a very basic example
for both Tcl and Python.
I tried the Python example, but when I get to the command:
"view.SetupRenderWindow(window)"
I get this error message:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: SetupRenderWindow
>>> window.GetInteractor().Start()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'NoneType' object has no attribute 'Start'
>>> window.GetInteractor()
>>> view.SetRenderWindow(window)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: SetRenderWindow
So I presume the arugments to the SetupRenderWindow() method changed,
but I don't know to what they might now be.
So I have the particular question of what to replace the SetupRenderWindow
statement/arguments with to make it work, and the more general question
of where there might be a more comprehensive collection of examples with
explanatory text.
Thank you,
Bill
More information about the vtkusers
mailing list