Hi Paul, Does make perfectly sense and oh so obvious a mistake. I even put the comment "# name of SourceProxy in FooReaderSM.xml" there myself. Thanks a lot!
Karl > -----Ursprüngliche Nachricht----- > Von: "Paul Edwards" <[email protected]> > Gesendet: 29.09.09 17:32:34 > An: Karl König <[email protected]> > CC: Utkarsh Ayachit <[email protected]>, "[email protected]" > <[email protected]> > Betreff: Re: [Paraview] Extending pqAutoGeneratedObjectPanel for custom > reader? Hi Karl, > > The reader has the name set as FooSeriesReader: > > From FooReaderGUI.xml: > 8<---------------------------------------------------- > <ParaViewReaders> > <Reader name=" *FooSeriesReader*" > extensions="foo" > file_description="ASCII foo files"> > </Reader> > </ParaViewReaders> > ---------------------------------------------------->8 > > And in the CMakeLists you set the XML_NAME to be FooReader > > From CMakeLists.txt > 8<---------------------------------------------------- > ... > ADD_PARAVIEW_OBJECT_PANEL(IFACES IFACE_SRCS > CLASS_NAME pqFooReaderPanel > XML_NAME *FooReader* # name of SourceProxy in FooReaderSM.xml > XML_GROUP sources > ) > ... > ---------------------------------------------------->8 > > Make them the same and it will work ;) > > Regards, > Paul > > 2009/9/29 Karl König <[email protected]> > Here you go. You'll need a recent CVS build as the CMakeLists.txt has > only been adapted to support a customized panel for PV 3.7 so far and > the PV 3.7 section in CMakeLists.txt relies on vtkFileSeriesReader. > cxx revision >= 1.17 > > Karl > > > That'd be great if you can post the tar ball. Makes it easier to > debug. > > > > Thanks > > Utkarsh > > > > On Tue, Sep 29, 2009 at 9:03 AM, Karl König <[email protected]> > wrote: > > > Utkarsh, > > > > > > Could you please define "is created as expected"? > > > As far as I define it, it is: > > > The plugin gets successfully loaded, the file extension *.foo > appears in the list of supported file types, when opening such a *. > foo file the reader itself is definitely called as both FooReader:: > RequestInformation and FooReader::RequestData print messages to the > screen using std:cout. But the panel remains unaltered. > > > > > > If it makes things easier, I could post the complete package > which can be tested using copy-and-paste like this: > > > tar -xvzf FooReader.tar.gz > > > cd FooReader > > > mkdir build > > > cd build > > > cmake .. -DCMAKE_BUILD_TYPE:STRING=Debug -DParaView_DIR:STRING=< > path to paraview cvs build> > > > make > > > gdb --args paraview --data=../sampleinputfiles/sametimes..foo > > > > > > Karl > > > > > >> Are you sure the FooReader proxy is created as expected when you > open > > >> the file you want to read? > > >> > > >> Utkarsh > > >> > > ________________________________________________________________ > Neu: WEB.DE Doppel-FLAT mit Internet-Flatrate + Telefon-Flatrate > für nur 19,99 Euro/mtl.!* http://produkte.web.de/go/02/ > > _______________________________________________ > 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 > > > ________________________________________________________________ Neu: WEB.DE Doppel-FLAT mit Internet-Flatrate + Telefon-Flatrate für nur 19,99 Euro/mtl.!* http://produkte.web.de/go/02/ _______________________________________________ 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
