QAxisSetting Class

class Qt3DInput::QAxisSetting

QAxisSetting stores settings for the specified list of Axis. More...

Header: #include <QAxisSetting>
qmake: QT += 3dinput
Since: Qt 5.5
Instantiated By: AxisSetting
Inherits: Qt3DCore::QNode

This class was introduced in Qt 5.5.

Public Functions

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)

Protected Functions

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

Detailed Description

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

Member Function Documentation

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.

See also setAxes().

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

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

float QAxisSetting::deadZoneRadius() const

QAxisSetting::deadZoneRadius Returns the set dead zone radius.

See also setDeadZoneRadius().

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

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

bool QAxisSetting::isSmoothEnabled() const

QAxisSetting::isSmoothEnabled Returns if smoothing is enabled.

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

Set the current axes of the QAxisSetting instance to axes.

See also axes().

void QAxisSetting::setDeadZoneRadius(float deadZoneRadius)

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

See also deadZoneRadius().

void QAxisSetting::setSmoothEnabled(bool enabled)

Set the current state of the QAxisSettings smoothing to enabled.

See also isSmoothEnabled().

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

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