TouchVG framework
| Public 类型 | Public 成员函数 | 静态 Public 成员函数 | 静态 Private 成员函数 | Private 属性 | 所有成员列表
MgRecordShapes类 参考

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.


该类的文档由以下文件生成:

通用矢量图形框架, 版权所有 (C) 张云贵 2004-2017,BSD 开源许可证