|
| | MgCmdArcTan (const char *name=Name()) |
| |
| virtual void | release () |
| | 销毁对象 更多...
|
| |
| | MgCmdArc3P (const char *name=Name()) |
| |
| virtual bool | touchBegan (const MgMotion *sender) |
| | 开始滑动 更多...
|
| |
| virtual bool | touchMoved (const MgMotion *sender) |
| | 正在滑动 更多...
|
| |
| virtual bool | touchEnded (const MgMotion *sender) |
| | 滑动结束 更多...
|
| |
| virtual bool | initialize (const MgMotion *sender, MgStorage *s) |
| | 开始命令 更多...
|
| |
| virtual bool | draw (const MgMotion *sender, GiGraphics *gs) |
| | 显示动态图形 更多...
|
| |
Public 成员函数 继承自 MgCommandDraw |
| | MgCommandDraw (const char *name) |
| |
| virtual | ~MgCommandDraw () |
| |
| MgShape * | addShape (const MgMotion *sender, MgShape *shape=MgShape::Null()) |
| |
| bool | touchBeganStep (const MgMotion *sender) |
| |
| bool | touchMovedStep (const MgMotion *sender) |
| |
| bool | touchEndedStep (const MgMotion *sender) |
| |
| virtual int | getShapeType () |
| | 返回新图形的类型,供其他语言重载使用 更多...
|
| |
| void | ignoreStartPoint (const MgMotion *sender, int handle) |
| | 为当前捕捉设置上一线段的坐标,以避免与上一点重合 更多...
|
| |
| int | getSnappedType (const MgMotion *sender) const |
| | 返回当前捕捉结果类型, >=kMgSnapGrid 更多...
|
| |
| virtual bool | backStep (const MgMotion *sender) |
| | 回退一步 更多...
|
| |
| virtual bool | cancel (const MgMotion *sender) |
| | 取消命令 更多...
|
| |
| virtual bool | gatherShapes (const MgMotion *sender, MgShapes *shapes) |
| |
| virtual bool | click (const MgMotion *sender) |
| |
| virtual bool | longPress (const MgMotion *sender) |
| | 长按 更多...
|
| |
| virtual bool | mouseHover (const MgMotion *sender) |
| | 鼠标掠过 更多...
|
| |
| virtual const MgShape * | getShape (const MgMotion *sender) |
| | 当前临时图形 更多...
|
| |
| int | getStep () |
| |
| MgShape * | dynshape () |
| |
| void | setStep (int step) |
| |
| Point2d | snapPointWidhOptions (const MgMotion *sender, int options, bool firstStep=false) |
| |
| Point2d | snapPoint (const MgMotion *sender, bool firstStep=false) |
| |
| Point2d | snapPoint (const MgMotion *sender, const Point2d &orignPt, bool firstStep=false) |
| |
| Point2d | snapPoint (const MgMotion *sender, const Point2d &orignPt, bool firstStep, int handle) |
| |
Public 成员函数 继承自 MgCommand |
| | MgCommand (const char *name) |
| | 构造函数,名称最长为30个字符 更多...
|
| |
| virtual | ~MgCommand () |
| |
| const char * | getName () const |
| | 返回命令名称 更多...
|
| |
| virtual bool | initializeWithSelection (const MgMotion *sender, MgStorage *s, const int *ids) |
| |
| virtual int | getSelectedIDs (MgView *view, int *ids, int count) |
| |
| virtual bool | doubleClick (const MgMotion *sender) |
| | 双击 更多...
|
| |
| virtual bool | twoFingersMove (const MgMotion *sender) |
| | 双指触摸 更多...
|
| |
| virtual bool | isFloatingCommand () |
| | 是否可嵌套在其他命令中 更多...
|
| |
| virtual bool | doContextAction (const MgMotion *sender, int action) |
| | 执行上下文动作 更多...
|
| |