[Paraview] how Python interact with ParaView

David E DeMarle dave.demarle at kitware.com
Thu Mar 18 08:04:20 EDT 2010


>
>
> PS: Boost.Python seems to be capable of enabling Python to invoke C++
methods.Does ParaView use Boost.Python ?

It does not. For completeness you should also investigate swig which is the
standard for doing that.

But ParaView uses neither of those. Instead it has its own (older) wrapping
technology, which is the same technology at work in Tcl, Java and Python
wrapped VTK, and also behind the wrapping into ParaView's own client server
language. The idea is the same behind all of them, cmake scripts that drive
a lex/yacc based executable that parses VTK C++ header files to create code
that can instantiate VTK classes and then call public methods on those
instances. See http://www.vtk.org/Wiki/VTK/Python_Wrapping_FAQ for more
information. But you will have to read the code to learn the details.

Once wrapped, python scripts can call into ParaView's C++ servermanager API
just like the standard C++ client does once they have loaded the wrapped
ParaView libraries.


Thanks a lot.
>
> -Ning
>
> _______________________________________________
> 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20100318/84b0caf8/attachment.htm>


More information about the ParaView mailing list