Commit Graph

11 Commits (16b5f6db25ae473777b5969c2df3c2e5b6c18f2d)

Author SHA1 Message Date
Guillaume Seguin 16b5f6db25 Cleanup some code
Not sure about that dropping of the self.gwindow.Destroy try block, we'll see
2013-05-18 11:05:45 +02:00
Guillaume Seguin 0920bc6e97 Greatly improve resizing behavior of GViz windows 2013-05-16 15:57:18 +02:00
Guillaume Seguin db04449a2b Cleanup and speedup gviz
This commit mostly removes unused code and cleans some things up.
The main contribution is that instead of calling repaint() and Refresh(), we
now only mark the canvas as dirty and call Refresh(), which will do the repaint
just-in-time. This speeds things a lot when quickly changing layers or zooming,
as it does not repaint once per keyboard/mouse event but once per actual
Refresh, which makes it much smoother.
2013-05-16 15:31:32 +02:00
Guillaume Seguin 260d65643c Fix gviz.py __main__ 2013-05-16 15:06:48 +02:00
Guillaume Seguin 4b372f5686 Speedup full file gcode loading in printrun/gviz.py
FWIW, on my test system with my test GCode loading time goes down from 5.7s to
2.3s between b3a673bc97 and this commit, that's almost 60% gone.
However, there is still a lot of room for functional improvements :
- I don't think the roundtrip through the target array is useful
- There's no handling of relative coordinates (neither for position nor for e)
- The arcs drawing code might be wrong
- The stlview bits are not enabled and probably have to be looked at and updated
2013-05-16 14:05:28 +02:00
Guillaume Seguin a46f73595e Use GCoder parsed gcode in gviz 2013-05-15 22:44:59 +02:00
Christopher Keller a868e571f3 Fixed bug that caused divide by zero error if main gviz window was sized too small. 2012-09-05 02:21:02 -07:00
Guillaume Seguin 6f446e3726 More automated cleanup 2012-08-08 09:58:09 +02:00
Guillaume Seguin 77eb2440e3 Semi-automated coding style cleanup 2012-08-08 09:38:48 +02:00
Guillaume Seguin 8cc134955f Run reindent.py on the whole repository 2012-08-08 08:39:50 +02:00
Guillaume Seguin 888143be42 Initial work towards a setup.py build system 2012-07-31 10:51:17 +02:00