| TouchVG framework
    | 
Helper class for recording shapes. 更多...
#include <recordshapes.h>
| 类 | |
| struct | Impl | 
| Public 类型 | |
| enum | { ADD = 1, EDIT = 2, DEL = 4, DYN = 8, DOC_CHANGED = 1, SHAPE_APPEND = 2, DYN_CHANGED = 4 } | 
| Public 成员函数 | |
| MgRecordShapes (const char *path, MgShapeDoc *doc, bool forUndo, long curTick) | |
| ~MgRecordShapes () | |
| long | getCurrentTick (long curTick) const | 
| bool | recordStep (long tick, long changeCountOld, long changeCountNew, MgShapeDoc *doc, MgShapes *dynShapes, const std::vector< MgShapes *> &extShapes) | 
| std::string | getFileName (bool back, int index) const | 
| std::string | getPath () const | 
| bool | isLoading () const | 
| void | setLoading (bool loading) | 
| bool | onResume (long ticks) | 
| void | restore (int index, int count, int tick, long curTick) | 
| void | stopRecordIndex () | 
| bool | canUndo () const | 
| bool | canRedo () const | 
| bool | undo (MgShapeFactory *factory, MgShapeDoc *doc, long *changeCount) | 
| bool | redo (MgShapeFactory *factory, MgShapeDoc *doc, long *changeCount) | 
| void | resetDoc (MgShapeDoc *doc) | 
| int | getMaxFileCount () const | 
| bool | isPlaying () const | 
| int | getFileTick () const | 
| int | getFileFlags () const | 
| int | getFileCount () const | 
| bool | applyFirstFile (MgShapeFactory *factory, MgShapeDoc *doc) | 
| bool | applyFirstFile (MgShapeFactory *factory, MgShapeDoc *doc, const char *filename) | 
| int | applyRedoFile (MgShapeFactory *f, MgShapeDoc *doc, MgShapes *dyns, int index) | 
| int | applyUndoFile (MgShapeFactory *f, MgShapeDoc *doc, MgShapes *dyns, int index, long curTick) | 
| 静态 Public 成员函数 | |
| static bool | loadFrameIndex (std::string path, std::vector< int > &arr) | 
| 静态 Private 成员函数 | |
| static int | applyFile (int &tick, MgShapeFactory *f, MgShapeDoc *doc, MgShapes *dyns, const char *fn, long *changeCount=NULL, MgShape *lastShape=NULL) | 
| Private 属性 | |
| Impl * | _im | 
Helper class for recording shapes.