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

Johnson, Duncan (UK) Duncan.Johnson at baesystems.com
Wed Jul 7 06:36:09 EDT 2010


I've had a quick look and they both do, but are simply functions that
return '1' with no checking involved.  I'll have a look through the
source plugins as you suggested to see if I can find some examples.

Duncan

-----Original Message-----
From: Sven Buijssen [mailto:sven.buijssen at tu-dortmund.de] 
Sent: 07 July 2010 11:32
To: Johnson, Duncan (UK)
Cc: paraview at paraview.org
Subject: Re: [Paraview] Custom readers for files with 'similar'
extensions


                    *** WARNING ***

  This message has originated outside your organisation,
  either from an external partner or the Global Internet. 
      Keep this in mind if you answer this message.
 

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