File indexing completed on 2025-01-26 05:19:14
0001 /* Atelier KDE Printer Host for 3D Printing 0002 Copyright (C) <2017-2018> 0003 Author: Patrick José Pereira - patrickjp@kde.org 0004 Kevin Ottens - ervin@kde.org 0005 0006 This program is free software; you can redistribute it and/or 0007 modify it under the terms of the GNU General Public License as 0008 published by the Free Software Foundation; either version 3 of 0009 the License or any later version accepted by the membership of 0010 KDE e.V. (or its successor approved by the membership of KDE 0011 e.V.), which shall act as a proxy defined in Section 14 of 0012 version 3 of the license. 0013 0014 This program is distributed in the hope that it will be useful, 0015 but WITHOUT ANY WARRANTY; without even the implied warranty of 0016 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 0017 GNU General Public License for more details. 0018 0019 You should have received a copy of the GNU General Public License 0020 along with this program. If not, see <http://www.gnu.org/licenses/>. 0021 */ 0022 0023 #pragma once 0024 0025 #include <QAttribute> 0026 #include <QGeometry> 0027 #include <Qt3DRender/QBuffer> 0028 0029 class LineMeshGeometry : public Qt3DRender::QGeometry 0030 { 0031 Q_OBJECT 0032 0033 public: 0034 LineMeshGeometry(const QVector<QVector3D> &vertices, Qt3DCore::QNode *parent = Q_NULLPTR); 0035 ~LineMeshGeometry() = default; 0036 int vertexCount(); 0037 0038 private: 0039 Qt3DRender::QAttribute *_positionAttribute; 0040 Qt3DRender::QBuffer *_vertexBuffer; 0041 };