[Paraview] paraview plugins and python

Sebastien Jourdain sebastien.jourdain at kitware.com
Wed May 2 11:56:38 EDT 2012


Hi Paul,

it is not a CMake option but a CMake macro/function that need to be
called inside your Plugin CMake file... But I have no clue how, has I
took another path when I solved that exact same problem.
In my case, I simply extended ParaView itself instead of relying on a plugin...

Seb

On Wed, May 2, 2012 at 11:49 AM, Paul Edwards <paul.m.edwards at gmail.com> wrote:
> I'm actually wanting the VTK classes rather than the proxy.
>
> Sebastian: are you referring to the VTK_WRAP_PYTHON_SIP option?  I don't
> have that enabled atm but could try...
>
> Thanks,
> Paul
>
>
> On 2 May 2012 16:43, Andy Bauer <andy.bauer at kitware.com> wrote:
>>
>> I'm not sure this is what you're looking for but the proxy does get
>> wrapped such that it's available through pvpython and pvbatch.  When you
>> load the plugin, do "LoadPlugin("<shared lib location>", True, globals())"
>> and it should be available.  If you're want the actual VTK class to by
>> python wrapped, I think Sebastien is correct though.
>>
>> Andy
>>
>>
>> On Wed, May 2, 2012 at 11:32 AM, Sebastien Jourdain
>> <sebastien.jourdain at kitware.com> wrote:
>>>
>>> Hi Paul,
>>>
>>> your vtk class are not "python" wrapped automatically when provided
>>> from plugin. But you might be able to use a CMake macro that has been
>>> defined in ParaView to force your vtk classes to be Python wrapped.
>>> Although, I'm not fully certain that will just work.
>>> Unfortunately I don't have much insight on where to look.
>>>
>>> Dave DeMarle might be able to point you to the right direction...
>>>
>>> Seb
>>>
>>> On Wed, May 2, 2012 at 10:56 AM, Paul Edwards <paul.m.edwards at gmail.com>
>>> wrote:
>>> > Hi,
>>> >
>>> > Do my VTK classes get wrapped when I create a paraview plugin?  If so,
>>> > how
>>> > do I access them? And, if not, is it possible to do this?
>>> >
>>> > Thanks,
>>> > Paul
>>> >
>>> > _______________________________________________
>>> > 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