Theme3D QML Type
그래프를 위한 시각적 스타일입니다. 더 보기...
Import Statement: | import QtDataVisualization 1.8 |
Since: | QtDataVisualization 1.0 |
In C++: | Q3DTheme |
속성
- ambientLightStrength : real
- backgroundColor : color
- backgroundEnabled : bool
- baseColors : list<ThemeColor>
- baseGradients : list<ColorGradient>
- colorStyle : Theme3D.ColorStyle
- font : font
- gridEnabled : bool
- gridLineColor : color
- highlightLightStrength : real
- labelBackgroundColor : color
- labelBackgroundEnabled : bool
- labelBorderEnabled : bool
- labelTextColor : color
- lightColor : color
- lightStrength : real
- multiHighlightColor : color
- multiHighlightGradient : ColorGradient
- singleHighlightColor : color
- singleHighlightGradient : ColorGradient
- type : Theme3D.Theme
- windowColor : color
상세 설명
이 유형은 전체 그래프에 영향을 주는 시각적 속성을 지정하는 데 사용됩니다. 몇 가지 기본 제공 테마를 그대로 사용하거나 자유롭게 수정할 수 있습니다.
다음 속성은 Abstract3DSeries 속성을 사용하여 시리즈에서 명시적으로 설정하여 재정의할 수 있습니다: baseColors, baseGradients, 및 colorStyle 입니다.
Theme3D.ThemeUserDefined 열거형 값을 사용하여 테마를 처음부터 새로 만들 수도 있습니다.
기본 테마
다음 표에는 테마로 제어되는 속성과 Theme3D.ThemeUserDefined 의 기본값이 나열되어 있습니다.
속성 | 기본값 |
---|---|
ambientLightStrength | 0.25 |
backgroundColor | "검정". 자세한 내용은 color 을 참조하세요. |
backgroundEnabled | true |
baseColors | "black" |
baseGradients | QLinearGradient. 기본적으로 완전히 검은색입니다. |
colorStyle | 색상 스타일 유니폼 |
font | font |
gridEnabled | true |
gridLineColor | "white" |
highlightLightStrength | 7.5 |
labelBackgroundColor | "회색" |
labelBackgroundEnabled | true |
labelBorderEnabled | true |
labelTextColor | "white" |
lightColor | "흰색" |
lightStrength | 5.0 |
multiHighlightColor | "blue" |
multiHighlightGradient | QLinearGradient. 기본적으로 완전히 검은색입니다. |
singleHighlightColor | "red" |
singleHighlightGradient | QLinearGradient. 기본적으로 완전히 검은색입니다. |
windowColor | "검정" |
사용 예
기본 제공 테마를 수정하지 않고 사용:
Scatter3D { ... theme: Theme3D { type: Theme3D.ThemeRetro } ... }
기본 제공 테마를 사용하고 일부 속성을 수정합니다:
Bars3D { ... theme: Theme3D { type: Theme3D.ThemeRetro labelBorderEnabled: true font.pointSize: 35 labelBackgroundEnabled: false } ... }
사용자 정의 테마 사용:
Surface3D { ... theme: Theme3D { ambientLightStrength: 0.5 backgroundColor: "red" backgroundEnabled: true baseColor: "blue" colorStyle: Theme3D.ColorStyleUniform font.family: "Lucida Handwriting" font.pointSize: 35 gridEnabled: false gridLineColor: "black" highlightLightStrength: 0.5 labelBackgroundColor: "black" labelBackgroundEnabled: true labelBorderEnabled: false labelTextColor: "white" lightColor: "yellow" lightStrength: 0.4 multiHighlightColor: "green" singleHighlightColor: "darkRed" windowColor: "white" } ... }
Theme3D 열거형에 대해서는 Q3DTheme::ColorStyle 및 Q3DTheme::Theme 을 참조하세요.
프로퍼티 문서
ambientLightStrength : real |
전체 그래프의 주변광 강도입니다. 이 값은 조명 위치에 관계없이 그래프 전체에 색상이 얼마나 균일하고 밝게 표시되는지를 결정합니다. 값은 0.0
과 1.0
사이여야 합니다.
backgroundColor : color |
그래프 배경의 색상입니다.
backgroundEnabled : bool |
backgroundColor 값을 사용하여 배경을 그릴지 여부를 정의합니다.
baseColors : list<ThemeColor> |
그래프의 모든 개체에 계열별로 사용할 기본 색 목록입니다. 색상보다 계열이 많은 경우 색상 목록이 래핑되고 목록의 첫 번째 색상으로 다시 시작됩니다. colorStyle 이 Theme3D.ColorStyleUniform
이 아닌 경우 즉시 적용되지 않습니다.
계열에 Abstract3DSeries.baseColor 을 명시적으로 설정하여 재정의할 수 있습니다.
baseGradients : list<ColorGradient> |
그래프의 모든 개체에 시리즈별로 사용할 기본 그라데이션 목록입니다. 그라데이션보다 많은 계열이 있는 경우 그라데이션 목록이 래핑되고 목록의 첫 번째 그라데이션부터 다시 시작됩니다.
colorStyle 가 Theme3D.ColorStyleUniform 인 경우 즉시 적용되지 않습니다.
이 값은 계열에 Abstract3DSeries.baseGradient 을 명시적으로 설정하여 재정의할 수 있습니다.
colorStyle : Theme3D.ColorStyle |
그래프 색의 스타일. Q3DTheme::ColorStyle 열거형 값 중 하나입니다.
이 값은 시리즈에서 Abstract3DSeries.colorStyle 을 명시적으로 설정하여 재정의할 수 있습니다.
Q3DTheme::ColorStyle 를참조하세요 .
font : font |
레이블에 사용할 글꼴을 설정합니다.
gridEnabled : bool |
격자선 그리기 여부를 정의합니다. 이 값은 모든 격자선에 영향을 줍니다.
gridLineColor : color |
격자선의 색을 설정합니다.
참고: 투명도는 지원되지 않으며 정의되지 않은 동작이 발생합니다.
highlightLightStrength : real |
선택한 개체에 대한 스페큘러 광선 강도입니다. 값은 0.0
~ 10.0
사이여야 합니다.
labelBackgroundColor : color |
레이블 배경의 색상입니다. labelBackgroundEnabled 이 false
인 경우 영향을 미치지 않습니다.
labelBackgroundEnabled : bool |
레이블이 labelBackgroundColor (알파 포함)를 사용하는 배경으로 그려질지, 아니면 완전히 투명한 배경으로 그려질지를 정의합니다. 배경이 있는 레이블은 가장 긴 레이블을 기준으로 축마다 같은 크기로 그려지며 텍스트가 중앙에 배치됩니다. 배경이 없는 레이블은 그대로 그려지며 그래프에서의 위치에 따라 왼쪽 또는 오른쪽으로 정렬됩니다.
labelBorderEnabled : bool |
배경이 있는 레이블에 레이블 테두리를 그릴지 여부를 정의합니다. labelBackgroundEnabled 이 false
인 경우 영향을 주지 않습니다.
labelTextColor : color |
레이블에 사용되는 글꼴의 색상입니다.
lightStrength : real |
전체 그래프의 스페큘러 라이트 강도입니다. 값은 0.0
과 10.0
사이여야 합니다.
이 값은 Scene3D 에 지정된 조명에 영향을 줍니다.
multiHighlightColor : color |
선택된 오브젝트의 하이라이트 색상입니다. selectionMode 에 AbstractGraph3D.SelectionRow
또는 AbstractGraph3D.SelectionColumn
플래그가 설정된 경우 사용됩니다.
참고: 투명도는 지원되지 않으며 정의되지 않은 동작이 발생합니다.
multiHighlightGradient : ColorGradient |
선택한 객체의 하이라이트 그라데이션입니다. selectionMode 에 AbstractGraph3D.SelectionRow
또는 AbstractGraph3D.SelectionColumn
플래그가 설정된 경우 사용됩니다.
참고: 투명도는 지원되지 않으며 정의되지 않은 동작이 발생합니다.
singleHighlightColor : color |
선택한 객체의 강조 표시 색상입니다. selectionMode 에 AbstractGraph3D.SelectionItem
플래그가 설정된 경우 사용됩니다.
참고: 투명도는 지원되지 않으며 정의되지 않은 동작이 발생합니다.
singleHighlightGradient : ColorGradient |
선택한 객체의 하이라이트 그라데이션입니다. selectionMode 에 AbstractGraph3D.SelectionItem
플래그가 설정된 경우 사용됩니다.
참고: 투명도는 지원되지 않으며 정의되지 않은 동작이 발생합니다.
type : Theme3D.Theme |
테마의 유형입니다. 유형이 설정되지 않은 경우 유형은 Theme3D.ThemeUserDefined 입니다. 항목이 구성된 후 테마 유형을 변경하면 테마의 다른 모든 속성이 미리 정의된 테마가 지정한 대로 변경됩니다. 그래프의 활성 테마의 테마 유형을 변경하면 첨부된 모든 시리즈도 새 테마를 사용하도록 재설정됩니다.
windowColor : color |
그래프가 그려지는 애플리케이션 창의 색상입니다.
© 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.