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.