Re: [Paraview] paraview plugins and python

2012-05-22 Thread Paul Edwards
Is there a way here to get the python include directory that was used by VTK? i.e. in the wrap_python function I need the following lines: include_directories(${library_name}PythonD ${PYTHON_INCLUDE_DIR}) include_directories(${library_name}Python ${PYTHON_INCLUDE_DIR}) But, I'm not sure

Re: [Paraview] paraview plugins and python

2012-05-22 Thread Paul Edwards
Ok, found the solution - VTK_PYTHON_INCLUDE_DIR Sorry for the noise! On 22 May 2012 18:22, Paul Edwards paul.m.edwa...@gmail.com wrote: Is there a way here to get the python include directory that was used by VTK? i.e. in the wrap_python function I need the following lines:

[Paraview] paraview plugins and python

2012-05-02 Thread Paul Edwards
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

Re: [Paraview] paraview plugins and python

2012-05-02 Thread Sebastien Jourdain
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

Re: [Paraview] paraview plugins and python

2012-05-02 Thread Paul Edwards
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.ba...@kitware.com wrote: I'm not sure this is what you're looking for

Re: [Paraview] paraview plugins and python

2012-05-02 Thread Sebastien Jourdain
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,

Re: [Paraview] paraview plugins and python

2012-05-02 Thread Pat Marion
This will do it: # CMakeLists.txt include(wrap-python.cmake) add_paraview_plugin(${library_name} ...) target_link_libraries(${library_name} ${deps}) if(VTK_WRAP_PYTHON) wrap_python(${library_name} ${sources}) endif() # wrap-python.cmake if(NOT DEFINED VTK_CMAKE_DIR) message(SEND_ERROR