[Paraview] Generating an animation in Paraview 3.2.1 ( vs. Paraview 2.6 )

Berk Geveci berk.geveci at kitware.com
Thu Jan 3 10:13:53 EST 2008


This is fixed on cvs head. I am also attaching a patch in case you
want to apply it to your 3.2 source. The patch has to be applied in
the ParaView3/Servers/ServerManager/Resources/ directory. The patch
only adds support for animating stl file series. We do not support
file series of formats that natively support time such as XML-based
VTK formats. To animate those, you have to write a pvd file.

-berk


On 1/2/08, Allan Gersborg-Hansen <agh at mek.dtu.dk> wrote:
> Dear Developers
>
> First of all, thanks for this lovely software.
>
> I have happily used Paraview 2.6 which I have used for generating animations
> based on STL files, like this one
> http://www.topopt.dtu.dk/MPI08/paraview_movie2.avi . The sole reason for
> using the STL format is that it was easy to code.
>
> Recently I discovered the new version 3.2.1. Unfortunately I have trouble
> generating animations, even with the data which is provided (Single Sphere
> Animation in ParaViewData3.2.zip).
>
> Speaking on behalf of new and inexperienced users maybe you can help with
> this question
>
> 1)
> The procedure that works in version 2.6 (but not in version 3.2.1 (windows))
> is
> a. Open a data file, e.g. one of the STL files
> http://www.topopt.dtu.dk/MPI08/ParaviewSTL/stl_data.zip
>
> b. Press the accept button
> c. Press play to see the animation
>
> New users like to see a quick and easy demo of what the software can do. If
> this is not a bug, I think it would be useful to add to the existing guide
> http://paraview.org/Wiki/Animating_legacy_VTK_file_series how to generate an
> animation.
>
> Thanks and Happy New Year!
> Allan
>
> ---
> Allan Roulund Gersborg
> Assistant professor, Ph.D.
> Department of Mechanical Engineering (Solid Mechanics)
> Technical University of Denmark         tel (+45) 4525 1374
> Nils Koppels Allé, Bld. 404, Room 128   fax (+45) 4593 1475
> DK-2800 Kgs. Lyngby, Denmark
> email: arg(at)mek.dtu.dk
> Group homepage: www.topopt.dtu.dk
> Personal homepage: www.topopt.dtu.dk/arg
>
>
> _______________________________________________
> ParaView mailing list
> ParaView at paraview.org
> http://www.paraview.org/mailman/listinfo/paraview
>
-------------- next part --------------
Index: readers.xml
===================================================================
RCS file: /cvsroot/ParaView3/ParaView3/Servers/ServerManager/Resources/readers.xml,v
retrieving revision 1.115
diff -u -3 -r1.115 readers.xml
--- readers.xml	5 Dec 2007 14:56:42 -0000	1.115
+++ readers.xml	3 Jan 2008 15:05:57 -0000
@@ -21,6 +21,26 @@
      </StringVectorProperty>
    <!-- End legacyreader -->
    </SourceProxy>
+
+   <SourceProxy name="stlreadercore" class="vtkSTLReader" label="STL reader">
+     <Documentation
+       short_help="Read STL files."
+       long_help="Read ASCII or binary stereo lithography (STL) files.">
+       The STL reader reads ASCII or binary stereo lithography (STL) files. The expected file extension is .stl. The output of this reader is a polygonal dataset.
+     </Documentation>
+     <StringVectorProperty
+        name="FileName"
+        animateable="0"
+        command="SetFileName"
+        number_of_elements="1">
+        <FileListDomain name="files"/>
+        <Documentation>
+          This property specifies the file name for the STL reader.
+        </Documentation>
+     </StringVectorProperty>
+   <!-- End stlreader -->
+   </SourceProxy>
+
   </ProxyGroup>
 
   <ProxyGroup name="sources">
@@ -1521,24 +1541,46 @@
      </DoubleVectorProperty>
    </SourceProxy>
 
-   <SourceProxy name="stlreader" class="vtkSTLReader" label="STL reader">
+   <FileSeriesReaderProxy name="stlreader"
+                          class="vtkFileSeriesReader"
+                          label="Legacy VTK reader"
+                          file_name_method="SetFileName">
      <Documentation
-       short_help="Read STL files."
+	 short_help="Read STL files."
        long_help="Read ASCII or binary stereo lithography (STL) files.">
-       The STL reader reads ASCII or binary stereo lithography (STL) files. The expected file extension is .stl. The output of this reader is a polygonal dataset.
+       The STL reader reads ASCII or binary stereo lithography (STL) files. The expected file extension is .stl. The output of this reader is a polygonal dataset. This reader also supports file series.
      </Documentation>
+
+     <SubProxy>
+       <Proxy name="Reader"
+	      proxygroup="internal_sources" proxyname="stlreadercore">
+       </Proxy>
+     </SubProxy>
+     
      <StringVectorProperty
-        name="FileName"
+        name="FileNames"
+        clean_command="RemoveAllFileNames"
+        command="AddFileName"
         animateable="0"
-        command="SetFileName"
-        number_of_elements="1">
+        number_of_elements="0" 
+        repeat_command="1">
         <FileListDomain name="files"/>
+       <Documentation>
+         The list of files to be read by the reader. If more than 1 file is specified, the reader will switch to file series mode in which it will pretend that it can support time and provide 1 file per time step.
+       </Documentation>
+     </StringVectorProperty>
+
+     <DoubleVectorProperty 
+        name="TimestepValues"
+        repeatable="1"
+        information_only="1">
+        <TimeStepsInformationHelper/>
         <Documentation>
-          This property specifies the file name for the STL reader.
+          Available timestep values.
         </Documentation>
-     </StringVectorProperty>
-   <!-- End stlreader -->
-   </SourceProxy>
+     </DoubleVectorProperty>
+     <!-- End legacyreader_t -->
+   </FileSeriesReaderProxy>
 
    <SourceProxy name="byureader" class="vtkBYUReader" label="BYU reader">
      <Documentation


More information about the ParaView mailing list