Performe ray casting test based on screen coordinates. More...
Header: | #include <QScreenRayCaster> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS 3drender) target_link_libraries(mytarget PRIVATE Qt6::3drender) |
qmake: | QT += 3drender |
Since: | Qt 5.11 |
Instantiated By: | ScreenRayCaster |
Inherits: | Qt3DRender::QAbstractRayCaster |
QPoint | position() const |
void | setPosition(const QPoint &position) |
void | trigger(const QPoint &position) |
void | trigger() |
void | positionChanged(const QPoint &position) |
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.
See also QRayCaster and QNoPicking.
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.
Access functions:
QPoint | position() const |
void | setPosition(const QPoint &position) |
Notifier signal:
void | positionChanged(const QPoint &position) |
[slot]
void QScreenRayCaster::trigger(const QPoint &position)Convenience method to set the coordinate value position and enable the component to trigger tests.
[slot]
void QScreenRayCaster::trigger()Convenience method to enable the component and trigger tests using the current coordinate value.
As part of the free Business evaluation, we offer a free welcome call for companies, to talk about your requirements, and how the Felgo SDK & Services can help you. Just sign up and schedule your call.
Sign up now to start your free Business evaluation: