Just spent some time grepping around my SVN clone for MGED GUI menu
strings, and found:
src/tclscripts/mged/openw.tcl
not sure how (does C call Tcl, or Tcl call C?) it ties with:
src/mged/

but after Googling "brlcad tcl gui" I got a few good hits:
http://nikit.tcl.tk/page/BRL-CAD
http://brlcad.org/wiki/Convert_MGED_from_Tk_to_Qt

the last one has a lot of good pointers, I have done some basic
playing around with pyQT in the past, but mostly have worked with
wxPython and Tk is easy enough in Python too.

I'll take a look at the Tcl scripts and qged too... maybe I can figure
out how to add in a scripting/text console and some buttons for click
and drag-n-drop shape creation...

On Tue, Dec 19, 2017 at 5:19 PM, Nathan McCorkle <nmz...@gmail.com> wrote:
> so I really want to make a nice GUI to control some aspects of my
> parametric Python scripting for BRL-CAD... but I am not sure how to
> approach it
> https://github.com/nmz787/python-brlcad-tcl
>
> basically I want the GUI for 2 things:
>   * controls to create new segments of Python code (i.e. for a sphere
> or other primitives)
>   * view/refresh the Python-generated BRLCAD database objects
>     * control the elements on-screen, rotate, zoom, hide certain objects
>
> currently my hack is to use mged to produce a png... then display that
> png file in a GUI image widget in Python/tkinter... but obviously I
> could probably /somehow/ use the actual C++ GUI stuff BRL-CAD already
> has
>
> I'm just not sure where the path of least resistance is... I can code
> in C/C++ (and do so for work) but I really am much much more
> productive in Python.... so I'd like to keep as much of the GUI view
> stuff in Python as possible, since it's obviously less important than
> the actual critical rendering code, and people will want to customize
> the GUI much much more than the backend.
>
> But yeah, my PNG file hack is pretty slow to i.e. rotate a part
> on-screen... not intolerable, but it reminds me of scenes from movies
> from the 1980s where they are doing CAD on some ancient PC
>
>
> Any ideas/advice/pointers/guidance would be appreciated,
> thanks,
> -Nathan



-- 
-Nathan

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
BRL-CAD Users mailing list
brlcad-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/brlcad-users

Reply via email to