#include <TridUndoable.h>
Public Member Functions | |
| TridUndoable (int max=100) | |
| ~TridUndoable () | |
| void | Push () |
| void | Change () |
| void | Undo () |
| void | Redo () |
Protected Attributes | |
| unsigned int | fIndex |
| unsigned int | fMax |
| std::deque< STATECLASS > | fStack |
|
||||||||||
|
Definition at line 16 of file TridUndoable.h.
|
|
|||||||||
|
Definition at line 17 of file TridUndoable.h. 00017 {};
|
|
|||||||||
|
Definition at line 28 of file TridUndoable.h.
|
|
|||||||||
|
Definition at line 20 of file TridUndoable.h. Referenced by TridUndoable< TridPOV >::Change(), TridGLFrame::HandleMotion(), TridFlatGLFrame::HandleMotion(), and TridGLFrame::SetPOV(). 00020 {
00021 while(fIndex>0) { fStack.pop_front(); fIndex--; }; // Get rid of history after this one.
00022 fStack.push_front(STATECLASS(*this)); // Push it on.
00023 while(fStack.size()>fMax) { fStack.pop_back(); }; // Clean up if we're too big.
00024 };
|
|
||||||||||
|
Definition at line 40 of file TridUndoable.h.
|
|
||||||||||
|
Definition at line 33 of file TridUndoable.h. 00033 {
00034 if((fIndex+1)<fStack.size()) {
00035 fIndex++;
00036 Copy(fStack[fIndex]);
00037 }
00038 }
|
|
|||||
|
Definition at line 46 of file TridUndoable.h. |
|
|||||
|
Definition at line 47 of file TridUndoable.h. |
|
|||||
|
Definition at line 48 of file TridUndoable.h. |
1.3.9.1