-
Notifications
You must be signed in to change notification settings - Fork 0
/
scatterdatamodifier.h
50 lines (40 loc) · 1.32 KB
/
scatterdatamodifier.h
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
// Copyright (C) 2023 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
#ifndef SCATTERDATAMODIFIER_H
#define SCATTERDATAMODIFIER_H
#include "axesinputhandler.h"
#include <QtDataVisualization/q3dscatter.h>
#include <QtDataVisualization/qabstract3dseries.h>
class ScatterDataModifier : public QObject
{
Q_OBJECT
public:
explicit ScatterDataModifier(Q3DScatter *scatter, QObject *parent);
void addData();
public Q_SLOTS:
void setBackgroundEnabled(int enabled);
void setGridEnabled(int enabled);
void setSmoothDots(int smooth);
void changePresetCamera();
void toggleItemCount();
void toggleRanges();
void changeStyle(int style);
void changeTheme(int theme);
void changeShadowQuality(int quality);
void shadowQualityUpdatedByVisual(QAbstract3DGraph::ShadowQuality shadowQuality);
void toggleTimeStamp(qreal time);
Q_SIGNALS:
void backgroundEnabledChanged(bool enabled);
void gridEnabledChanged(bool enabled);
void shadowQualityChanged(int quality);
private:
QVector3D randVector();
Q3DScatter *m_graph = nullptr;
QAbstract3DSeries::Mesh m_style = QAbstract3DSeries::MeshSphere;
bool m_smooth = true;
int m_itemCount;
float m_curveDivider;
AxesInputHandler *m_inputHandler;
bool m_autoAdjust = true;
};
#endif