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