[vtkusers] vtkChartXY + setTitle + Tcl

Mario Rodriguez biomates at telefonica.net
Sat Dec 26 12:07:13 EST 2015



El 26/12/15 a las 00:08, Jorge Perez escribió:
> Hello Mario,

Hello Jorge,

> not all method are exported (wrapped) to Tcl. The Tcl wrapping 
> capability is not receiving attention (only python). The method 
> SetTitle that you are mentioning is one of those methods.

This is bad news for our project.

>
> When I need to invoke a method which is not wrapped what I usually do 
> is implement (in C++) a helper procedure to invoke that method. 
> Attached you can find an example which expose the SetTitle method for 
> an object of class vtkAxis.
> ....
> If you find this approach useful, I can provide you a full code (based 
> on CMake) to create the tcl library to expose the method you are needing.

Thanks, but this is not a viable solution, at least for the moment. Our 
program must be build with any Common Lisp compiler and end users should 
only care on satisfying some additional dependencies (Tcl, Gnuplot, 
VTK). For the moment, as I see it, we have two alternatives:

a) Make 2d plots with vtkChartXY without the ability of changing axes 
labels and title, waiting for a better Tcl support in Vtk, or
b) Use vtkXYPlotActor instead. I have some vtkXYPlotActor examples 
worked out with Tcl which work fine with strings.

At this moment, I am in favor of a).

Since Maxima (maxima.sf.net) became GNU-GPL, we have used Gnuplot as our 
common graphics renderer. The problem is that Gnuplot is not good at 3D 
modeling, and that's why I started to work with Vtk. People is now 
interested in using Maxima together with Vtk, and I'd like to offer end 
users the possibility of 2D graphics with Vtk with the same Maxima 
syntax used for Gnuplot.

Kind regards, and thanks again for your clarifications.

--
Mario


More information about the vtkusers mailing list