1/****************************************************************************
2**
3** Copyright (C) 2016 The Qt Company Ltd.
4** Contact: https://www.qt.io/licensing/
5**
6** This file is part of the Qt Data Visualization module of the Qt Toolkit.
7**
8** $QT_BEGIN_LICENSE:GPL$
9** Commercial License Usage
10** Licensees holding valid commercial Qt licenses may use this file in
11** accordance with the commercial license agreement provided with the
12** Software or, alternatively, in accordance with the terms contained in
13** a written agreement between you and The Qt Company. For licensing terms
14** and conditions see https://www.qt.io/terms-conditions. For further
15** information use the contact form at https://www.qt.io/contact-us.
16**
17** GNU General Public License Usage
18** Alternatively, this file may be used under the terms of the GNU
19** General Public License version 3 or (at your option) any later version
20** approved by the KDE Free Qt Foundation. The licenses are as published by
21** the Free Software Foundation and appearing in the file LICENSE.GPL3
22** included in the packaging of this file. Please review the following
23** information to ensure the GNU General Public License requirements will
24** be met: https://www.gnu.org/licenses/gpl-3.0.html.
25**
26** $QT_END_LICENSE$
27**
28****************************************************************************/
29
30#ifndef DATAVISUALIZATIONQML2_PLUGIN_H
31#define DATAVISUALIZATIONQML2_PLUGIN_H
32
33#include "datavisualizationglobal_p.h"
34#include "declarativebars_p.h"
35#include "declarativescatter_p.h"
36#include "declarativesurface_p.h"
37#include "qitemmodelbardataproxy.h"
38#include "qitemmodelscatterdataproxy.h"
39#include "qitemmodelsurfacedataproxy.h"
40#include "qheightmapsurfacedataproxy.h"
41#include "qvalue3daxis.h"
42#include "qvalue3daxisformatter.h"
43#include "qlogvalue3daxisformatter.h"
44#include "qcategory3daxis.h"
45#include "q3dobject.h"
46#include "q3dcamera.h"
47#include "q3dscene.h"
48#include "q3dlight.h"
49#include "qabstract3dseries.h"
50#include "qbar3dseries.h"
51#include "qscatter3dseries.h"
52#include "qsurface3dseries.h"
53#include "declarativeseries_p.h"
54#include "q3dtheme.h"
55#include "declarativetheme_p.h"
56#include "q3dinputhandler.h"
57#include "qtouch3dinputhandler.h"
58#include "declarativecolor_p.h"
59#include "declarativescene_p.h"
60#include "qcustom3ditem.h"
61#include "qcustom3dlabel.h"
62#include "qcustom3dvolume.h"
63
64#include <QtQml/QQmlExtensionPlugin>
65
66using namespace QtDataVisualization;
67
68QML_DECLARE_TYPE(AbstractDeclarative)
69QML_DECLARE_TYPE(DeclarativeBars)
70QML_DECLARE_TYPE(DeclarativeScatter)
71QML_DECLARE_TYPE(DeclarativeSurface)
72
73QML_DECLARE_TYPE(QAbstractItemModel)
74
75QML_DECLARE_TYPE(QAbstract3DAxis)
76QML_DECLARE_TYPE(QCategory3DAxis)
77QML_DECLARE_TYPE(QValue3DAxis)
78QML_DECLARE_TYPE(QValue3DAxisFormatter)
79QML_DECLARE_TYPE(QLogValue3DAxisFormatter)
80
81QML_DECLARE_TYPE(Q3DScene)
82QML_DECLARE_TYPE(Declarative3DScene)
83QML_DECLARE_TYPE(Q3DObject)
84QML_DECLARE_TYPE(Q3DCamera)
85QML_DECLARE_TYPE(Q3DLight)
86
87QML_DECLARE_TYPE(QAbstractDataProxy)
88QML_DECLARE_TYPE(QBarDataProxy)
89QML_DECLARE_TYPE(QItemModelBarDataProxy)
90QML_DECLARE_TYPE(QScatterDataProxy)
91QML_DECLARE_TYPE(QItemModelScatterDataProxy)
92QML_DECLARE_TYPE(QSurfaceDataProxy)
93QML_DECLARE_TYPE(QItemModelSurfaceDataProxy)
94QML_DECLARE_TYPE(QHeightMapSurfaceDataProxy)
95
96QML_DECLARE_TYPE(QAbstract3DSeries)
97QML_DECLARE_TYPE(QBar3DSeries)
98QML_DECLARE_TYPE(QScatter3DSeries)
99QML_DECLARE_TYPE(QSurface3DSeries)
100QML_DECLARE_TYPE(DeclarativeBar3DSeries)
101QML_DECLARE_TYPE(DeclarativeScatter3DSeries)
102QML_DECLARE_TYPE(DeclarativeSurface3DSeries)
103
104QML_DECLARE_TYPE(ColorGradientStop)
105QML_DECLARE_TYPE(ColorGradient)
106
107QML_DECLARE_TYPE(DeclarativeColor)
108
109QML_DECLARE_TYPE(Q3DTheme)
110QML_DECLARE_TYPE(DeclarativeTheme3D)
111
112QML_DECLARE_TYPE(QAbstract3DInputHandler)
113QML_DECLARE_TYPE(Q3DInputHandler)
114QML_DECLARE_TYPE(QTouch3DInputHandler)
115
116QML_DECLARE_TYPE(QCustom3DItem)
117QML_DECLARE_TYPE(QCustom3DLabel)
118QML_DECLARE_TYPE(QCustom3DVolume)
119
120QT_BEGIN_NAMESPACE_DATAVISUALIZATION
121
122class QtDataVisualizationQml2Plugin : public QQmlExtensionPlugin
123{
124 Q_OBJECT
125 Q_PLUGIN_METADATA(IID QQmlExtensionInterface_iid)
126
127public:
128 QtDataVisualizationQml2Plugin(QObject *parent = 0) : QQmlExtensionPlugin(parent) { }
129 void registerTypes(const char *uri);
130};
131
132QT_END_NAMESPACE_DATAVISUALIZATION
133
134#endif // DATAVISUALIZATIONQML2_PLUGIN_H
135
136

source code of qtdatavis3d/src/datavisualizationqml2/datavisualizationqml2_plugin.h