qtgraphs/examples/graphs3d/widgetgraphgallery/surfacegraph.h

27 lines
566 B
C
Raw Normal View History

2023-03-02 13:45:23 +00:00
// Copyright (C) 2023 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
2023-03-02 13:45:23 +00:00
#ifndef SURFACEGRAPH_H
#define SURFACEGRAPH_H
#include <QtCore/qobject.h>
#include <QtGraphs/q3dsurface.h>
#include "surfacegraphmodifier.h"
2023-03-02 13:45:23 +00:00
class SurfaceGraph : public QObject
{
Q_OBJECT
public:
SurfaceGraph();
void initialize();
QWidget *surfaceWidget() { return m_surfaceWidget; }
private:
SurfaceGraphModifier *m_modifier = nullptr;
2023-03-02 13:45:23 +00:00
Q3DSurface *m_surfaceGraph = nullptr;
QWidget *m_surfaceWidget = nullptr;
};
#endif