[vtkusers] help! problems saving as ppm

Alia aks01 at doc.ic.ac.uk
Fri Jun 28 12:27:25 EDT 2002


vtkPNMWriter works perfectly - thanks!


On 28 Jun 2002, Andy Cedilnik wrote:

>Try:
>
>  vtkWindowToImageFilter w2i
>  w2i SetInput renWin
>  vtkPGMWriter w
>  w SetInput [ w2i GetOutput ]
>  w SetFileName "whatever.ppm"
>  w Write
>
>			Andy
>
>On Fri, 2002-06-28 at 11:08, Alia wrote:
>>
>>
>> hello
>>
>> I'm trying to save the contents of a rendering window as a PPM file,
>> using vtk40 and windows.
>>
>> However I keep getting the error
>>
>> ' Error: Object named: renWin, could not find requested method:
>> SetFileName or the method was called with incorrect arguments'
>>
>> when it hits this bit of the script.
>>         renWin SetFileName $name
>>         renWin SaveImageAsPPM
>>
>> (The whole of the sample script I'm using can be found at:
>> http://www.cs.utah.edu/~cs5630/intro/ballanim.tcl.html )
>>
>> Has anybody come across this before?  I would be extremely grateful for
>> some help on the matter.
>>
>> Thanks
>>
>> Alia
>>
>>
>> ---------------------------------------------------------
>> To lift an autumn hair is no sign of great strength;
>> To see the sun and moon is no sign of sharp sight;
>> To hear the noise of thunder is no sign of a quick ear.
>> -Sun Tzu on The Art Of War
>> ---------------------------------------------------------
>>
>> .........
>>
>> (its a herd of elephants seen from VERY far away)
>> ---------------------------------------------------------
>>
>>
>> _______________________________________________
>> 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
>
>
>

---------------------------------------------------------
To lift an autumn hair is no sign of great strength;
To see the sun and moon is no sign of sharp sight;
To hear the noise of thunder is no sign of a quick ear.
-Sun Tzu on The Art Of War
---------------------------------------------------------

.........

(its a herd of elephants seen from VERY far away)
---------------------------------------------------------





More information about the vtkusers mailing list