[Paraview] vtkJPEGReader as Plugin - Loading Volumes

Christian Werner christian.werner at rwth-aachen.de
Sat Feb 6 16:52:05 EST 2010


Hi there!

I'm having trouble getting the vtkJPEGReader to work properly as plugin. 
Specifically I don't know how to set up the approriate .xml file. It 
works with command="SetFileName" perfectly, but that way I am getting 
the first slice only. I see that one should use SetFilePrefix and/or 
SetFilePattern, but how can I make Paraview pass the appropriate 
parameters to the plugin??

This is how my .xml looks like, it's just a guess, I really don't know 
better:

<ServerManagerConfiguration>
  <ProxyGroup name="sources">
   <SourceProxy name="JPEGImageReader"
                class="vtkJPEGReader"
                label="JPEG reader">
     <Documentation
       short_help="Read a JPEG file."
       long_help="Read a JPEG file into an image data.">
       The JPEG image reader reads JPG files, and the output is a 
uniform rectilinear (image/volume) dataset. The default file extension 
is .jpg.
     </Documentation>
    #will become e.g. /home/christian/jpegs
     <StringVectorProperty
        name="Files"
        animateable="0"
        command="SetFilePrefix"
        number_of_elements="1">
        <FileListDomain name="files"/>
        <Documentation>
          This property specifies the File Prefix for the JPEG reader.
        </Documentation>
        <Hints>
          <UseDirectoryName />
        </Hints>
     </StringVectorProperty>
     #file pattern
     <StringVectorProperty
       name="Pattern"
       animateable="0"
       command="SetFilePattern"
       number_of_elements="1"
       default_value="/*.jpg">
     </StringVectorProperty>
   <!-- End JPEGImageReader -->
   </SourceProxy>
  </ProxyGroup>
</ServerManagerConfiguration>

With that, I get

Unable to open file /home/christian/jpges.0


when trying to open a set of jpges...

Does anyone have any idea? I'd also like to know where there is 
documentation on all these markups like what you can put in <Hint>, etc..


Best regards,
Christian


More information about the ParaView mailing list