currently im faced with a big problem. I have a app, which lets the user create many components (e.g. rectangles, ellipses) in a short time!
I cannot post the entire code, because it is too much! You can imagine it as follow:
The user picks a component (e.g. rectangle), now lets say he can click a button and will have several hundrets of the exact same dimensions at random positions.
As you my guess, the more copies, the more my app gets sluggish!
What would be you recommendations for creating the copies!
No interaction with the copies, the only thing is, when the dimensions of the original are modified all other should be modified as well! Same with the rotation!
What i actually do is, something like the following:
for(MTPolygon t : copies)
This is of cause a very expensive call, so it is just called, when a modification has taken place.
In case that i do not need any interaction with the copies, they must just once drawn and stay at their position!
I also tried is use the setClear(false) method of the scene the objects live in! Maybe this is already the right way to do this, but i just dont want to miss a easy soltuion for this, that i do not know yet!
I already studied the documentation of coressponding classes! When doing this that way, the copies cannot be rotated on the fly!!
What is your opinion of storing the positioning data, the dimension data, the shapes count, the rotation angle and drawing everything from new, if a modfication has taken place!
I do not know, if this is more effective??
Mabe someone has an idea??
I would appreciate for any hint!!