[Paraview] vtkJPEGReader as Plugin - Loading Volumes
Utkarsh Ayachit
utkarsh.ayachit at kitware.com
Sun Feb 7 12:09:39 EST 2010
The problem seems to be that you are using the Pattern incorrectly. It
should be of the form: "%s/image%d.jpg" where %s gets replaced by the
directory while %d gets replaced by the slice number.
Utkarsh
On Sat, Feb 6, 2010 at 4:52 PM, Christian Werner
<christian.werner at rwth-aachen.de> wrote:
> 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
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://www.paraview.org/mailman/listinfo/paraview
>
More information about the ParaView
mailing list