QScreenRayCaster Class

( Qt3DRender::QScreenRayCaster )

Performe ray casting test based on screen coordinates. 更多...

頭: #include <QScreenRayCaster>
qmake: QT += 3drender
Since: Qt 5.11
實例化: ScreenRayCaster
繼承: Qt3DRender::QAbstractRayCaster

特性

公共函數

QScreenRayCaster (Qt3DCore::QNode * parent = nullptr)
QPoint position () const

公共槽

void setPosition (const QPoint & position )
void trigger ()
void trigger (const QPoint & position )

信號

void positionChanged (const QPoint & position )

靜態公共成員

const QMetaObject staticMetaObject

額外繼承成員

詳細描述

Performe ray casting test based on screen coordinates.

QScreenRayCaster can be used to perform ray casting tests by specifying coordinates in screen space, which will be used to construct an actual 3D ray between the near and far planes.

另請參閱 QRayCaster .

特性文檔編製

position : QPoint

Holds the screen space position used to compute the actual 3D ray for intersection tests.

Note: the coordinates will be used for every available render surface as long as they are in the valid range.

訪問函數:

QPoint position () const
void setPosition (const QPoint & position )

通知程序信號:

void positionChanged (const QPoint & position )

成員函數文檔編製

QScreenRayCaster:: QScreenRayCaster ( Qt3DCore::QNode * parent = nullptr)

Default constructs an instance of QScreenRayCaster.

[slot] void QScreenRayCaster:: trigger ()

Convenience method to enable the component and trigger tests using the current coordinate value.

[slot] void QScreenRayCaster:: trigger (const QPoint & position )

Convenience method to set the coordinate value position and enable the component to trigger tests.