View previous topic :: View next topic |
Author |
Message |
LIONCode DeleD PRO user
Joined: 27 Feb 2007 Posts: 16 Location: Netherlands
|
Posted: Thu Mar 08, 2007 8:16 am Post subject: Redo |
|
|
It would be nice if there would be a redo as well as an undo. Sometimes i go back to much steps and want to the last step back in. Should not be a big item to add _________________ Dennis Taapken
http://www.lioncode.com |
|
Back to top |
|
|
Nocturn DeleD PRO user
Joined: 08 Aug 2004 Posts: 635
|
Posted: Thu Mar 08, 2007 12:13 pm Post subject: |
|
|
Well, Redo are very complex to implement. It isn't that easy. |
|
Back to top |
|
|
LIONCode DeleD PRO user
Joined: 27 Feb 2007 Posts: 16 Location: Netherlands
|
Posted: Thu Mar 08, 2007 12:20 pm Post subject: |
|
|
Actually it is not that complex. There is even a nice design pattern for it, which makes the job very easy
I am a fulltime software developer and have implemented this type of thing several times. It is really not that big of a deal.
Anyway if it is not easy to add i am fine with it, but i see it as a nice feature which makes DeleD more conform standards. _________________ Dennis Taapken
http://www.lioncode.com |
|
Back to top |
|
|
Jeroen Site Admin
Joined: 07 Aug 2004 Posts: 5332 Location: The Netherlands
|
Posted: Thu Mar 08, 2007 1:30 pm Post subject: |
|
|
LIONCode wrote: |
Actually it is not that complex. There is even a nice design pattern for it, which makes the job very easy
I am a fulltime software developer and have implemented this type of thing several times. It is really not that big of a deal.
Anyway if it is not easy to add i am fine with it, but i see it as a nice feature which makes DeleD more conform standards. |
I'm very interested in hearing your approach. Feel free to email me personally to discuss things as ReDo is definately a nice addition (it has been asked for before too). |
|
Back to top |
|
|
LIONCode DeleD PRO user
Joined: 27 Feb 2007 Posts: 16 Location: Netherlands
|
Posted: Thu Mar 08, 2007 1:41 pm Post subject: |
|
|
OK. I will make a nice doc explaining a great way of doing undo/redo and send it to you. Because of my planning i will probably not come around to this, until the weekend. _________________ Dennis Taapken
http://www.lioncode.com |
|
Back to top |
|
|
Daaark DeleD PRO user
Joined: 01 Sep 2004 Posts: 2696 Location: Ottawa, Canada
|
Posted: Thu Mar 08, 2007 1:45 pm Post subject: |
|
|
Don't you just step through an array of changes? Everytime you make a change, you save the scene state to the array (and knock out an old entry)... then redo is moving forward, and undo is moving backwards?
Clueless, just wondering... _________________
|
|
Back to top |
|
|
LIONCode DeleD PRO user
Joined: 27 Feb 2007 Posts: 16 Location: Netherlands
|
Posted: Thu Mar 08, 2007 2:01 pm Post subject: |
|
|
Well yes you can do it like that. But that will take a lot of memory as you will need to remember all states. Another method is to create 'atomic' command objects, which is much better. This object can undo and redo a small thing like (add vertex, change texture, etc.). Undoing and redoing is then nothing else then to call the undo or redo method of the object. All these objects are on one stack and you can undo all the changes and go back again by redoing all changes. _________________ Dennis Taapken
http://www.lioncode.com |
|
Back to top |
|
|
Paul-Jan Site Admin
Joined: 08 Aug 2004 Posts: 3066 Location: Lage Zwaluwe
|
Posted: Fri Mar 09, 2007 6:55 pm Post subject: |
|
|
Straight from the GoF . While nice and clean to implement from scratch, refactoring the existing DeleD code to fit this particular pattern is not exactly a breeze. |
|
Back to top |
|
|
LIONCode DeleD PRO user
Joined: 27 Feb 2007 Posts: 16 Location: Netherlands
|
Posted: Fri Mar 09, 2007 7:01 pm Post subject: |
|
|
That is probably very true
I will email with Jeroen to find out what a redo for DeleD would take. _________________ Dennis Taapken
http://www.lioncode.com |
|
Back to top |
|
|
Jeroen Site Admin
Joined: 07 Aug 2004 Posts: 5332 Location: The Netherlands
|
Posted: Sun Apr 08, 2007 3:00 pm Post subject: |
|
|
Although I have not implemented Redo in the way Lioncode explained, Redo will be vailable in the next version of DeleD! |
|
Back to top |
|
|
|