summaryrefslogtreecommitdiffstats
path: root/src/core/nodes/qabstractnodefactory.cpp
blob: 22ce3022913e13c393df968cc5215147e8818eb3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
// Copyright (C) 2016 The Qt Company Ltd and/or its subsidiary(-ies).
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only

#include "qabstractnodefactory_p.h"

QT_BEGIN_NAMESPACE

namespace Qt3DCore {

/*
 * \internal
 * \class Qt3DCore::QAbstractNodeFactory
 * \inheaderfile Qt3DCore/QAbstractNodeFactory
 * \inmodule Qt3DCore
 *
 * \TODO
 */

/*
 * \fn Qt3DCore::QNode * Qt3DCore::QAbstractNodeFactory::createNode(const char *type)
 * Creates a node of \a type.
 */
QAbstractNodeFactory::~QAbstractNodeFactory()
{
}

QList<QAbstractNodeFactory *> node_factories;

/*
 * Registers the given \a factory
 */
void QAbstractNodeFactory::registerNodeFactory(QAbstractNodeFactory *factory)
{
    node_factories << factory;
}

/*
 * \return the node factories.
 */
QList<QAbstractNodeFactory *> QAbstractNodeFactory::nodeFactories()
{
    return node_factories;
}

} // namespace Qt3DCore

QT_END_NAMESPACE