<div dir="ltr">Look at this example: <a href="https://gitlab.kitware.com/paraview/paraview/blob/master/Qt/Core/Testing/Cxx/BasicApp.cxx">https://gitlab.kitware.com/paraview/paraview/blob/master/Qt/Core/Testing/Cxx/BasicApp.cxx</a><div><br></div><div>It shows a little more about how to create views, show data in those views, etc. Alas, there is no higher level architecture document for ParaView available yet. We do plan to put that together, but not sure when it'd happen. In the mean time, feel free to ask specific questions as you run into them.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Sep 20, 2016 at 11:08 AM, Charles Boivin <span dir="ltr"><<a href="mailto:charles.boivin@mayahtt.com" target="_blank">charles.boivin@mayahtt.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Uktarsh,<br>
<br>
That did the trick -- thank you very much. It seems the file is loaded... not that it is being displayed of course.<br>
<br>
Where could I find more info on where to go next from here (like, say, actually displaying the data in that file I just loaded)? Is there something that documents the high-level architecture/overview for Paraview, in particular for people interested in custom applications? I have used VTK in the (distant) past, and I'm assuming that Paraview follows the same concepts (pipelines, etc), but not quite sure where to find that info.<br>
<br>
Thanks,<br>
<br>
Charles<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
-----Original Message-----<br>
From: Utkarsh Ayachit [mailto:<a href="mailto:utkarsh.ayachit@kitware.com">utkarsh.ayachit@<wbr>kitware.com</a>]<br>
Sent: Tuesday, September 20, 2016 9:56 AM<br>
To: Charles Boivin<br>
Cc: <a href="mailto:paraview-developers@paraview.org">paraview-developers@paraview.<wbr>org</a><br>
Subject: Re: [Paraview-developers] Custom Paraview Application help<br>
<br>
Charles,<br>
<br>
Try calling the following before the pqLoadDataReaction.<br>
<br>
vtkSMReaderFactory* readerFactory =<br>
vtkSMProxyManager::<wbr>GetProxyManager()-><wbr>GetReaderFactory();<br>
readerFactory-><wbr>UpdateAvailableReaders()<br>
<br>
Does that help?<br>
<br>
Utkarsh<br>
<br>
Utkarsh<br>
<br>
<br>
<br>
On Tue, Sep 20, 2016 at 9:05 AM, Charles Boivin <<a href="mailto:charles.boivin@mayahtt.com">charles.boivin@mayahtt.com</a>> wrote:<br>
> Just trying to play around with creating custom Paraview-based applications.<br>
> I have compiled the examples that come with Paraview itself. Focusing<br>
> on the ‘DemoApp1’ project, this is what the constructor for the main<br>
> window looks<br>
> like:<br>
><br>
><br>
><br>
> myMainWindow::myMainWindow(<wbr>QWidget* parentObject,<br>
><br>
> Qt::WindowFlags wflags) : Superclass(parentObject, wflags)<br>
><br>
> {<br>
><br>
> Ui::myMainWindow ui;<br>
><br>
> ui.setupUi(this);<br>
><br>
><br>
><br>
> // Make a connection to the builtin server<br>
><br>
> pqApplicationCore* core = pqApplicationCore::instance();<br>
><br>
><br>
> core->getObjectBuilder()-><wbr>createServer(pqServerResource(<wbr>"builtin:"));<br>
><br>
><br>
><br>
> // Create render view<br>
><br>
> pqRenderView* view = qobject_cast<pqRenderView*>(<br>
><br>
> pqApplicationCore::instance()-<wbr>>getObjectBuilder()-><wbr>createView(<br>
><br>
> pqRenderView::renderViewType()<wbr>,<br>
><br>
> pqActiveObjects::instance().<wbr>activeServer()));<br>
><br>
> pqActiveObjects::instance().<wbr>setActiveView(view);<br>
><br>
><br>
><br>
> // Set it as the central widget<br>
><br>
> this->setCentralWidget(view-><wbr>widget());<br>
><br>
> }<br>
><br>
><br>
><br>
> This strictly brings up a 3D render view in the window, no menus<br>
> whatsoever, etc. That’s what I was looking for to start with. I wanted<br>
> to hardcode loading a file next. Digging around a bit, I thought this<br>
> would do the<br>
> trick:<br>
><br>
><br>
><br>
> // Load a file<br>
><br>
> QStringList fileList;<br>
><br>
> fileList.append("D:/data/my_<wbr>datafile.vtu");<br>
><br>
> pqLoadDataReaction::loadData(<wbr>fileList);<br>
><br>
><br>
><br>
> It seems to find the file alright but it cannot seem to find a proper<br>
> reader for the file. It pops up a dialog with the readers it could use<br>
> and the list is empty.<br>
><br>
><br>
><br>
> So it seems I am clearly missing something… documentation for<br>
> vtkSMReaderFactory suggests configuration through XML files. Not too<br>
> sure how to go about that at this point… Is<br>
> pqLoadDataReaction::loadData() too ‘high-level’ to use in something as<br>
> barebones as this example? Is there a better alternative at that<br>
> point? Or if it is appropriate to use, what else does it require to be set in order to properly load a file?<br>
><br>
><br>
><br>
> Thanks in advance for your reply,<br>
><br>
><br>
><br>
> Charles<br>
><br>
><br>
> ______________________________<wbr>_________________<br>
> Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
><br>
> Visit other Kitware open-source projects at<br>
> <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/<wbr>opensource/opensource.html</a><br>
><br>
> Search the list archives at:<br>
> <a href="http://markmail.org/search/?q=Paraview-developers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=<wbr>Paraview-developers</a><br>
><br>
> Follow this link to subscribe/unsubscribe:<br>
> <a href="http://public.kitware.com/mailman/listinfo/paraview-developers" rel="noreferrer" target="_blank">http://public.kitware.com/<wbr>mailman/listinfo/paraview-<wbr>developers</a><br>
><br>
</div></div></blockquote></div><br></div>