[vtk-developers] Charts in VTK and ParaView

Eric E. Monson emonson at cs.duke.edu
Tue Mar 9 11:34:43 EST 2010


Hey Marcus,

The only thing I've noticed so far that doesn't match up with the other wrapped modules is that you need an extra section towards the end of [VTK]/Wrapping/Python/CMakeLists.txt file that defines VTK_PYTHON_USE_CHARTS like:

IF(VTK_USE_CHARTS)
  SET(VTK_PYTHON_USE_CHARTS 1)
ELSE(VTK_USE_CHARTS)
  SET(VTK_PYTHON_USE_CHARTS 0)
ENDIF(VTK_USE_CHARTS)

and then add a line to setup.py.in that uses that variable:

vtk_use_charts = @VTK_PYTHON_USE_CHARTS@

I think you covered the rest of the bases.
-Eric


On Mar 9, 2010, at 10:50 AM, Marcus D. Hanwell wrote:

> Hi Eric,
> 
> I committed some improvements, now from the build directory I can run vtkpython and import vtk.charts. There is probably more to do still, and I would appreciate feedback on how well this is working. I may not have caught all of the install rules, and need to look into doing the same for Tcl and Java. I thought more of this was automated...
> 
> The changes were made in VTK/Wrapping/Python, and are in HEAD now.
> 
> Marcus
> 
> On Tue, Mar 9, 2010 at 10:13 AM, Eric E. Monson <emonson at cs.duke.edu> wrote:
> Hey Marcus,
> 
> Okay, I'm seeing it more clearly now. (It was probably too late in the afternoon yesterday...) It looks like it's wrapped, but just not installed along with the other python libraries in the VTK module. 
> 
> I'll play around with it and see if I can get it up and running. Let me know if you or someone else gets it working there.
> 
> Thanks,
> -Eric
> 
> 
> On Mar 9, 2010, at 9:49 AM, Marcus D. Hanwell wrote:
> 
>> Hi Eric,
>>  
>> I will look into this, I know that they are wrapped in Python, but I think there is a little bit of Python code I need to add in order to make it follow the same semantics as other modules. How are you trying to import the module in Python?
>> 
>> They are also exposed in ParaView (both marked experimental in the views right now).
>> 
>> Thanks,
>> 
>> Marcus
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20100309/b3dc3044/attachment.html>


More information about the vtk-developers mailing list