[vtkusers] Animating a series of vtk files
Amy Squillacote
ahs at cfdrc.com
Thu Oct 30 09:13:07 EDT 2008
Hi Rich,
You can use vtkFileOutputWindow to send the debug output to a file:
http://www.vtk.org/doc/nightly/html/classvtkFileOutputWindow.html.
- Amy
PsyVis wrote:
> Hi Gerrick
>
> When I turn DebugOn() for PartWl I get too much text to be able to read and
> then when I try and access the vtk console window it crashes - is there
> anyway of piping the output of the debug to System.out.print????
>
> Cheers
>
> Rich
>
>
>
> Gerrick Bivins wrote:
>
>> Hi Rich,
>> Hard to tell. You can try turning on debug for the polydata reader and see
>> what that prints:
>>
>> wl.getPartwl().DebugOn();
>>
>>> wl.getPartwl().SetFileName(wlFile); // wl is the vtk
>>> pipeline , Partwl is the polydatareader
>>> wl.getPartwl().Update();
>>>
>> Gerrick
>>
>>
>>
>>
>>
>> On 10/29/08 10:36 AM, "PsyVis" <osue80 at bangor.ac.uk> wrote:
>>
>>
>>> Hello I'm attempting to animate through a series of .vtk files in java. I
>>> get
>>> an error saying that there is no data to read - I've checked that it is
>>> actually getting the files(right name and path) but still can't seem to
>>> work
>>> out what the problem is. Here is the code that gets run inside an
>>> animation
>>> thread:
>>>
>>>
>>> public void changeTimeSlice(int n){
>>>
>>> frameCount = n; // timeslice
>>>
>>> wlFile = new String(wlDir + File.separator +
>>> File.separator
>>> + dataName + "_WATER_ELEVATION_" + frameCount + ".vtk"); // filename for
>>> timeslice
>>> System.out.println("ani timeslice " + frameCount + " " +
>>> wlFile );
>>> wl.getPartwl().SetFileName(wlFile); // wl is the vtk
>>> pipeline , Partwl is the polydatareader
>>> wl.getPartwl().Update();
>>>
>>> SwingUtilities.invokeLater(new Runnable() {
>>>
>>> @Override
>>> public void run() {
>>> rp.getRenWin().Modified(); // rp is the vtk render
>>> panel
>>> rp.getRenWin().Render();
>>> }
>>> });
>>> }
>>>
>>> If anyone can point me in the right direction, that would be brilliant
>>>
>>> Cheers
>>>
>>> Rich
>>>
>> _______________________________________________
>> This is the private VTK discussion list.
>> Please keep messages on-topic. Check the FAQ at:
>> http://www.vtk.org/Wiki/VTK_FAQ
>> Follow this link to subscribe/unsubscribe:
>> http://www.vtk.org/mailman/listinfo/vtkusers
>>
>>
>>
>
>
--
Amy Squillacote Phone: (256) 726-4839
Computer Scientist Fax: (256) 726-4806
CFD Research Corporation Web: http://www.cfdrc.com
215 Wynn Drive, Suite 501
Huntsville, AL 35805
More information about the vtkusers
mailing list