QAbstractPhysicalDevice Class
(Qt3DInput::QAbstractPhysicalDevice)QAbstractPhysicalDevice is the base class used by Qt3d to interact with arbitrary input devices. More...
| Header: | #include <QAbstractPhysicalDevice> |
| qmake: | QT += 3dinput |
| Since: | Qt 5.6 |
| Instantiated By: | AbstractPhysicalDevice |
| Inherits: | Qt3DCore::QNode |
| Inherited By: | Qt3DInput::QAbstractPhysicalDeviceProxy, Qt3DInput::QKeyboardDevice, and Qt3DInput::QMouseDevice |
This class was introduced in Qt 5.6.
Public Functions
| QAbstractPhysicalDevice(Qt3DCore::QNode *parent = nullptr) | |
| void | addAxisSetting(Qt3DInput::QAxisSetting *axisSetting) |
| virtual int | axisCount() const |
| virtual int | axisIdentifier(const QString &name) const |
| virtual QStringList | axisNames() const |
| QVector<Qt3DInput::QAxisSetting *> | axisSettings() const |
| virtual int | buttonCount() const |
| virtual int | buttonIdentifier(const QString &name) const |
| virtual QStringList | buttonNames() const |
| void | removeAxisSetting(Qt3DInput::QAxisSetting *axisSetting) |
- 13 public functions inherited from Qt3DCore::QNode
- 30 public functions inherited from QObject
Related Non-Members
| typedef | QNodePtr |
| typedef | QNodeVector |
| typedef | QObjectList |
| QList<T> | qFindChildren(const QObject *obj, const QRegExp ®Exp) |
| Qt3DCore::QNodeId | qIdForNode(Qt3DCore::QNode *node) |
| Qt3DCore::QNodeIdVector | qIdsForNodes(const T &nodes) |
| T | qobject_cast(QObject *object) |
| T | qobject_cast(const QObject *object) |
Macros
| QT_NO_NARROWING_CONVERSIONS_IN_CONNECT | |
| Q_CLASSINFO(Name, Value) | |
| Q_DISABLE_COPY(Class) | |
| Q_DISABLE_COPY_MOVE(Class) | |
| Q_DISABLE_MOVE(Class) | |
| Q_EMIT | |
| Q_ENUM(...) | |
| Q_ENUM_NS(...) | |
| Q_FLAG(...) | |
| Q_FLAG_NS(...) | |
| Q_GADGET | |
| Q_INTERFACES(...) | |
| Q_INVOKABLE | |
| Q_NAMESPACE | |
| Q_OBJECT | |
| Q_PROPERTY(...) | |
| Q_REVISION | |
| Q_SET_OBJECT_NAME(Object) | |
| Q_SIGNAL | |
| Q_SIGNALS | |
| Q_SLOT | |
| Q_SLOTS |
Additional Inherited Members
- 3 properties inherited from Qt3DCore::QNode
- 1 property inherited from QObject
- 3 public slots inherited from Qt3DCore::QNode
- 1 public slot inherited from QObject
- 4 signals inherited from Qt3DCore::QNode
- 2 signals inherited from QObject
- 9 static public members inherited from QObject
- 2 protected functions inherited from Qt3DCore::QNode
- 9 protected functions inherited from QObject
Detailed Description
Member Function Documentation
QAbstractPhysicalDevice::QAbstractPhysicalDevice(Qt3DCore::QNode *parent = nullptr)
Constructs a new QAbstractPhysicalDevice instance with parent.
void QAbstractPhysicalDevice::addAxisSetting(Qt3DInput::QAxisSetting *axisSetting)
Add the axisSetting axisSetting to this device.
[virtual] int QAbstractPhysicalDevice::axisCount() const
Returns the number of axis this device has.
[virtual] int QAbstractPhysicalDevice::axisIdentifier(const QString &name) const
Returns the integer identifer of the axis name or -1 if it does not exist on this device.
[virtual] QStringList QAbstractPhysicalDevice::axisNames() const
Returns a list of the names of device's axis.
QVector<Qt3DInput::QAxisSetting *> QAbstractPhysicalDevice::axisSettings() const
Returns the axisSettings associated with this device.
[virtual] int QAbstractPhysicalDevice::buttonCount() const
Returns the number of buttons this device has.
[virtual] int QAbstractPhysicalDevice::buttonIdentifier(const QString &name) const
Returns the integer identifer of the button name or -1 if it does not exist on this device.
[virtual] QStringList QAbstractPhysicalDevice::buttonNames() const
Returns a list of the names of device's buttons.
void QAbstractPhysicalDevice::removeAxisSetting(Qt3DInput::QAxisSetting *axisSetting)
Remove the axisSetting axisSetting to this device.