[Paraview] Custom readers for files with 'similar' extensions

Sven Buijssen sven.buijssen at tu-dortmund.de
Wed Jul 7 06:32:02 EDT 2010


Hi Duncan,

Do both of your plugins provide a method CanReadFile()? If not, that'd
probably solve the issue.
There are many reader classes in the ParaView source tree that may
provide you with a suitable template for your CanReadFile method.

Sven



Johnson, Duncan (UK) wrote, On 07.07.2010 12:18:
> Hello all,
>  
> I have a set of output files, one of extension **.ren* and another of
> extension* *.ren.out.*  I have two custom readers which open these files
> correctly if only one of the reader plugins is loaded at a time.  If
> both are loaded then paraview will segmentation fault occasionally.  The
> problem I believe is the common* .ren* between the two files.   Paraview
> is incorrectly choosing the *.ren* reader when a *.ren.out* file is
> opened.  I have tried using both *.ren.out* and *.out* as the extensions
> in the reader.xml and still have the same problem.  I have resorted to
> renaming my *.ren.out* files to *.r.out* and leaving the reader xml to
> open *.out* files.  If there is a way around this without having to
> rename files that would be great.
>  
> Many thanks,
>  
> Duncan
>  
> _______________________________________________________________
> *Duncan Johnson*
> Senior Electromagnetics Engineer [AS&FC Local IT Administrator]
> LO Engineering
> 
> BAE Systems
> W392A
> Warton Aerodrome
> Preston
> PR4 1AX
> Contact:
> Tel: +44 (0) 1772 (8)58347
> Email:  duncan.johnson at baesystems.com
> <mailto:duncan.johnson at baesystems.com>
> _______________________________________________________________
> BAE Systems (Operations) Limited:
> Registered Office:
> Warwick House
> PO Box 87
> Farnborough Aerospace Centre
> Farnborough, Hants
> GU14 6YU, UK
> Registered in England & Wales No: 1996687
> _______________________________________________________________
>  
> 
> ********************************************************************
> This email and any attachments are confidential to the intended
> recipient and may also be privileged. If you are not the intended
> recipient please delete it from your system and notify the sender.
> You should not copy it or use it for any purpose nor disclose or
> distribute its contents to any other person.
> ********************************************************************
> 
> 
> 
> _______________________________________________
> 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


-- 
Dipl.Math. Sven H.M. Buijssen                               ////
Institute of Applied Mathematics                           ////
Faculty of Mathematics                                    ////
Dortmund University of Technology                    ___ ////
Vogelpothsweg 87, 44 227 Dortmund, Germany           \*\\///
Tel. +49-(0)231-755-5934 Fax. +49-(0)231-755-5933     \\\\/


More information about the ParaView mailing list