QPickLineEvent Class

( Qt3DRender::QPickLineEvent )

The QPickLineEvent class holds information when a segment of a line is picked. 更多...

頭: #include <QPickLineEvent>
qmake: QT += 3drender
Since: Qt 5.10
實例化: PickLineEvent
繼承: Qt3DRender::QPickEvent

特性

公共函數

QPickLineEvent ()
QPickLineEvent (const QPointF & position , const QVector3D & worldIntersection , const QVector3D & localIntersection , float distance , uint edgeIndex , uint vertex1Index , uint vertex2Index , Qt3DRender::QPickEvent::Buttons button , int buttons , int modifiers )
uint edgeIndex () const
uint vertex1Index () const
uint vertex2Index () const

靜態公共成員

const QMetaObject staticMetaObject

額外繼承成員

詳細描述

The QPickLineEvent class holds information when a segment of a line is picked.

另請參閱 QPickEvent .

特性文檔編製

edgeIndex : const uint

Specifies the index of the edge that was picked

訪問函數:

uint edgeIndex () const

vertex1Index : const uint

Specifies the index of the first point of the picked edge

訪問函數:

uint vertex1Index () const

vertex2Index : const uint

Specifies the index of the second point of the picked edge

訪問函數:

uint vertex2Index () const

成員函數文檔編製

QPickLineEvent:: QPickLineEvent ()

構造新的 QPickEvent .

QPickLineEvent:: QPickLineEvent (const QPointF & position , const QVector3D & worldIntersection , const QVector3D & localIntersection , float distance , uint edgeIndex , uint vertex1Index , uint vertex2Index , Qt3DRender::QPickEvent::Buttons button , int buttons , int modifiers )

Default constructs an instance of QPickLineEvent.

uint QPickLineEvent:: edgeIndex () const

QPickLineEvent::edgeIndex Returns the index of the picked edge

注意: getter 函數對於特性 edgeIndex .

uint QPickLineEvent:: vertex1Index () const

QPickLineEvent::vertex1Index Returns the index of the first point of the picked edge

注意: getter 函數對於特性 vertex1Index .

uint QPickLineEvent:: vertex2Index () const

QPickLineEvent::vertex2Index Returns the index of the second point of the picked triangle

注意: getter 函數對於特性 vertex2Index .