|
TouchVG framework
|
选择集接口 更多...
#include <mgselect.h>

Public 成员函数 | |
| virtual | ~MgSelection () |
| virtual int | getSelection (MgView *view, int count, const MgShape **shapes)=0 |
| 得到当前选择的图形 更多... | |
| virtual int | getSelectionForChange (MgView *view, int count, MgShape **shapes)=0 |
| 得到当前选择的图形,用于修改 更多... | |
| int | getSelection (MgView *view, mgvector< const MgShape *> &shapes) |
| 得到当前选择的图形 更多... | |
| int | getSelectionForChange (MgView *view, mgvector< MgShape *> &shapes) |
| 得到当前选择的图形,用于修改 更多... | |
| int | getSelectionCount (MgView *view) |
| 得到选中的图形的个数 更多... | |
| virtual MgSelState | getSelectState (MgView *view)=0 |
| 返回选择状态 更多... | |
| virtual int | getSelectType (MgView *view)=0 |
| 返回选中的图形的类型, MgShapeType 更多... | |
| virtual int | getSelectedHandle (const MgMotion *sender)=0 |
| 返回当前控制点序号 更多... | |
| virtual long | getSelectedShapeHandle (const MgMotion *sender)=0 |
| 返回当前图形的句柄 更多... | |
| virtual bool | selectAll (const MgMotion *sender)=0 |
| 选中所有图形 更多... | |
| virtual bool | deleteSelection (const MgMotion *sender)=0 |
| 删除选中的图形 更多... | |
| virtual bool | cloneSelection (const MgMotion *sender)=0 |
| 对选中的图形复制出新图形,并选中新图形 更多... | |
| virtual bool | groupSelection (const MgMotion *sender)=0 |
| 对选中的图形成组,并选中新成组图形 更多... | |
| virtual bool | ungroupSelection (const MgMotion *sender)=0 |
| 对选中的成组图形解组 更多... | |
| virtual void | resetSelection (const MgMotion *sender)=0 |
| 清除选择集 更多... | |
| virtual bool | addSelection (const MgMotion *sender, int shapeID)=0 |
| 添加选择图形 更多... | |
| virtual bool | deleteVertex (const MgMotion *sender)=0 |
| 删除当前图形的选中的顶点 更多... | |
| virtual bool | insertVertex (const MgMotion *sender)=0 |
| 在当前位置插入一个顶点 更多... | |
| virtual bool | switchClosed (const MgMotion *sender)=0 |
| 切换当前图形是否闭合 更多... | |
| virtual bool | isFixedLength (MgView *view)=0 |
| 返回当前选中图形是否固定边长 更多... | |
| virtual bool | setFixedLength (const MgMotion *sender, bool fixed)=0 |
| 设置当前选中图形是否固定边长 更多... | |
| virtual bool | isLocked (MgView *view)=0 |
| 返回当前选中图形是否锁定形状 更多... | |
| virtual bool | setLocked (const MgMotion *sender, bool locked)=0 |
| 设置当前选中图形是否锁定形状 更多... | |
| virtual bool | isEditMode (MgView *view)=0 |
| 返回当前是否处于顶点编辑状态 更多... | |
| virtual bool | setEditMode (const MgMotion *sender, bool editMode)=0 |
| 设置当前是否处于顶点编辑状态 更多... | |
| virtual bool | overturnPolygon (const MgMotion *sender)=0 |
| 对当前选中多边形沿一条边翻转 更多... | |
| virtual Box2d | getBoundingBox (const MgMotion *sender)=0 |
| 返回选择包络框,模型坐标 更多... | |
| virtual bool | isSelectedByType (MgView *view, int type)=0 |
| 判断当前选择的图形是否从指定类型派生 更多... | |
| virtual bool | applyTransform (const MgMotion *sender, const Matrix2d &xf)=0 |
| 对当前选中的图形进行几何变形 更多... | |
选择集接口