From graphics-request at octave dot org Sat Jul 17 20:56:47 2004 Subject: Re: Octave bindings for GTK+ From: Paul Kienzle To: Muthiah Annamalai Cc: graphics at octave dot org Date: Sat, 17 Jul 2004 21:55:34 -0400 You should be able to find some pre-existing work on the octave mailing list archives (searchable version at http://www.octave.org) since this was done a number of years ago. The hardest trick is to integrate the event loops, or alternatively, keep them in separate threads or apps and have them communicate. Additionally, look at Dragan Tubic's octaviz at http://octaviz.sf.net. We spent some time making a clever object-oriented interface to the VTK widget set. Such a thing could easily be done for GTK, wxWindows, FLTK, Qt, ... as well. Paul Kienzle pkienzle at users dot sf dot net On Jul 17, 2004, at 1:33 PM, Muthiah Annamalai wrote: > Greetings to the Octave Community. > Im planning to extend Octave with GTK+ support. > > GNU Octave, is the scientific computation tool that is > used for BLAS & Linear algebraic computations. > > Currently GNU Octave exists as a an interpreter > written in C++, with support for a language Octave > much similar to the language like Matlab. > > However it has severe limitation of not being able > to integrate a GUI framework for Octave, and remains > tied down to the simple Text UI. > > Im in looking forward to positively write a {GTK+ [or] GTK#} binding > for Octave. Please help me by suggesting the steps in > doing so. All useful pointers, code and samples are welcome. > > Adding GTK+ to octave would definitely add teeth to Octave > by giving GUI+Scientific computation together like Matlab does. > > In the view of the above idea, I would like to know how language > bindings work & how I could use the GTK+ accessible from Octave. > Octave, for the record *does not* support call by reference. > I have looked into the way Matlab does work around this. > Its costly, but it passes around the values of the *all widgets* > to all the function-callbacks registered with the system on compiletime > and uses a lot of global variables. > > I have Octave sources, GTK+2.4 & pyGTK GtkLisp binding code. > > Greetings to the GTK Community. > GNU Octave, as most you will be familiar with, > is the scientific computation tool that is > used for BLAS & Linear algebraic computations. > > Currently GNU Octave exists as a an interpreter > written in C++, with support for a language Octave > much similar to the language like Matlab. > > However it has severe limitation of not being able > to integrate a GUI framework for Octave, and remains > tied down to the simple Text UI. > > Im in looking forward to positively write a {GTK+ [or] GTK#} binding > for Octave. Please help me by suggesting the steps in > doing so. All useful pointers, code and samples are welcome. > > Adding GTK+ to octave would definitely add teeth to Octave > by giving GUI+Scientific computation together like Matlab does. > > In the view of the above idea, I would like to know how language > bindings work & how I could use the GTK+ accessible from Octave. > Octave, for the record *does not* support call by reference. > I have looked into the way Matlab does work around this. > Its costly, but it passes around the values of the *all widgets* > to all the function-callbacks registered with the system on compiletime > and uses a lot of global variables. > > I have Octave sources, GTK+2.4 & pyGTK GtkLisp binding code. > They have used 'lisp' variant 'scheme' for some 'defs'. > How does it work to connect GTK+ from a language like Octave? > Please guide me with some pointers to related data. > I have posted this mail to the GTK# list earlier & > the GTK language-bindings list. > > Thanks in Advance. > Cheers > Muthu. > > Life is beautiful. > http://cybernetics.freewebspace.com > > ------------------------------------------------- > This mail sent through IMP(http://www.nitt.edu) >