<div dir="ltr">Interesting, thanks for sharing the answer of your issue.</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Jan 10, 2013 at 8:56 AM, Reuter, Michael A. <span dir="ltr"><<a href="mailto:reuterma@ornl.gov" target="_blank">reuterma@ornl.gov</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">OK, I found the problem. The name of the view is "pqQuadView" instead of the expected "QuadView". Using the other name now at least gets me to the point where the view comes up.<br>
<br>
Cheers,<br>
M<br>
<br>
<br>
From: Sebastien Jourdain <<a href="mailto:sebastien.jourdain@kitware.com">sebastien.jourdain@kitware.com</a><mailto:<a href="mailto:sebastien.jourdain@kitware.com">sebastien.jourdain@kitware.com</a>>><br>
Date: Wednesday, January 9, 2013 8:36 PM<br>
To: Michael Reuter <<a href="mailto:reuterma@ornl.gov">reuterma@ornl.gov</a><mailto:<a href="mailto:reuterma@ornl.gov">reuterma@ornl.gov</a>>><br>
Subject: Re: [Paraview] QuadView from C++<br>
<div class="im"><br>
You right...<br>
That will need further investigation, has it should work the way you were using it.<br>
Although could you help me to figure that out ?<br>
<br>
Could you attach a debugger to "pqObjectBuilder::createView(const QString& type, pqServer* server)"<br>
and have the list of values viewTypes() that are available to you ?<br>
<br>
Or if you prefer, you can edit the code to print out the different viewTypes available on your end.<br>
<br>
pqView* pqObjectBuilder::createView(const QString& type, pqServer* server)<br>
{<br>
...<br>
foreach(pqViewModuleInterface* vmi, ifaces)<br>
{<br>
if (vmi && vmi->viewTypes())<br>
{<br>
qDebug() << vmi->viewTypes();<br>
}<br>
...<br>
<br>
Thanks,<br>
<br>
Seb<br>
<br>
<br>
</div><div><div class="h5">On Wed, Jan 9, 2013 at 4:20 PM, Michael Reuter <<a href="mailto:reuterma@ornl.gov">reuterma@ornl.gov</a><mailto:<a href="mailto:reuterma@ornl.gov">reuterma@ornl.gov</a>>> wrote:<br>
Hi Seb,<br>
<br>
After setting the environmental variable and searching the message dialog, I find:<br>
<br>
<br>
***************************************************<br>
<br>
Attempting to load /home/2zr/build/Mantid-PV-398/bin/pvplugins/pvplugins/libQuadView.so<br>
<br>
Loaded shared library successfully. Now trying to validate that it's a ParaView plugin.<br>
<br>
Plugin's signature: paraviewplugin|GNU|3.98<br>
<br>
Plugin signature verification successful. This is definitely a ParaView plugin compiled with correct compiler for correct ParaView version.<br>
<br>
Updating Shared Library Paths: /home/2zr/build/Mantid-PV-398/bin::/home/2zr/build/Mantid-PV-398/bin:/home/2zr/build/Mantid-PV-398/bin/mantid/kernel/../../:/home/2zr/build/Mantid-PV-398/bin/mantid/kernel/../../:/home/2zr/build/Mantid-PV-398/bin/mantid/kernel/../../:/home/2zr/build/Mantid-PV-398/bin/pvplugins/pvplugins<br>
<br>
Plugin instance located successfully. Now loading components from the plugin instance based on the interfaces it implements.<br>
<br>
----------------------------------------------------------------<br>
<br>
Plugin Information:<br>
<br>
Name : QuadView<br>
<br>
Version : 1.0<br>
<br>
ReqOnServer : 1<br>
<br>
ReqOnClient : 1<br>
<br>
ReqPlugins :<br>
<br>
ServerManager Plugin : Yes<br>
<br>
Python Plugin : No<br>
<br>
PV_PLUGIN_PATH: /home/2zr/build/Mantid-PV-398/bin/pvplugins/pvplugins<br>
<br>
<br>
This looks like it's loaded OK to me.<br>
<br>
Cheers,<br>
M<br>
<br>
<br>
On 01/09/2013 03:28 PM, Sebastien Jourdain wrote:<br>
Hi Michael,<br>
<br>
That should work, but please make sure the plugin is properly loaded.<br>
To do so you can set the environment variable PV_PLUGIN_DEBUG=1 and see if the loading is successfully achieved.<br>
<br>
Seb<br>
<br>
<br>
</div></div><div class="im">On Wed, Jan 9, 2013 at 10:26 AM, Michael Reuter <<a href="mailto:reuterma@ornl.gov">reuterma@ornl.gov</a><mailto:<a href="mailto:reuterma@ornl.gov">reuterma@ornl.gov</a>>> wrote:<br>
Hi,<br>
<br>
I'm trying to use the new QuadView from inside our C++ application. I try and create a pqRenderView pointer for the QuadView using pqObjectBuilder::createView("QuadView", pqActiveObjects::instance().activeServer()). I get the following error:<br>
<br>
Failed to create a proxy for the requested view type: "QuadView"<br>
<br>
I thought it might be a plugin loading problem, so I copied it temporarily to where we have our PV_PLUGIN_PATH set so that it gets automatically loaded, but I still get the same error. So, now I'm not sure that it was the plugin not being loaded. What is the correct way to create the view?<br>
<br>
Thanks,<br>
M<br>
<br>
--<br>
Dr. Michael Reuter<br>
Data Analaysis and Visualization Group<br>
Neutron Data Analysis and Visualization Division<br>
Oak Ridge National Laboratory<br>
<br>
</div>Office: <a href="tel:1-865-241-7216" value="+18652417216">1-865-241-7216</a><tel:<a href="tel:1-865-241-7216" value="+18652417216">1-865-241-7216</a>><br>
Fax: <a href="tel:1-865-574-6080" value="+18655746080">1-865-574-6080</a><tel:<a href="tel:1-865-574-6080" value="+18655746080">1-865-574-6080</a>><br>
Email: <a href="mailto:reuterma@ornl.gov">reuterma@ornl.gov</a><mailto:<a href="mailto:reuterma@ornl.gov">reuterma@ornl.gov</a>><br>
<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><<a href="http://www.kitware.com" target="_blank">http://www.kitware.com</a>><br>
<div class="HOEnZb"><div class="h5"><br>
Visit other Kitware open-source projects at <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: <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>
</div></div></blockquote></div><br></div>