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 |
このプロパティは、範囲の上限を指定します。型は、この範囲が適用される属性の型と一致する必要があります。
© 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.