[vtkusers] How to use PrintSelf() in Tcl and python?

Charl P. Botha c.p.botha at its.tudelft.nl
Thu Sep 5 08:28:34 EDT 2002


On Thu, Sep 05, 2002 at 02:17:18PM +0200, Maurice van de Rijzen wrote:
> I have a very basic question.
> What is the output of PrintSelf?
> How do I use PrintSelf in Tcl & python scripts?

Example:

cpbotha at dutidad:~$ python
Python 2.2.1 (#1, Aug 24 2002, 08:35:38) 
[GCC 2.95.4 20011002 (Debian prerelease)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import vtk
>>> a = vtk.vtkActor()
>>> print a
vtkOpenGLActor (0x81c5b70)
  Debug: Off
  Modified Time: 3
  Reference Count: 2
  Registered Events: (none)
  Dragable: On
  Pickable: On
  AllocatedRenderTime: 10
  EstimatedRenderTime: 0
  NumberOfConsumers: 0
  RenderTimeMultiplier: 1
  Visibility: On
  IsIdentity: true
  Position: (0, 0, 0)
  Orientation: (0, 0, 0)
  Origin: (0, 0, 0)
  Scale: (1, 1, 1)
  Bounds: 
    Xmin,Xmax: (-1, 1)
    Ymin,Ymax: (-1, 1)
    Zmin,Zmax: (-1, 1)
  UserTransform: (none)
  UserMatrix: (none)
  Mapper: (none)
  Property: (none)
  Texture: (none)


>>>

-- 
charl p. botha http://cpbotha.net/ http://visualisation.tudelft.nl/



More information about the vtkusers mailing list