Scatter3D QML Type
3D 산점도. 더 보기...
| Import Statement: | import QtDataVisualization 1.12 |
| Since: | QtDataVisualization 1.0 |
| Inherits: | |
| Status: | Deprecated |
이 유형은 더 이상 사용되지 않습니다. 새로운 코드에서는 이 유형을 사용하지 않는 것을 강력히 권장합니다.
속성
- 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> [default]
이 속성은 그래프의 시리얼을 포함합니다. 기본적으로 이 속성은 빈 목록을 포함합니다. 시리얼을 설정하려면 addSeries() 메서드를 사용하거나 그래프의 자식 노드로 정의하십시오.
메서드 설명서
void addSeries(Scatter3DSeries series)
그래프에 ‘ series ’를 추가합니다. 그래프에는 여러 시계가 포함될 수 있지만, 축 세트는 하나뿐입니다. 새로 추가된 시계에 선택 항목이 지정된 경우, 해당 항목이 강조 표시되고 기존 선택 항목은 모두 해제됩니다. 추가된 시계 중 하나만 선택 상태로 유지될 수 있습니다.
AbstractGraph3D::hasSeries()도 참조하십시오 .
void removeSeries(Scatter3DSeries series)
그래프에서 ‘ series ’를 제거하십시오.
AbstractGraph3D::hasSeries()도 참조하십시오 .
© 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.