summaryrefslogtreecommitdiffstats
path: root/examples/graphs/3d/widgetgraphgallery/surfacegraphwidget.h
blob: c562c9f76b54af27d79694fb25a3a7690a599cbb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// Copyright (C) 2024 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
#ifndef SURFACEGRAPHWIDGET_H
#define SURFACEGRAPHWIDGET_H

#include <QtGraphsWidgets/q3dsurfacewidgetitem.h>
#include <QtQuickWidgets/qquickwidget.h>

class SurfaceGraphWidget : public QQuickWidget
{
    Q_OBJECT
public:
    Q_DISABLE_COPY_MOVE(SurfaceGraphWidget)

    SurfaceGraphWidget();
    ~SurfaceGraphWidget() override;

    void initialize();
    Q3DSurfaceWidgetItem *surfaceGraph() const;

private:
    Q3DSurfaceWidgetItem *m_surfaceGraph = nullptr;
};

#endif // SURFACEGRAPHWIDGET_H