QAxisSetting Class

(Qt3DInput::QAxisSetting)

QAxisSetting stores settings for the specified list of Axis. 更多...

头文件: #include <QAxisSetting>
qmake: QT += 3dinput
开始支持版本: Qt 5.5
Instantiated By: AxisSetting
基类: Qt3DCore::QNode

属性

公有函数

QAxisSetting(Qt3DCore::QNode *parent = nullptr)
QVector<int> axes() const
float deadZoneRadius() const
bool isSmoothEnabled() const

公有槽函数

void setAxes(const QVector<int> &axes)
void setDeadZoneRadius(float deadZoneRadius)
void setSmoothEnabled(bool enabled)

信号

void axesChanged(const QVector<int> &axes)
void deadZoneRadiusChanged(float deadZoneRadius)
void smoothChanged(bool smooth)

其他继承的成员

详细描述

QAxisSetting stores settings for the specified list of Axis.

Stores the dead zone associated with this axis and defines if smoothing is enabled

属性

axes : QVector<int>

访问函数:

QVector<int> axes() const
void setAxes(const QVector<int> &axes)

Notifier signal:

void axesChanged(const QVector<int> &axes)

deadZoneRadius : float

访问函数:

float deadZoneRadius() const
void setDeadZoneRadius(float deadZoneRadius)

Notifier signal:

void deadZoneRadiusChanged(float deadZoneRadius)

smooth : bool

访问函数:

bool isSmoothEnabled() const
void setSmoothEnabled(bool enabled)

Notifier signal:

void smoothChanged(bool smooth)

成员函数

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

Constructs a new QAxisSetting instance with parent.

QVector<int> QAxisSetting::axes() const

QAxisSetting::axes Returns the current list of Axis these settings apply to.

Note: Getter function for property axes.

参见 setAxes().

[signal] void QAxisSetting::axesChanged(const QVector<int> &axes)

This signal is emitted when the axes associated with the axis setting is changed to axes.

Note: Notifier signal for property axes.

float QAxisSetting::deadZoneRadius() const

QAxisSetting::deadZoneRadius Returns the set dead zone radius.

Note: Getter function for property deadZoneRadius.

参见 setDeadZoneRadius().

[signal] void QAxisSetting::deadZoneRadiusChanged(float deadZoneRadius)

This signal is emitted when the Dead Zone radius associated with the axis setting is changed to deadZoneRadius.

Note: Notifier signal for property deadZoneRadius.

bool QAxisSetting::isSmoothEnabled() const

QAxisSetting::isSmoothEnabled Returns if smoothing is enabled.

Note: Getter function for property smooth.

[slot] void QAxisSetting::setAxes(const QVector<int> &axes)

Set the current axes of the QAxisSetting instance to axes.

Note: Setter function for property axes.

参见 axes().

[slot] void QAxisSetting::setDeadZoneRadius(float deadZoneRadius)

Set the current dead zone radius of the QAxisSetting instance to deadZoneRadius.

Note: Setter function for property deadZoneRadius.

参见 deadZoneRadius().

[slot] void QAxisSetting::setSmoothEnabled(bool enabled)

Set the current state of the QAxisSettings smoothing to enabled.

Note: Setter function for property smooth.

参见 isSmoothEnabled().

[signal] void QAxisSetting::smoothChanged(bool smooth)

This signal is emitted when the smoothing state is changed to smooth.

Note: Notifier signal for property smooth.