<div dir="ltr">On Wed, May 8, 2013 at 4:53 AM, Mario Rodriguez <span dir="ltr"><<a href="mailto:biomates@telefonica.net" target="_blank">biomates@telefonica.net</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
<br>
I'd like to ask if it is possible to make 2D graphics using tcl scripts.<br>
I couldn't find any examples anywhere.<br>
<br>
I use vtk for drawing 3D scenes from the computer algebra system Maxima<br>
(<a href="http://riotorto.users.sourceforge.net/vtk" target="_blank">http://riotorto.users.sourceforge.net/vtk</a> ) and I want to extend this<br>
ability to 2D.<br>
<br>
Any help in this direction would be of great help.<br><br></blockquote><div style>It would be helpful to know a little more about what types of 2D you are interested in. We do not have any tests written in Tcl for the charts, but they are wrapped and should work. They Python tests should give a reasonable guide on how the same might be done, and this would give you 2D charts and a scene that you could build things on.</div>
<div style><br></div><div style>The underlying 2D API is not wrapped in a way that it can be easily used from any of the wrapped layers as far as I know - i.e. I don't think you can derive from vtkContextItem and implement the Paint method using calls to render 2D geometry etc.</div>
<div style><br></div><div style>Thanks,</div><div style><br></div><div style>Marcus</div></div></div></div>