KPickHelper
kds-plugin-document / Exports / KPickHelper
Interface: KPickHelper
选择帮助器
The KPickHelper class is used to pick entities.
Table of contents
Methods
Methods
pickByPoint
▸ pickByPoint(x
, y
, pickSetting?
): KPointPickResult
点选。 使用一个 client 窗口的 x,y 坐标来做选择
The method is used to pick by point.
Parameters
Name | Type | Description |
---|---|---|
x | number | X screen coordinate for the pick. |
y | number | Y screen coordinate for the pick. |
pickSetting? | KPickSetting | The setting for the pick. |
Returns
The result of point pick.
Defined in
api.d.ts:3596
pickByPoint3d
▸ pickByPoint3d(x
, y
, z
, pickSetting?
): KPointPickResult
点选。 使用一个 场景世界坐标系的三维坐标来做选择
The method is used to pick by point.
Parameters
Name | Type | Description |
---|---|---|
x | number | X world coordinate for the pick. |
y | number | Y world coordinate for the pick. |
z | number | Z world coordinate for the pick. |
pickSetting? | KPickSetting | The setting for the pick. |
Returns
The result of point pick.
Defined in
api.d.ts:3621
pickByRectangle
▸ pickByRectangle(startPoint
, endPoint
, pickSetting?
): KRectPickResult
框选。 使用一个 client 窗口的 2d 矩形来做选择
The method is used to pick by rectangle.
Parameters
Name | Type | Description |
---|---|---|
startPoint | KPoint2d | First screen coordinate point. |
endPoint | KPoint2d | Second screen coordinate point. |
pickSetting? | KPickSetting | The setting for the pick. |
Returns
The result of rectangle pick.
Defined in
api.d.ts:3608