[vtkusers] Animating a series of vtk files

PsyVis osue80 at bangor.ac.uk
Thu Oct 30 12:43:00 EDT 2008


Hello 

Thanks for your help - I've turned on the writing of a log file using
FileOutputWindow and here is the output: 

Debug: In C:\martink\vtk42\VTK\IO\vtkDataReader.h, line 54
vtkPolyDataReader (0x0C3B6E88): vtkPolyDataReader (0x0C3B6E88): setting
FileName to C:\\Documents and Settings\\Rich\My
Documents\\Dyfi_Data\\RUN_01\\Water_Elevation\\Dyfi_run_01_WATER_ELEVATION_0.vtk


Debug: In C:\martink\vtk42\VTK\Common\vtkSource.h, line 126
vtkPolyDataReader (0x0C3B6E88): vtkPolyDataReader (0x0C3B6E88): returning
ErrorCode of 0


Debug: In C:\martink\vtk42\VTK\Common\vtkSource.h, line 167
vtkPolyDataReader (0x0C3B6E88): vtkPolyDataReader (0x0C3B6E88): setting
ErrorCode to 0


Debug: In C:\martink\vtk42\VTK\IO\vtkDataReader.h, line 54
vtkPolyDataReader (0x0C3B6E88): vtkPolyDataReader (0x0C3B6E88): setting
FileName to C:\\Documents and Settings\\Rich\My
Documents\\Dyfi_Data\\RUN_01\\Water_Elevation\\Dyfi_run_01_WATER_ELEVATION_1.vtk


Debug: In C:\martink\vtk42\VTK\IO\vtkPolyDataReader.cxx, line 107
vtkPolyDataReader (0x0C3B6E88): Reading vtk polygonal data...


Debug: In C:\martink\vtk42\VTK\IO\vtkDataReader.cxx, line 369
vtkPolyDataReader (0x0C3B6E88): Opening vtk file


Debug: In C:\martink\vtk42\VTK\IO\vtkDataReader.cxx, line 407
vtkPolyDataReader (0x0C3B6E88): Reading vtk file header


Debug: In C:\martink\vtk42\VTK\IO\vtkDataReader.cxx, line 443
vtkPolyDataReader (0x0C3B6E88): Reading vtk file entitled: vtk output


Debug: In C:\martink\vtk42\VTK\Common\vtkProcessObject.h, line 96
vtkPolyDataReader (0x0C3B6E88): vtkPolyDataReader (0x0C3B6E88): returning
Progress of 0


Debug: In C:\martink\vtk42\VTK\IO\vtkPolyDataReader.cxx, line 107
vtkPolyDataReader (0x0C3B6E88): Reading vtk polygonal data...


Debug: In C:\martink\vtk42\VTK\IO\vtkDataReader.cxx, line 369
vtkPolyDataReader (0x0C3B6E88): Opening vtk file


Debug: In C:\martink\vtk42\VTK\IO\vtkDataReader.cxx, line 407
vtkPolyDataReader (0x0C3B6E88): Reading vtk file header


Generic Warning: In C:\martink\vtk42\VTK\IO\vtkDataReader.cxx, line 833
Error reading ascii data!


Debug: In C:\martink\vtk42\VTK\IO\vtkDataReader.cxx, line 1089
vtkPolyDataReader (0x0C3B6E88): Read 23309 points


ERROR: In C:\martink\vtk42\VTK\IO\vtkDataReader.cxx, line 421
vtkPolyDataReader (0x0C3B6E88): Unrecognized file type:  for file:
C:\\Documents and Settings\\Rich\My
Documents\\Dyfi_Data\\RUN_01\\Water_Elevation\\Dyfi_run_01_WATER_ELEVATION_1.vtk


Debug: In C:\martink\vtk42\VTK\Common\vtkProcessObject.h, line 96
vtkPolyDataReader (0x0C3B6E88): vtkPolyDataReader (0x0C3B6E88): returning
Progress of 0


Debug: In C:\martink\vtk42\VTK\Common\vtkSource.h, line 167
vtkPolyDataReader (0x0C3B6E88): vtkPolyDataReader (0x0C3B6E88): setting
ErrorCode to 3


Debug: In C:\martink\vtk42\VTK\IO\vtkDataReader.cxx, line 1789
vtkPolyDataReader (0x0C3B6E88): Closing vtk file


Debug: In C:\martink\vtk42\VTK\Common\vtkSource.h, line 126
vtkPolyDataReader (0x0C3B6E88): vtkPolyDataReader (0x0C3B6E88): returning
ErrorCode of 3


Debug: In C:\martink\vtk42\VTK\Common\vtkSource.h, line 167
vtkPolyDataReader (0x0C3B6E88): vtkPolyDataReader (0x0C3B6E88): setting
ErrorCode to 3


Debug: In C:\martink\vtk42\VTK\IO\vtkDataReader.h, line 54
vtkPolyDataReader (0x0C3B6E88): vtkPolyDataReader (0x0C3B6E88): setting
FileName to C:\\Documents and Settings\\Rich\My
Documents\\Dyfi_Data\\RUN_01\\Water_Elevation\\Dyfi_run_01_WATER_ELEVATION_2.vtk


Debug: In C:\martink\vtk42\VTK\IO\vtkPolyDataReader.cxx, line 107
vtkPolyDataReader (0x0C3B6E88): Reading vtk polygonal data...


Debug: In C:\martink\vtk42\VTK\IO\vtkDataReader.cxx, line 369
vtkPolyDataReader (0x0C3B6E88): Opening vtk file


Debug: In C:\martink\vtk42\VTK\IO\vtkDataReader.cxx, line 407
vtkPolyDataReader (0x0C3B6E88): Reading vtk file header


Debug: In C:\martink\vtk42\VTK\IO\vtkDataReader.cxx, line 443
vtkPolyDataReader (0x0C3B6E88): Reading vtk file entitled: vtk output


Debug: In C:\martink\vtk42\VTK\Common\vtkProcessObject.h, line 96
vtkPolyDataReader (0x0C3B6E88): vtkPolyDataReader (0x0C3B6E88): returning
Progress of 0

The app now crashes and dies during the running of the animation which is a
bit????

Cheers

Rich


Amy Squillacote-3 wrote:
> 
> 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
> 
> 
> _______________________________________________
> 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
> 
> 

-- 
View this message in context: http://www.nabble.com/Animating-a-series-of-vtk-files-tp20229669p20250395.html
Sent from the VTK - Users mailing list archive at Nabble.com.




More information about the vtkusers mailing list