[Paraview] QuadView from C++

Sebastien Jourdain sebastien.jourdain at kitware.com
Thu Jan 10 08:58:37 EST 2013


Interesting, thanks for sharing the answer of your issue.


On Thu, Jan 10, 2013 at 8:56 AM, Reuter, Michael A. <reuterma at ornl.gov>wrote:

> 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.
>
> Cheers,
> M
>
>
> From: Sebastien Jourdain <sebastien.jourdain at kitware.com<mailto:
> sebastien.jourdain at kitware.com>>
> Date: Wednesday, January 9, 2013 8:36 PM
> To: Michael Reuter <reuterma at ornl.gov<mailto:reuterma at ornl.gov>>
> Subject: Re: [Paraview] QuadView from C++
>
> You right...
> That will need further investigation, has it should work the way you were
> using it.
> Although could you help me to figure that out ?
>
> Could you attach a debugger to "pqObjectBuilder::createView(const QString&
> type,  pqServer* server)"
> and have the list of values viewTypes() that are available to you ?
>
> Or if you prefer, you can edit the code to print out the different
> viewTypes available on your end.
>
> pqView* pqObjectBuilder::createView(const QString& type,  pqServer* server)
> {
>   ...
>   foreach(pqViewModuleInterface* vmi, ifaces)
>     {
>     if (vmi && vmi->viewTypes())
>      {
>       qDebug() << vmi->viewTypes();
>      }
>     ...
>
> Thanks,
>
> Seb
>
>
> On Wed, Jan 9, 2013 at 4:20 PM, Michael Reuter <reuterma at ornl.gov<mailto:
> reuterma at ornl.gov>> wrote:
> Hi Seb,
>
>     After setting the environmental variable and searching the message
> dialog, I find:
>
>
> ***************************************************
>
> Attempting to load
> /home/2zr/build/Mantid-PV-398/bin/pvplugins/pvplugins/libQuadView.so
>
> Loaded shared library successfully. Now trying to validate that it's a
> ParaView plugin.
>
> Plugin's signature: paraviewplugin|GNU|3.98
>
> Plugin signature verification successful. This is definitely a ParaView
> plugin compiled with correct compiler for correct ParaView version.
>
> 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
>
> Plugin instance located successfully. Now loading components from the
> plugin instance based on the interfaces it implements.
>
> ----------------------------------------------------------------
>
> Plugin Information:
>
> Name : QuadView
>
> Version : 1.0
>
> ReqOnServer : 1
>
> ReqOnClient : 1
>
> ReqPlugins :
>
> ServerManager Plugin : Yes
>
> Python Plugin : No
>
> PV_PLUGIN_PATH: /home/2zr/build/Mantid-PV-398/bin/pvplugins/pvplugins
>
>
> This looks like it's loaded OK to me.
>
> Cheers,
> M
>
>
> On 01/09/2013 03:28 PM, Sebastien Jourdain wrote:
> Hi Michael,
>
> That should work, but please make sure the plugin is properly loaded.
> To do so you can set the environment variable PV_PLUGIN_DEBUG=1 and see if
> the loading is successfully achieved.
>
> Seb
>
>
> On Wed, Jan 9, 2013 at 10:26 AM, Michael Reuter <reuterma at ornl.gov<mailto:
> reuterma at ornl.gov>> wrote:
> Hi,
>
>     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:
>
> Failed to create a proxy for the requested view type: "QuadView"
>
> 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?
>
> Thanks,
> M
>
> --
> Dr. Michael Reuter
> Data Analaysis and Visualization Group
> Neutron Data Analysis and Visualization Division
> Oak Ridge National Laboratory
>
> Office: 1-865-241-7216<tel:1-865-241-7216>
> Fax: 1-865-574-6080<tel:1-865-574-6080>
> Email: reuterma at ornl.gov<mailto:reuterma at ornl.gov>
>
> _______________________________________________
> Powered by www.kitware.com<http://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
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20130110/2ad664a6/attachment-0001.htm>


More information about the ParaView mailing list