[vtkusers] Print method output from Tcl script

Volpe, Christopher R (CRD) volpecr at crd.ge.com
Thu Feb 8 15:49:00 EST 2001


Hi Lisa-
  I'm just trying to litter a script with "<objname> Print" commands to get ivar dumps of various
objects. I'm not doing any printing from within C++.

thanks,
Chris

|> -----Original Message-----
|> From: Lisa S. Avila [mailto:lisa.avila at kitware.com]
|> Sent: Thursday, February 08, 2001 3:23 PM
|> To: Volpe, Christopher R (CRD); Vtkusers at Public. Kitware. 
|> Com (E-mail)
|> Subject: Re: [vtkusers] Print method output from Tcl script
|> 
|> 
|> Hi Chris,
|> 
|> If you print using a vtkErrorMacro (or vtkDebugMacro or 
|> vtkGenericWarningMacro) it will show up in the output 
|> window. Are you 
|> printing with cout or printf? I don't know if there is a way 
|> to get to that 
|> output.
|> 
|> Lisa
|> 
|> 
|> At 02:56 PM 2/8/2001, Volpe, Christopher R (CRD) wrote:
|> >Ok, I thought this might be a stupid question but two other 
|> people here 
|> >didn't know the answer, so
|> >here goes. When I send an object a "Print" method from 
|> within a Wish 
|> >console window, I see the
|> >output. When I run a tcl/tk script with no interactive 
|> console window, 
|> >there's this nice little
|> >"vtkOutputWindow" that gets created to hold all your 
|> debugging output. 
|> >Unfortunately, the output from
|> >the Print method doesn't get redirected to this window, and 
|> it would 
|> >really be nice if it could. Is
|> >there a way to do this? Or is there an alternate method of 
|> redirecting the 
|> >output of Print methods
|> >somewhere else?
|> >
|> >thanks,
|> >
|> >
|> >Chris
|> >
|> >  <<...>> GE Corporate Research & Development
|> > > 
|> > 
|> _____________________________________________________________
|> ______________________________________
|> > > _______________________________________________
|> > >
|> >Christopher R. Volpe
|> >Computer Scientist
|> >Visual Information Program
|> >Bldg KW, Room C215
|> >P.O. Box 8, Schenectady, NY 12301
|> >
|> >(518) 387-7766, Dial Comm: 8*833-7766, Fax: (518) 387-6981
|> >e-mail: volpecr at crd.ge.com    web: http://www.crd.ge.com/~volpecr
|> >
|> >
|> >
|> >
|> >
|> >_______________________________________________
|> >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:
|> >http://public.kitware.com/mailman/listinfo/vtkusers
|> 




More information about the vtkusers mailing list