InstanceRange QML Type
RandomInstancing の範囲を指定します。もっと見る...
| Import Statement: | import QtQuick3D.Helpers |
| Since: | Qt 6.2 |
| Inherits: |
プロパティ
- from : Variant
- proportional : bool
- to : Variant
詳細説明
InstanceRange QML 型は、RandomInstancing 属性の変動範囲を指定するために使用される。
プロパティの説明
from : Variant
このプロパティは、範囲の下限を指定する。型は、この範囲が適用される属性の型と一致する必要があります。
proportional : bool
このプロパティは、属性の成分が比例して変化するか、独立して変化するかを決定する。デフォルト値はtrue で、すべての成分が独立していることを意味します。
例えば、以下はモデルの縦横比を保持するスケーリング範囲を定義します:
InstanceRange { from: Qt.vector3d(1, 1, 1) to: Qt.vector3d(5, 5, 5) proportional: true }
こ れはグ レース ケールの色範囲を定義 し ます:
InstanceRange { from: "black" to: "white" proportional: true }
一方、 下記はすべての色を網羅する範囲を定義 し ます。
InstanceRange { from: "black" to: "white" }
to : Variant
このプロパティは、範囲の上限を指定する。型は、この範囲が適用される属性の型と一致する必要があります。
© 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.