AxisAccumulator QML Type
Qt3DInput::QAxisAccumulator C++ 类的 QML 前端。更多
Import Statement: | import Qt3D.Input 2.9 |
In C++: | QAxisAccumulator |
Status: | Deprecated |
属性
- sourceAxis : Axis
- sourceAxisType : SourceAxisType
- value : real
详细说明
坐标轴报告输入设备上坐标轴的当前位置。通常情况下,需要用其他方式让轴的输入控制变量,例如将轴的值视为速度(相对于时间的一阶导数)或加速度(相对于时间的二阶导数)。这可以通过用户代码或FrameAction 来实现,但这些方法并不理想,因为它们会给主线程增加更多工作,而且本质上是命令式的。轴累加器(AxisAccumulator)类允许在Qt 3D 后端执行这一常见任务,并以声明方式进行指定。
属性文档
sourceAxis : Axis |
累加器应整合轴值的轴。
sourceAxisType : SourceAxisType |
sourceAxisType 属性指定累加器如何处理来自源轴的值。
value : real |
累加时轴值的缩放量。这可以看作是轴所能控制的最大速度或加速度。
© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.