PySide6.Qt3DRender.Qt3DRender.QPickLineEvent

class QPickLineEvent

QPickLineEvent 类在选取线段时保存信息。更多

PySide6.Qt3DRender.Qt3DRender.QPickLineEvent 的继承图

概要

属性

方法

注意

本文档可能包含从C++自动翻译到Python的代码片段。我们始终欢迎对代码片段翻译的贡献。如果您发现翻译问题,您也可以通过在我们的https:/bugreports.qt.io/projects/PYSIDE上创建工单来告知我们。

详细描述

另请参阅

QPickEvent

注意

当使用from __feature__ import true_property时,属性可以直接使用,否则通过访问器函数使用。

property edgeIndexᅟ: int

指定被选中的边的索引

Access functions:
property vertex1Indexᅟ: int

指定所选边的第一个点的索引

Access functions:
property vertex2Indexᅟ: int

指定所选边的第二个点的索引

Access functions:
__init__()

构造一个新的 QPickEvent

__init__(position, worldIntersection, localIntersection, distance, edgeIndex, vertex1Index, vertex2Index, button, buttons, modifiers)
Parameters:
  • positionQPointF

  • worldIntersectionQVector3D

  • localIntersectionQVector3D

  • distance – 浮点数

  • edgeIndex – 整数

  • vertex1Index – int

  • vertex2Index – int

  • button按钮

  • buttons – int

  • modifiers – int

edgeIndex()
Return type:

整数

QPickLineEvent::edgeIndex 返回所选边的索引

属性 edgeIndexᅟ 的获取器。

vertex1Index()
Return type:

整数

QPickLineEvent::vertex1Index 返回所选边的第一个点的索引

属性 vertex1Indexᅟ 的获取器。

vertex2Index()
Return type:

整数

QPickLineEvent::vertex2Index 返回所选三角形的第二个点的索引

属性 vertex2Indexᅟ 的获取器。