1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3
4//
5// W A R N I N G
6// -------------
7//
8// This file is not part of the QtDataVisualization API. It exists purely as an
9// implementation detail. This header file may change from version to
10// version without notice, or even be removed.
11//
12// We mean it.
13
14#ifndef SCATTERRENDERITEM_P_H
15#define SCATTERRENDERITEM_P_H
16
17#include "abstractrenderitem_p.h"
18
19QT_BEGIN_NAMESPACE
20
21class ScatterRenderItem : public AbstractRenderItem
22{
23public:
24 ScatterRenderItem();
25 ScatterRenderItem(const ScatterRenderItem &other);
26 ScatterRenderItem &operator=(const ScatterRenderItem &) = default;
27 virtual ~ScatterRenderItem();
28
29 inline const QVector3D &position() const { return m_position; }
30 inline void setPosition(const QVector3D &pos)
31 {
32 if (m_position != pos)
33 m_position = pos;
34 }
35
36 inline bool isVisible() const { return m_visible; }
37 inline void setVisible(bool visible) { m_visible = visible; }
38
39protected:
40 QVector3D m_position;
41 bool m_visible;
42};
43typedef QList<ScatterRenderItem> ScatterRenderItemArray;
44
45QT_END_NAMESPACE
46
47#endif
48

source code of qtdatavis3d/src/datavisualization/data/scatterrenderitem_p.h