Scatter3D QML Type
3D 분산 그래프. 더 보기...
Import Statement: | import QtDataVisualization 1.8 |
Since: | QtDataVisualization 1.0 |
Inherits: |
속성
- axisX : ValueAxis3D
- axisY : ValueAxis3D
- axisZ : ValueAxis3D
- selectedSeries : Scatter3DSeries
- seriesList : list<Scatter3DSeries>
방법
- void addSeries(Scatter3DSeries series)
- void removeSeries(Scatter3DSeries series)
상세 설명
이 유형을 사용하면 개발자가 Qt Quick 를 사용하여 3D로 스캐터 그래프를 렌더링할 수 있습니다.
이 유형을 사용하려면 데이터 시각화 모듈을 가져와야 합니다:
import QtDataVisualization 1.2
그런 다음 qml 파일에서 Scatter3D를 사용할 수 있습니다:
import QtQuick 2.0 import QtDataVisualization 1.2 Item { width: 640 height: 480 Scatter3D { width: parent.width height: parent.height Scatter3DSeries { ItemModelScatterDataProxy { itemModel: dataModel // Mapping model roles to scatter series item coordinates. xPosRole: "xPos" yPosRole: "yPos" zPosRole: "zPos" } } } ListModel { id: dataModel ListElement{ xPos: "2.754"; yPos: "1.455"; zPos: "3.362"; } ListElement{ xPos: "3.164"; yPos: "2.022"; zPos: "4.348"; } ListElement{ xPos: "4.564"; yPos: "1.865"; zPos: "1.346"; } ListElement{ xPos: "1.068"; yPos: "1.224"; zPos: "2.983"; } ListElement{ xPos: "2.323"; yPos: "2.502"; zPos: "3.133"; } } }
자세한 사용 예는 간단한 분산 그래프를 참조하세요.
Scatter3DSeries, ScatterDataProxy, Bars3D, Surface3D, 및 Qt Data Visualization C++ Classes.
속성 문서
axisX : ValueAxis3D |
활성 X축입니다.
축을 지정하지 않으면 레이블이 없고 자동으로 조정되는 범위가 있는 임시 기본 축이 생성됩니다. 이 임시 축은 다른 축이 명시적으로 같은 방향으로 설정되어 있으면 삭제됩니다.
axisY : ValueAxis3D |
활성 Y축입니다.
축을 지정하지 않으면 레이블이 없고 자동으로 조정되는 범위가 있는 임시 기본 축이 생성됩니다. 이 임시 축은 다른 축이 명시적으로 같은 방향으로 설정되면 삭제됩니다.
axisZ : ValueAxis3D |
활성 Z축입니다.
축을 지정하지 않으면 레이블이 없고 자동으로 조정되는 범위가 있는 임시 기본 축이 생성됩니다. 이 임시 축은 다른 축이 명시적으로 같은 방향으로 설정되어 있으면 삭제됩니다.
selectedSeries : Scatter3DSeries |
선택한 계열 또는 null.
seriesList : list<Scatter3DSeries> |
이 속성은 그래프의 계열을 보유합니다. 기본적으로 이 속성에는 빈 목록이 포함됩니다. 계열을 설정하려면 addSeries() 메서드를 사용하거나 그래프의 자식으로 정의합니다.
메서드 문서
void addSeries(Scatter3DSeries series) |
그래프에 series 를 추가합니다. 그래프에는 여러 계열을 포함할 수 있지만 축은 한 세트만 있습니다. 새로 추가된 시리즈에 선택 항목이 지정되어 있으면 해당 항목이 강조 표시되고 기존 선택 항목은 모두 지워집니다. 추가된 계열은 하나만 활성 선택 항목을 가질 수 있습니다.
AbstractGraph3D::hasSeries()도 참조하십시오 .
void removeSeries(Scatter3DSeries series) |
그래프에서 series 을 제거합니다.
AbstractGraph3D::hasSeries()도 참조하십시오 .
© 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.