Delgine 3D Tools & Content DeleD Community Edition
Forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Redo

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    DeleD Community Edition Forum Index -> DeleD Feature Requests
View previous topic :: View next topic  
Author Message
LIONCode
DeleD PRO user


Joined: 27 Feb 2007
Posts: 16
Location: Netherlands

PostPosted: Thu Mar 08, 2007 8:16 am    Post subject: Redo Reply with quote

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 Smile
_________________
Dennis Taapken

http://www.lioncode.com
Back to top
View user's profile Send private message Visit poster's website
Nocturn
DeleD PRO user


Joined: 08 Aug 2004
Posts: 635

PostPosted: Thu Mar 08, 2007 12:13 pm    Post subject: Reply with quote

Well, Redo are very complex to implement. It isn't that easy.
Back to top
View user's profile Send private message
LIONCode
DeleD PRO user


Joined: 27 Feb 2007
Posts: 16
Location: Netherlands

PostPosted: Thu Mar 08, 2007 12:20 pm    Post subject: Reply with quote

Actually it is not that complex. There is even a nice design pattern for it, which makes the job very easy Smile

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
View user's profile Send private message Visit poster's website
Jeroen
Site Admin


Joined: 07 Aug 2004
Posts: 5332
Location: The Netherlands

PostPosted: Thu Mar 08, 2007 1:30 pm    Post subject: Reply with quote

LIONCode wrote:
Actually it is not that complex. There is even a nice design pattern for it, which makes the job very easy Smile

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
View user's profile Send private message Send e-mail Visit poster's website
LIONCode
DeleD PRO user


Joined: 27 Feb 2007
Posts: 16
Location: Netherlands

PostPosted: Thu Mar 08, 2007 1:41 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Daaark
DeleD PRO user


Joined: 01 Sep 2004
Posts: 2696
Location: Ottawa, Canada

PostPosted: Thu Mar 08, 2007 1:45 pm    Post subject: Reply with quote

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... Laughing
_________________
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
LIONCode
DeleD PRO user


Joined: 27 Feb 2007
Posts: 16
Location: Netherlands

PostPosted: Thu Mar 08, 2007 2:01 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Paul-Jan
Site Admin


Joined: 08 Aug 2004
Posts: 3066
Location: Lage Zwaluwe

PostPosted: Fri Mar 09, 2007 6:55 pm    Post subject: Reply with quote

Straight from the GoF Very Happy. 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
View user's profile Send private message Visit poster's website
LIONCode
DeleD PRO user


Joined: 27 Feb 2007
Posts: 16
Location: Netherlands

PostPosted: Fri Mar 09, 2007 7:01 pm    Post subject: Reply with quote

That is probably very true Smile

I will email with Jeroen to find out what a redo for DeleD would take.
_________________
Dennis Taapken

http://www.lioncode.com
Back to top
View user's profile Send private message Visit poster's website
Jeroen
Site Admin


Joined: 07 Aug 2004
Posts: 5332
Location: The Netherlands

PostPosted: Sun Apr 08, 2007 3:00 pm    Post subject: Reply with quote

Although I have not implemented Redo in the way Lioncode explained, Redo will be vailable in the next version of DeleD! Smile
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    DeleD Community Edition Forum Index -> DeleD Feature Requests All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum