|
TouchVG framework
|
自由折线绘图命令类 更多...
#include <mgdrawfreelines.h>

静态 Public 成员函数 | |
| static const char * | Name () |
| static MgCommand * | Create () |
静态 Public 成员函数 继承自 MgCommandDraw | |
| static Point2d | getLastSnappedPoint () |
| 返回上次捕捉到的位置 更多... | |
| static Point2d | getLastSnappedOriginPoint () |
| 返回上次捕捉到对象坐标时的原始位置 更多... | |
静态 Public 成员函数 继承自 MgCommand | |
| static float | drawAngleText (const MgMotion *sender, GiGraphics *gs, float angle, void *stdstr=(void *) 0) |
| static float | drawAngleText (MgView *view, GiGraphics *gs, float angle, const Point2d &pt, int align=1, void *stdstr=(void *) 0, GiTextWidthCallback *c=(GiTextWidthCallback *) 0) |
Private 成员函数 | |
| MgCmdDrawFreeLines () | |
| virtual void | release () |
| 销毁对象 更多... | |
| virtual bool | initialize (const MgMotion *sender, MgStorage *s) |
| 开始命令 更多... | |
| virtual bool | backStep (const MgMotion *sender) |
| 回退一步 更多... | |
| virtual bool | draw (const MgMotion *sender, GiGraphics *gs) |
| 显示动态图形 更多... | |
| virtual bool | touchBegan (const MgMotion *sender) |
| 开始滑动 更多... | |
| virtual bool | touchMoved (const MgMotion *sender) |
| 正在滑动 更多... | |
| virtual bool | touchEnded (const MgMotion *sender) |
| 滑动结束 更多... | |
| bool | canAddPoint (const MgMotion *sender, bool ended) |
额外继承的成员函数 | |
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 | 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) |
| 执行上下文动作 更多... | |
Protected 成员函数 继承自 MgCommandDraw | |
| bool | _initialize (int shapeType, const MgMotion *sender, MgStorage *s=(MgStorage *) 0) |
| bool | _click (const MgMotion *sender) |
| virtual int | getMaxStep () |
| virtual void | setStepPoint (const MgMotion *sender, int step, const Point2d &pt) |
| virtual bool | isStepPointAccepted (const MgMotion *sender, const Point2d &pt) |
| virtual int | snapOptionsForStep (const MgMotion *sender, int step) |
Protected 属性 继承自 MgCommandDraw | |
| int | m_step |
自由折线绘图命令类