QAxisSetting Class

class Qt3DInput ::QAxisSetting

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

头: #include <QAxisSetting>
CMake: find_package(Qt6 COMPONENTS 3dinput REQUIRED)
target_link_libraries(mytarget PRIVATE Qt6::3dinput)
qmake: QT += 3dinput
Since: Qt 5.5
实例化: AxisSetting
继承: Qt3DCore::QNode

特性

公共函数

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

公共槽

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

信号

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

详细描述

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

特性文档编制

axes : QList < int >

访问函数:

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

通知程序信号:

void axesChanged (const QList<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)

Constructs a new QAxisSetting instance with parent .

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

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

注意: 通知程序信号对于特性 axes .

[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 .

[slot] void QAxisSetting:: setAxes (const QList < 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 .

QList < int > QAxisSetting:: axes () const

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

注意: Getter function for property axes.

另请参阅 setAxes ().

float QAxisSetting:: deadZoneRadius () const

QAxisSetting::deadZoneRadius Returns the set dead zone radius.

注意: Getter function for property deadZoneRadius.

另请参阅 setDeadZoneRadius ().

bool QAxisSetting:: isSmoothEnabled () const

QAxisSetting::isSmoothEnabled Returns if smoothing is enabled.

注意: getter 函数对于特性 smooth .