[vtkusers] How to use PrintSelf() in Tcl and python?
dgobbi at imaging.robarts.ca
Thu Sep 5 09:32:15 EDT 2002
I can expand on the Python part a bit,
>>> print object
or to create a string containing the info
>>> text = str(object)
and the following are also useful:
>>> object = vtkTransform()
>>> <libvtkCommonPython.vtkTransform vtkobject at 0x8182098>
>>> '<libvtkCommonPython.vtkTransform vtkobject at 0x8182098>'
You can also list the methods of an object using
or list the methods of a class (just the class itself, not superclasses)
or get documentation for a class or class method or instance method
>>> print vtkTransform.__doc__
>>> print vtkTransform.RotateWXYZ.__doc__
Prabhu also has a GUI browser for this sort of stuff in his MayaVI
David Gobbi, MSc dgobbi at imaging.robarts.ca
Advanced Imaging Research Group
Robarts Research Institute, University of Western Ontario
On 5 Sep 2002, Andy Cedilnik wrote:
> Hi Maurice,
> puts [ object Print ]
> print object
> On Thu, 2002-09-05 at 08:17, Maurice van de Rijzen wrote:
> > Dear all,
> > I have a very basic question.
> > What is the output of PrintSelf?
> > How do I use PrintSelf in Tcl & python scripts?
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at: <http://public.kitware.com/cgi-bin/vtkfaq>
> Follow this link to subscribe/unsubscribe:
More information about the vtkusers