1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3
4#include "scatterseriesrendercache_p.h"
5#include "scatterobjectbufferhelper_p.h"
6#include "scatterpointbufferhelper_p.h"
7
8QT_BEGIN_NAMESPACE
9
10ScatterSeriesRenderCache::ScatterSeriesRenderCache(QAbstract3DSeries *series,
11 Abstract3DRenderer *renderer)
12 : SeriesRenderCache(series, renderer),
13 m_itemSize(0.0f),
14 m_selectionIndexOffset(0),
15 m_staticBufferDirty(false),
16 m_oldRenderArraySize(0),
17 m_oldMeshFileName(QString()),
18 m_scatterBufferObj(0),
19 m_scatterBufferPoints(0),
20 m_visibilityChanged(false)
21{
22}
23
24ScatterSeriesRenderCache::~ScatterSeriesRenderCache()
25{
26 delete m_scatterBufferObj;
27 delete m_scatterBufferPoints;
28}
29
30void ScatterSeriesRenderCache::cleanup(TextureHelper *texHelper)
31{
32 m_renderArray.clear();
33
34 SeriesRenderCache::cleanup(texHelper);
35}
36
37QT_END_NAMESPACE
38

source code of qtdatavis3d/src/datavisualization/engine/scatterseriesrendercache.cpp