AxisAccumulator QML Type
Qt3DInput::QAxisAccumulator C++ クラス用の QML フロントエンド。詳細...
| Import Statement: | import Qt3D.Input 2.12 |
| In C++: | QAxisAccumulator |
| Status: | Deprecated |
この型は非推奨です。新しいコードでの使用は強く推奨しません。
プロパティ
- sourceAxis : Axis
- sourceAxisType : SourceAxisType
- value : real
詳細な説明
Axisは、入力デバイス上の軸の現在の位置を報告します。 軸が中立位置に戻ると、その軸の値は 0 に戻ります。多くの場合、軸からの入力を別の方法で変数を制御するために利用する必要があります。例えば、Axis からの値を速度(時間に対する 1 階微分)や加速度(時間に対する 2 階微分)として扱うなどです。 これはユーザーコードやFrameAction を使用して行うこともできますが、これらのアプローチはメインスレッドに余分な負荷をかけ、本質的に命令型であるため、理想的とは言えません。AxisAccumulatorクラスを使用すると、この一般的なタスクをQt 3D バックエンド上で実行し、宣言的な方法で指定することが可能になります。
プロパティのドキュメント
sourceAxis : Axis
アキュムレータが軸の値を積分すべき軸。
sourceAxisType : SourceAxisType
sourceAxisType プロパティは、アキュムレータがソース軸からの値をどのように扱うかを指定します。
value : real [read-only]
累積処理を行う際に、軸の値をスケーリングする倍率です。これは、その軸が制御できる最大速度または最大加速度と考えることができます。
© 2026 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.