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.