|
| virtual bool | registerCommand (const char *name, MgCommand *(*creator)()) |
| | 注册外部命令, 为NULL则取消注册 更多...
|
| |
| virtual void | release () |
| | 销毁管理器 更多...
|
| |
| virtual const char * | getCommandName () const |
| | 得到当前命令名称 更多...
|
| |
| virtual const char * | getCommandName (int index) const |
| | 得到指定序号命令的名称 更多...
|
| |
| virtual MgCommand * | getCommand () const |
| | 得到当前命令 更多...
|
| |
| virtual MgCommand * | findCommand (const char *name) |
| | 查找命令 更多...
|
| |
| virtual bool | setCommand (const MgMotion *sender, const char *name, MgStorage *s) |
| | 启动命令 更多...
|
| |
| virtual bool | switchCommand (const MgMotion *sender) |
| | 切换到下一命令 更多...
|
| |
| virtual bool | cancel (const MgMotion *sender) |
| | 取消当前命令 更多...
|
| |
| virtual void | unloadCommands () |
| | 退出时卸载命令 更多...
|
| |
| virtual int | getNewShapeID () const |
| | 返回新绘图形的ID 更多...
|
| |
| virtual void | setNewShapeID (int sid) |
| | 设置新绘图形的ID 更多...
|
| |
| virtual float | displayMmToModel (float mm, GiGraphics *gs) const |
| | 返回屏幕毫米长度对应的模型长度,在命令显示函数中使用 更多...
|
| |
| virtual float | displayMmToModel (float mm, const MgMotion *sender) const |
| | 返回屏幕毫米长度对应的模型长度 更多...
|
| |
| virtual int | getSelection (MgView *view, int count, const MgShape **shapes) |
| | 得到当前选择的图形 更多...
|
| |
| virtual int | getSelectionForChange (MgView *view, int count, MgShape **shapes) |
| | 得到当前选择的图形的临时图形,用于修改 更多...
|
| |
| virtual bool | dynamicChangeEnded (MgView *view, bool apply) |
| | 结束动态修改,提交或放弃所改的临时图形 更多...
|
| |
| virtual MgSelection * | getSelection () |
| | 返回选择集对象,可能为NULL 更多...
|
| |
| virtual MgActionDispatcher * | getActionDispatcher () |
| | 返回上下文动作分发对象 更多...
|
| |
| virtual bool | doContextAction (const MgMotion *sender, int action) |
| | 执行默认的上下文动作 更多...
|
| |
| virtual MgSnap * | getSnap () |
| | 返回图形特征点捕捉器 更多...
|
| |
| virtual CmdSubject * | getCmdSubject () |
| | 返回命令扩展目标对象 更多...
|
| |
| virtual MgShape * | addImageShape (const MgMotion *sender, const char *name, float width, float height) |
| | 添加一个容纳图像的矩形图形,供 GiCoreView 使用 更多...
|
| |
| virtual MgShape * | addImageShape (const MgMotion *sender, const char *name, float xc, float yc, float w, float h, int tag) |
| | 添加一个容纳图像的矩形图形,供 GiCoreView 使用 更多...
|
| |
| virtual void | getBoundingBox (Box2d &box, const MgMotion *sender) |
| | 返回选择包络框,显示坐标,供 GiCoreView 使用 更多...
|
| |
| virtual bool | drawSnap (const MgMotion *sender, GiGraphics *gs) const |
| | 显示捕捉提示线 更多...
|
| |
| virtual bool | drawPerpMark (GiGraphics *gs, const GiContext &ctx, const Point2d &a, const Point2d &b, const Point2d &perp, const Point2d &c, float len) const |
| | 显示垂足标志(90度折线), perp为perp-c与a-b相交的垂足 更多...
|
| |
| virtual Point2d | snapPoint (const MgMotion *sender, const Point2d &orignPt, const MgShape *shape, int hotHandle, int ignoreHandle=-1, const int *ignoreids=NULL) |
| | 根据当前点捕捉新的坐标 更多...
|
| |
| virtual int | getSnapOptions (MgView *view) const |
| | 返回捕捉选项,由 MgSnapOptions 按位组成 更多...
|
| |
| virtual void | setSnapOptions (MgView *view, int bits) |
| | 设置捕捉选项,由 MgSnapOptions 按位组成 更多...
|
| |
| virtual int | getSnappedType () const |
| | 返回捕捉到的特征点类型, >=kMgSnapGrid 更多...
|
| |
| virtual int | getSnappedPoint (Point2d &fromPt, Point2d &toPt) const |
| | 得到捕捉到的特征点坐标和原始参考坐标、捕捉坐标 更多...
|
| |
| virtual int | getSnappedPoint (Point2d &fromPt, Point2d &toPt, Point2d &startPt, Point2d &guildPt) const |
| | 得到捕捉到的特征点坐标和原始参考坐标、捕捉坐标、导向点 更多...
|
| |
| virtual void | setIgnoreStartPoint (const Point2d &pt) |
| | 为当前捕捉设置上一线段的坐标,以避免与上一点重合 更多...
|
| |
| virtual bool | getSnappedHandle (int &shapeid, int &handleIndex, int &handleIndexSrc) const |
| | 得到捕捉到的图形、控制点序号、源图形上匹配的控制点序号 更多...
|
| |
| virtual void | clearSnap (const MgMotion *sender) |
| | 清除捕捉结果 更多...
|
| |
| virtual bool | showInSelect (const MgMotion *sender, int selState, const MgShape *shape, const Box2d &selbox) |
| |
| virtual bool | showInDrawing (const MgMotion *sender, const MgShape *shape) |
| |
| virtual bool | doAction (const MgMotion *sender, int action) |
| |
| void | eraseWnd (const MgMotion *sender) |
| |
| void | checkResult (SnapItem arr[3], int hotHandle) |
| |
| void | freeSubject () |
| |
| void | drawPerpMark (const MgMotion *sender, GiGraphics *gs, GiContext &ctx) const |
| |