QAxisSetting Class

( Qt3DInput::QAxisSetting )

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

頭: #include <QAxisSetting>
qmake: QT += 3dinput
Since: Qt 5.5
實例化: 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 )

通知程序信號:

void axesChanged (const QVector<int> & axes )

deadZoneRadius : float

訪問函數:

float deadZoneRadius () const
void setDeadZoneRadius (float deadZoneRadius )

通知程序信號:

void deadZoneRadiusChanged (float deadZoneRadius )

smooth : bool

訪問函數:

bool isSmoothEnabled () const
void setSmoothEnabled (bool enabled )

通知程序信號:

void smoothChanged (bool smooth )

成員函數文檔編製

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

構造新的 QAxisSetting 實例與 parent .

QVector < int > QAxisSetting:: axes () const

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

注意: getter 函數對於特性 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 .

注意: 通知程序信號對於特性 axes .

float QAxisSetting:: deadZoneRadius () const

QAxisSetting::deadZoneRadius Returns the set dead zone radius.

注意: getter 函數對於特性 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 .

注意: 通知程序信號對於特性 deadZoneRadius .

bool QAxisSetting:: isSmoothEnabled () const

QAxisSetting::isSmoothEnabled Returns if smoothing is enabled.

注意: getter 函數對於特性 smooth .

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

Set the current axes of the QAxisSetting instance to axes .

注意: setter 函數對於特性 axes .

另請參閱 axes ().

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

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

注意: setter 函數對於特性 deadZoneRadius .

另請參閱 deadZoneRadius ().

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

Set the current state of the QAxisSettings smoothing to enabled .

注意: setter 函數對於特性 smooth .

另請參閱 isSmoothEnabled ().

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

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

注意: 通知程序信號對於特性 smooth .