Closed coliss86 closed 2 years ago
I suspect the generate art menu is supposed to modal (blocking everything until closed). the challenge is that I still want to move around the canvas and look at the art. so simply making the dialog box modal is too aggressive.
For me this is due to the fact that at each generation the Makelangelo class propertie Turtle myTurtle is affected with a new instance of a Turtle.
and with
the PlotterControls work/keep a reference to the Turtle instance used at it creation.
so unless recreating the PlotterControls (close it to reopen it) you are working with a posible "outdated" Turtle instance.
To solve this, the only way i see for the moment, is somthing like a ChangeListener paterne to force the PlotterControls to change/update the Turtle is using.
PlotterControls have to do something like "myTurtle=Makelangelo.getTortle();" when reciving a change event ( that the class Makelangelo will have to "fire" at the end of this setMyTurtle() ...)
(But for me this could be the time to think on creating a kind of Turtle generation history/layer ... i would like to cumulate multiple Turtle generation on the same "page"/g-code without having to merge / modify g-code files ... )
The concept of layers, each with a single turtle, has crossed my mind... I think if you get to the stage where you need a multi-layer drawing tool you should make your art in Inkscape and then bring it to makelangelo software as an SVG. Our time would be better spent trying to add missing SVG features like filling closed shapes.
You are right ! focusing on the basics that are missing or bug seems more reasonable. (Sorry ! I was dreaming out loud. :) And yes inkscape is a way ... I just need to train myself to use it...)
The reason plotter control keeps a copy of the turtle is so that you cannot change the turtle while drawing connected to USB. the results would be... unpredictable. In fact, you shouldn't be able to hit "new" while in the plotter control dialog.
Following the steps in the OP I have this:
Fibonacci was drawn second, fwiw. New cleared the screen ok. As before... being able to move the view around means that you can have more than one panel open. this is annoying but unavoidable.
Hum, I see. What do you think if all the menus get disabled when the plotter control is open ?
bcc9b820 like this?
good job !
So.... does that mean the ticket is closed?
Steps to make the bug happen
What was supposed to happen The second art should be drawn
Platform (please complete the following information):
Log file log.txt
Additional context