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 | |
6 | QT_BEGIN_NAMESPACE |
7 | |
8 | namespace 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 | */ |
23 | QAbstractNodeFactory::~QAbstractNodeFactory() |
24 | { |
25 | } |
26 | |
27 | QList<QAbstractNodeFactory *> node_factories; |
28 | |
29 | /* |
30 | * Registers the given \a factory |
31 | */ |
32 | void QAbstractNodeFactory::registerNodeFactory(QAbstractNodeFactory *factory) |
33 | { |
34 | node_factories << factory; |
35 | } |
36 | |
37 | /* |
38 | * \return the node factories. |
39 | */ |
40 | QList<QAbstractNodeFactory *> QAbstractNodeFactory::nodeFactories() |
41 | { |
42 | return node_factories; |
43 | } |
44 | |
45 | } // namespace Qt3DCore |
46 | |
47 | QT_END_NAMESPACE |
48 |