I'm using Clone2 as a base for the application and it has:<div><br></div><div> ...</div><div> ...<br><div><div> PVMAIN_WINDOW_INCLUDE myMainWindow.h</div><div> GUI_CONFIGURATION_XMLS</div><div> ${CMAKE_CURRENT_SOURCE_DIR}/ParaViewSources.xml</div>
<div> ${CMAKE_CURRENT_SOURCE_DIR}/ParaViewFilters.xml</div><div> ${CMAKE_CURRENT_SOURCE_DIR}/ParaViewReaders.xml</div><div> ${CMAKE_CURRENT_SOURCE_DIR}/ParaViewWriters.xml</div><div> SOURCES ${ParaView_SOURCE_FILES}</div>
<div>)</div><div><br></div>in the CMakeLists.txt file. I want to use the open file routine used to open any legal file type, but in code. </div><div>Thanks</div><div><br></div><div><br></div><div><div class="gmail_quote">
On Mon, Mar 22, 2010 at 9:36 AM, Utkarsh Ayachit <span dir="ltr"><<a href="mailto:utkarsh.ayachit@kitware.com">utkarsh.ayachit@kitware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
That's because you haven't registered any readers with the "reader factory".<br>
<br>
Look at:<br>
<a href="http://www.paraview.org/Wiki/Writing_Custom_Applications#ParaViewReaders:_Reader_Factory_Configuration" target="_blank">http://www.paraview.org/Wiki/Writing_Custom_Applications#ParaViewReaders:_Reader_Factory_Configuration</a><br>
<br>
You need to specify an XML with the names of the readers that your<br>
applications wants to expose in the build_paraview_client() function<br>
call.<br>
<br>
Utkarsh<br>
<br>
<br>
<br>
On Sat, Mar 20, 2010 at 2:56 PM, Adebayo Olowoyeye<br>
<div><div></div><div class="h5"><<a href="mailto:aolowoye@umail.iu.edu">aolowoye@umail.iu.edu</a>> wrote:<br>
> Thanks, That worked well. I am currently trying to load a .vtk file with<br>
> the following:<br>
><br>
> QStringList fileList;<br>
> QString reprType;<br>
> reprType = "VOLUME";<br>
><br>
> fileList.push_back("../<br>
> ParaViewData/Data/blow.vtk");<br>
> pqPipelineSource *readerSource = pqLoadDataReaction::loadData(fileList);<br>
><br>
> pqDataRepresentation * repr =<br>
> objBuilder->createDataRepresentation(readerSource->getOutputPort(0),<br>
> reprType);<br>
><br>
> I get a popup window with a window label "Open Data With ..." and message "A<br>
> reader for '../ParaViewData/Data/blow.vtk' could not be found. Please<br>
> choose one:"<br>
><br>
> There are no reader options available.<br>
><br>
> The program will need to load multiple file types so I want to use a module<br>
> that can load any valid file type. Are the reader options loaded<br>
> automatically from ParaViewReader.xml? Is pqLoadDataReaction the correct<br>
> class for loading files?<br>
> Thanks!<br>
><br>
> On Thu, Mar 18, 2010 at 11:22 AM, Utkarsh Ayachit<br>
> <<a href="mailto:utkarsh.ayachit@kitware.com">utkarsh.ayachit@kitware.com</a>> wrote:<br>
>><br>
>> Hello,<br>
>><br>
>> If you are creating a custom application which always has 4 render<br>
>> windows, then I'd suggest not even using the pqViewManager.<br>
>> Simply create the 4 views yourself and pack them into a QWidget using<br>
>> a QGridLayout. For example, the following code can be used after a<br>
>> server connection has been made to set up the 4 views.<br>
>><br>
>> QWidget* centralWidget = new QWidget();<br>
>> mainWindow->setCentralWidget(centralWidget);<br>
>> QGridLayout* gl = new QGridLayout(centralWidget);<br>
>><br>
>> for (int xx=0; xx < 2; xx++)<br>
>> {<br>
>> for (int yy=0; yy < 2; yy++)<br>
>> {<br>
>> pqRenderView* view = qobject_cast<pqRenderView*>(<br>
>> ob->createView(pqRenderView::renderViewType(), server));<br>
>> gl->addWidget(view->getWidget(), yy, xx);<br>
>> }<br>
>> }<br>
>><br>
>> Utkarsh<br>
>><br>
>> On Thu, Mar 18, 2010 at 10:22 AM, Adebayo Olowoyeye<br>
>> <<a href="mailto:aolowoye@umail.iu.edu">aolowoye@umail.iu.edu</a>> wrote:<br>
>> > Hi,<br>
>> ><br>
>> > I am attempting to use the Clone2 CustomApplication example to write a<br>
>> > custom application in C++. The wiki documentation on Custom<br>
>> > Applications<br>
>> > suggest using pqViewManager to control the view of the application.<br>
>> ><br>
>> > I want to split the frame into four different windows, each with its own<br>
>> > view. I am assuming the program starts with one frame and one view. Is<br>
>> > this assumption correct?<br>
>> ><br>
>> > I reference the pqViewManager with the following code:<br>
>> > this->Internals->MultiViewManager<br>
>> ><br>
>> > the active view (I'm guessing the only view at this point is):<br>
>> > pqView* view =<br>
>> > this->Internals->MultiViewManager->getActiveView();<br>
>> ><br>
>> > This problem is there are no public methods to split the frame in<br>
>> > pqViewManager. It is possible to get the pqMultiViewFrame:<br>
>> > pqMultiViewFrame * multiViewFrame =<br>
>> > this->Internals->MultiViewManager->getFrame(view);<br>
>> ><br>
>> > I've tested this by:<br>
>> > multiViewFrame->setTitle("HELLO WORLD!");<br>
>> ><br>
>> > and it works, but I've tried multiple tries to get the frame to split<br>
>> > without success. Any insight will help.<br>
>> > Thanks!<br>
>> ><br>
>> > _______________________________________________<br>
>> > Powered by <a href="http://www.kitware.com" 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" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
>> ><br>
>> > Please keep messages on-topic and check the ParaView Wiki at:<br>
>> > <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
>> ><br>
>> > Follow this link to subscribe/unsubscribe:<br>
>> > <a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
>> ><br>
>> ><br>
><br>
><br>
> _______________________________________________<br>
> Powered by <a href="http://www.kitware.com" 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" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
><br>
> Please keep messages on-topic and check the ParaView Wiki at:<br>
> <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
><br>
> Follow this link to subscribe/unsubscribe:<br>
> <a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
><br>
><br>
</div></div></blockquote></div><br></div></div>