1// Copyright (C) 2016 The Qt Company Ltd and/or its subsidiary(-ies).
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#include "qabstractnodefactory_p.h"
5
6QT_BEGIN_NAMESPACE
7
8namespace Qt3DCore {
9
10/*
11 * \internal
12 * \class Qt3DCore::QAbstractNodeFactory
13 * \inheaderfile Qt3DCore/QAbstractNodeFactory
14 * \inmodule Qt3DCore
15 *
16 * \TODO
17 */
18
19/*
20 * \fn Qt3DCore::QNode * Qt3DCore::QAbstractNodeFactory::createNode(const char *type)
21 * Creates a node of \a type.
22 */
23QAbstractNodeFactory::~QAbstractNodeFactory()
24{
25}
26
27QList<QAbstractNodeFactory *> node_factories;
28
29/*
30 * Registers the given \a factory
31 */
32void QAbstractNodeFactory::registerNodeFactory(QAbstractNodeFactory *factory)
33{
34 node_factories << factory;
35}
36
37/*
38 * \return the node factories.
39 */
40QList<QAbstractNodeFactory *> QAbstractNodeFactory::nodeFactories()
41{
42 return node_factories;
43}
44
45} // namespace Qt3DCore
46
47QT_END_NAMESPACE
48

source code of qt3d/src/core/nodes/qabstractnodefactory.cpp