// Copyright (C) 2014 Klaralvdalens Datakonsult AB (KDAB). // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause #ifndef SCENEMODIFIER_H #define SCENEMODIFIER_H #include #include #include #include #include #include #include #include #include #include class SceneModifier : public QObject { Q_OBJECT public: explicit SceneModifier(Qt3DCore::QEntity *rootEntity); ~SceneModifier(); public slots: void enableTorus(bool enabled); void enableCone(bool enabled); void enableCylinder(bool enabled); void enableCuboid(bool enabled); void enablePlane(bool enabled); void enableSphere(bool enabled); private: Qt3DCore::QEntity *m_rootEntity; Qt3DExtras::QTorusMesh *m_torus; Qt3DCore::QEntity *m_coneEntity; Qt3DCore::QEntity *m_cylinderEntity; Qt3DCore::QEntity *m_torusEntity; Qt3DCore::QEntity *m_cuboidEntity; Qt3DCore::QEntity *m_planeEntity; Qt3DCore::QEntity *m_sphereEntity; }; #endif // SCENEMODIFIER_H