Scatter3D QML Type

3D散布図.詳細...

Import Statement: import QtDataVisualization 1.8
Since: QtDataVisualization 1.0
Inherits:

AbstractGraph3D

プロパティ

方法

詳細な説明

この型は、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"; }
    }
}

より詳細な使用例はSimple Scatter Graphを参照してください。

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 を追加します。グラフには複数の系列を含めることができますが、軸のセットは 1 つだけです。新しく追加された系列が選択項目を指定している場合、その項目はハイライトされ、既存の選択項目はクリアされます。アクティブな選択項目を持つことができるのは、追加された1つの系列だけである。

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.