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 BARSERIESRENDERCACHE_P_H
15#define BARSERIESRENDERCACHE_P_H
16
17#include "datavisualizationglobal_p.h"
18#include "seriesrendercache_p.h"
19#include "qbar3dseries_p.h"
20#include "barrenderitem_p.h"
21
22QT_BEGIN_NAMESPACE
23
24class BarSeriesRenderCache : public SeriesRenderCache
25{
26public:
27 BarSeriesRenderCache(QAbstract3DSeries *series, Abstract3DRenderer *renderer);
28 virtual ~BarSeriesRenderCache();
29
30 void cleanup(TextureHelper *texHelper) override;
31
32 inline BarRenderItemArray &renderArray() { return m_renderArray; }
33 inline QBar3DSeries *series() const { return static_cast<QBar3DSeries *>(m_series); }
34 inline QList<BarRenderSliceItem> &sliceArray() { return m_sliceArray; }
35 inline void setVisualIndex(int index) { m_visualIndex = index; }
36 inline int visualIndex() {return m_visualIndex; }
37
38protected:
39 BarRenderItemArray m_renderArray;
40 QList<BarRenderSliceItem> m_sliceArray;
41 int m_visualIndex; // order of the series is relevant
42};
43
44QT_END_NAMESPACE
45
46#endif
47

source code of qtdatavis3d/src/datavisualization/engine/barseriesrendercache_p.h