|
AnyCAD Rapid API 2026
Help you to create a better world!
|
拾取项 更多...
Public 成员函数 | |
| PickedItem (global::System.IntPtr cPtr, bool cMemoryOwn) | |
| 仅供内部使用 | |
| void | Dispose () |
| PickedItem () | |
| 默认构造函数 | |
| PickedItem (PickedId id) | |
| 构造函数 | |
| PickedItem (PickedId id, IntersectPoint point) | |
| 构造函数 | |
| PickedItem (SceneNode node, IntersectPoint point) | |
| 构造函数 | |
| PickedItem (SceneNode node, IntersectPoint point, EnumShapeFilter filter) | |
| 构造函数 | |
| PickedItem (SceneNode node, Vector3d pos) | |
| 构造函数 | |
| IntersectPoint | GetPoint () |
| void | SetPoint (IntersectPoint val) |
| SceneNode | GetNode () |
| void | SetNode (SceneNode val) |
| EnumShapeFilter | GetShapeFilter () |
| void | SetShapeFilter (EnumShapeFilter val) |
| EnumGripType | GetGripType () |
| void | SetGripType (EnumGripType val) |
| PickedId | GetId () |
| void | SetId (PickedId val) |
| void | SetObjectId (ObjectId id) |
| 设置对象ID | |
| bool | IsNull () |
| 判断拾取项是否为空 | |
| void | SetNull () |
| 设置拾取项为空 | |
| uint | GetNodeId () |
| 获取节点ID | |
| SceneNode | GetRootNode () |
| 获取当前节点的根节点 | |
| ulong | GetUserId () |
| 获取节点中的用户ID | |
| Vector3 | GetPosition () |
| 获取位置(float类型) | |
| Vector3d | GetPositiond () |
| 获取位置(double类型) | |
| bool | IsEqual (PickedItem other) |
| 判断是否与另一个拾取项相等 | |
| int | GetShapeIndex () |
| 获取子可渲染形状的索引 | |
| int | GetTopoShapeId () |
| 获取拓扑形状中的子索引 | |
| int | GetPrimitiveIndex () |
| 获取子可渲染形状中的图元索引 | |
| void | ResetByFilter (EnumShapeFilter filter) |
| 根据过滤器重置 | |
拾取项
Group: Rendering
该类表示在图形渲染中被拾取的项目,包含拾取点信息、节点信息等
| AnyCAD.Foundation.PickedItem.PickedItem | ( | PickedId | id | ) |
构造函数
| id | 拾取ID |
| AnyCAD.Foundation.PickedItem.PickedItem | ( | PickedId | id, |
| IntersectPoint | point ) |
构造函数
| id | 拾取ID |
| point | 相交点 |
| AnyCAD.Foundation.PickedItem.PickedItem | ( | SceneNode | node, |
| IntersectPoint | point ) |
构造函数
| node | 场景节点 |
| point | 相交点 |
| AnyCAD.Foundation.PickedItem.PickedItem | ( | SceneNode | node, |
| IntersectPoint | point, | ||
| EnumShapeFilter | filter ) |
构造函数
| node | 场景节点 |
| point | 相交点 |
| filter | 形状过滤器 |
| uint AnyCAD.Foundation.PickedItem.GetNodeId | ( | ) |
获取节点ID
| Vector3 AnyCAD.Foundation.PickedItem.GetPosition | ( | ) |
获取位置(float类型)
| Vector3d AnyCAD.Foundation.PickedItem.GetPositiond | ( | ) |
获取位置(double类型)
| int AnyCAD.Foundation.PickedItem.GetPrimitiveIndex | ( | ) |
获取子可渲染形状中的图元索引
| SceneNode AnyCAD.Foundation.PickedItem.GetRootNode | ( | ) |
获取当前节点的根节点
| int AnyCAD.Foundation.PickedItem.GetShapeIndex | ( | ) |
获取子可渲染形状的索引
| int AnyCAD.Foundation.PickedItem.GetTopoShapeId | ( | ) |
获取拓扑形状中的子索引
| ulong AnyCAD.Foundation.PickedItem.GetUserId | ( | ) |
获取节点中的用户ID
| bool AnyCAD.Foundation.PickedItem.IsEqual | ( | PickedItem | other | ) |
判断是否与另一个拾取项相等
| other | 另一个拾取项 |
| bool AnyCAD.Foundation.PickedItem.IsNull | ( | ) |
判断拾取项是否为空
| void AnyCAD.Foundation.PickedItem.ResetByFilter | ( | EnumShapeFilter | filter | ) |
根据过滤器重置
| filter | 形状过滤器 |
| void AnyCAD.Foundation.PickedItem.SetObjectId | ( | ObjectId | id | ) |
设置对象ID
| id | 对象ID |