|
TouchVG framework
|
命令管理器接口 更多...
#include <mgcmdmgr.h>

Public 成员函数 | |
| virtual bool | registerCommand (const char *name, MgCommand *(*creator)())=0 |
| 注册外部命令, 为NULL则取消注册 更多... | |
| virtual const char * | getCommandName () const =0 |
| 得到当前命令名称 更多... | |
| virtual const char * | getCommandName (int index) const =0 |
| 得到指定序号命令的名称 更多... | |
| virtual | ~MgCmdManager () |
| virtual void | release ()=0 |
| 销毁管理器 更多... | |
| virtual MgCommand * | getCommand () const =0 |
| 得到当前命令 更多... | |
| virtual MgCommand * | findCommand (const char *name)=0 |
| 查找命令 更多... | |
| virtual bool | setCommand (const MgMotion *sender, const char *name, MgStorage *s)=0 |
| 启动命令 更多... | |
| virtual bool | switchCommand (const MgMotion *sender)=0 |
| 切换到下一命令 更多... | |
| virtual bool | cancel (const MgMotion *sender)=0 |
| 取消当前命令 更多... | |
| virtual void | unloadCommands ()=0 |
| 退出时卸载命令 更多... | |
| virtual int | getNewShapeID () const =0 |
| 返回新绘图形的ID 更多... | |
| virtual void | setNewShapeID (int sid)=0 |
| 设置新绘图形的ID 更多... | |
| virtual float | displayMmToModel (float mm, GiGraphics *gs) const =0 |
| 返回屏幕毫米长度对应的模型长度,在命令显示函数中使用 更多... | |
| virtual float | displayMmToModel (float mm, const MgMotion *sender) const =0 |
| 返回屏幕毫米长度对应的模型长度 更多... | |
| virtual int | getSelection (MgView *view, int count, const MgShape **shapes)=0 |
| 得到当前选择的图形 更多... | |
| virtual int | getSelectionForChange (MgView *view, int count, MgShape **shapes)=0 |
| 得到当前选择的图形的临时图形,用于修改 更多... | |
| virtual bool | dynamicChangeEnded (MgView *view, bool apply)=0 |
| 结束动态修改,提交或放弃所改的临时图形 更多... | |
| virtual MgSelection * | getSelection ()=0 |
| 返回选择集对象,可能为NULL 更多... | |
| virtual MgActionDispatcher * | getActionDispatcher ()=0 |
| 返回上下文动作分发对象 更多... | |
| virtual bool | doContextAction (const MgMotion *sender, int action)=0 |
| 执行默认的上下文动作 更多... | |
| virtual MgSnap * | getSnap ()=0 |
| 返回图形特征点捕捉器 更多... | |
| virtual CmdSubject * | getCmdSubject ()=0 |
| 返回命令扩展目标对象 更多... | |
| virtual MgShape * | addImageShape (const MgMotion *sender, const char *name, float width, float height)=0 |
| 添加一个容纳图像的矩形图形,供 GiCoreView 使用 更多... | |
| virtual MgShape * | addImageShape (const MgMotion *sender, const char *name, float xc, float yc, float w, float h, int tag)=0 |
| 添加一个容纳图像的矩形图形,供 GiCoreView 使用 更多... | |
| virtual void | getBoundingBox (Box2d &box, const MgMotion *sender)=0 |
| 返回选择包络框,显示坐标,供 GiCoreView 使用 更多... | |