[Paraview] Switching Between Readers
Utkarsh Ayachit
utkarsh.ayachit at kitware.com
Tue May 19 09:58:11 EDT 2015
Kevin,
Can your reader tell if it can read the file irrespective of its
extension? If so, just implement a "int CanReadFile (const char
*fname)" method on the the reader classes that will test a file. Now
you can have two reader supporting the same extension and ParaView
will create the correct reader automatically. There can be multiple
reader supporting the same extensions even without this CanReaderFile
too. In that case, ParaView will automatically popup a reader
selection dialog.
Utkarsh
On Sun, May 17, 2015 at 10:33 PM, Dean, Kevin
<kevin.dean at decisionsciencescorp.com> wrote:
> I was wondering if there was a way to instantiate a superclass that, let's
> say, can switch between vtkPolyDataAlgorithm and vtkImageAlgorithm.
>
> I have a reader that (as of now) converts the data within a protobuf file to
> image data.
>
> But currently, I have multiple protobuf files with different information.
> However, the file extension is still .pbuf, and it seems that the reader xml
> parsers the files based off this input.
>
> So would it be easier to change the filename? Or is there a way to switch
> between the two algorithm classes?
>
> Thanks for your time!
>
> Kevin E. Dean
>
> This email and its contents are confidential. If you are not the intended
> recipient, please do not disclose or use the information within this email
> or its attachments. If you have received this email in error, please report
> the error to the sender by return email and delete this communication from
> your records.
> _______________________________________________
> 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
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview
>
More information about the ParaView
mailing list