QObjectPicker Class
(Qt3DRender::QObjectPicker)The QObjectPicker class instantiates a component that can be used to interact with a QEntity by a process known as picking. More...
| Header: | #include <QObjectPicker> |
| qmake: | QT += 3drender |
| Since: | Qt 5.6 |
| Inherits: | Qt3DCore::QComponent |
Properties
- containsMouse : const bool
- dragEnabled : bool
- hoverEnabled : bool
- pressed : const bool
- 1 property inherited from Qt3DCore::QComponent
- 2 properties inherited from Qt3DCore::QNode
- 1 property inherited from QObject
Public Functions
| QObjectPicker(QNode *parent = nullptr) | |
| bool | containsMouse() const |
| bool | isDragEnabled() const |
| bool | isHoverEnabled() const |
| bool | isPressed() const |
- 2 public functions inherited from Qt3DCore::QComponent
- 6 public functions inherited from Qt3DCore::QNode
- 31 public functions inherited from QObject
Public Slots
| void | setDragEnabled(bool dragEnabled) |
| void | setHoverEnabled(bool hoverEnabled) |
- 1 public slot inherited from Qt3DCore::QComponent
- 2 public slots inherited from Qt3DCore::QNode
- 1 public slot inherited from QObject
Signals
| void | clicked(Qt3DRender::QPickEvent *pick) |
| void | containsMouseChanged(bool containsMouse) |
| void | dragEnabledChanged(bool dragEnabled) |
| void | entered() |
| void | exited() |
| void | hoverEnabledChanged(bool hoverEnabled) |
| void | moved(Qt3DRender::QPickEvent *pick) |
| void | pressed(Qt3DRender::QPickEvent *pick) |
| void | pressedChanged(bool pressed) |
| void | released(Qt3DRender::QPickEvent *pick) |
- 1 signal inherited from Qt3DCore::QComponent
- 3 signals inherited from Qt3DCore::QNode
- 2 signals inherited from QObject
Protected Functions
| void | sceneChangeEvent(const Qt3DCore::QSceneChangePtr &change) |
- 2 protected functions inherited from Qt3DCore::QNode
- 9 protected functions inherited from QObject
Additional Inherited Members
- 1 public variable inherited from QObject
- 10 static public members inherited from QObject
- 2 protected variables inherited from QObject
Detailed Description
The QObjectPicker class instantiates a component that can be used to interact with a QEntity by a process known as picking.
The signals pressed(), released(), clicked(), moved(), entered(), and exited() are emitted when the bounding volume defined by the pickAttribute property intersects with a ray.
Note: Instances of this component shouldn't be shared, not respecting that condition will most likely result in undefined behavior.
Property Documentation
containsMouse : const bool
Access functions:
| bool | containsMouse() const |
Notifier signal:
| void | containsMouseChanged(bool containsMouse) |
dragEnabled : bool
Access functions:
| bool | isDragEnabled() const |
| void | setDragEnabled(bool dragEnabled) |
Notifier signal:
| void | dragEnabledChanged(bool dragEnabled) |
hoverEnabled : bool
Access functions:
| bool | isHoverEnabled() const |
| void | setHoverEnabled(bool hoverEnabled) |
Notifier signal:
| void | hoverEnabledChanged(bool hoverEnabled) |
pressed : const bool
Access functions:
| bool | isPressed() const |
Notifier signal:
| void | pressedChanged(bool pressed) |
Member Function Documentation
QObjectPicker::QObjectPicker(QNode *parent = nullptr)
Default constructs an instance of QObjectPicker.