QAbstractPhysicalDevice Class
(Qt3DInput::QAbstractPhysicalDevice)QAbstractPhysicalDevice is the base class used by Qt3d to interact with arbitrary input devices. 更多...
头文件: | #include <QAbstractPhysicalDevice> |
qmake: | QT += 3dinput |
开始支持版本: | Qt 5.6 |
Instantiated By: | AbstractPhysicalDevice |
基类: | Qt3DCore::QNode |
派生类: |
公有函数
QAbstractPhysicalDevice(Qt3DCore::QNode *parent = nullptr) | |
void | addAxisSetting(QAxisSetting *axisSetting) |
virtual int | axisCount() const |
virtual int | axisIdentifier(const QString &name) const |
virtual QStringList | axisNames() const |
QVector<QAxisSetting *> | axisSettings() const |
virtual int | buttonCount() const |
virtual int | buttonIdentifier(const QString &name) const |
virtual QStringList | buttonNames() const |
void | removeAxisSetting(QAxisSetting *axisSetting) |
- 11 个公有函数继承自 Qt3DCore::QNode
- 32 个公有函数继承自 QObject
受保护的函数
QAbstractPhysicalDevice(QAbstractPhysicalDevicePrivate &dd, Qt3DCore::QNode *parent = nullptr) |
重新实现的受保护函数
virtual Qt3DCore::QNodeCreatedChangeBasePtr | createNodeCreationChange() const |
- 2 个受保护的函数继承自 Qt3DCore::QNode
- 9 个受保护的函数继承自 QObject
其他继承的成员
- 3 个属性继承自 Qt3DCore::QNode
- 1 个属性继承自 QObject
- 3 个公有槽函数继承自 Qt3DCore::QNode
- 1 个公有槽函数继承自 QObject
- 4 个信号继承自 Qt3DCore::QNode
- 2 个信号继承自 QObject
- 1 个公有变量继承自 QObject
- 10 个静态公有成员继承自 QObject
- 2 个受保护的变量继承自 QObject
详细描述
QAbstractPhysicalDevice is the base class used by Qt3d to interact with arbitrary input devices.
成员函数
QAbstractPhysicalDevice::QAbstractPhysicalDevice(Qt3DCore::QNode *parent = nullptr)
Constructs a new QAbstractPhysicalDevice instance with parent.
[protected]
QAbstractPhysicalDevice::QAbstractPhysicalDevice(QAbstractPhysicalDevicePrivate &dd, Qt3DCore::QNode *parent = nullptr)
Copy constructor.
void QAbstractPhysicalDevice::addAxisSetting(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<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.
[virtual protected]
Qt3DCore::QNodeCreatedChangeBasePtr QAbstractPhysicalDevice::createNodeCreationChange() const
void QAbstractPhysicalDevice::removeAxisSetting(QAxisSetting *axisSetting)
Remove the axisSetting axisSetting to this device.