Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Got exporting feature to work on vector layer data
- Loading branch information
1 parent
273b8f3
commit 798ca96
Showing
3 changed files
with
98 additions
and
90 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,36 @@ | ||
/*************************************************************************** | ||
qgs3dsceneexporter.h | ||
-------------------------------------- | ||
Date : June 2020 | ||
Copyright : (C) 2020 by Belgacem Nedjima | ||
Email : gb underscore nedjima at esi dot dz | ||
*************************************************************************** | ||
* * | ||
* This program is free software; you can redistribute it and/or modify * | ||
* it under the terms of the GNU General Public License as published by * | ||
* the Free Software Foundation; either version 2 of the License, or * | ||
* (at your option) any later version. * | ||
* * | ||
***************************************************************************/ | ||
|
||
#ifndef QGS3DSCENEEXPORTER_H | ||
#define QGS3DSCENEEXPORTER_H | ||
|
||
#include <Qt3DCore/QEntity> | ||
#include <Qt3DRender/QGeometry> | ||
#include <Qt3DRender/QAttribute> | ||
|
||
class QgsTessellatedPolygonGeometry; | ||
class Qgs3DMapSettings; | ||
|
||
class Qgs3DSceneExporter | ||
{ | ||
|
||
public: | ||
Qgs3DSceneExporter( ); | ||
public: | ||
Qgs3DSceneExporter( ); | ||
|
||
void parseEntity(Qt3DCore::QEntity* entity); | ||
void saveToFile(const QString& filePath); | ||
private: | ||
void processAttribute(Qt3DRender::QAttribute* attribute); | ||
void processGeometry(QgsTessellatedPolygonGeometry* geom); | ||
private: | ||
QVector<float> mVertices; | ||
void parseEntity( Qt3DCore::QEntity *entity ); | ||
void saveToFile( const QString &filePath ); | ||
private: | ||
void processAttribute( Qt3DRender::QAttribute *attribute ); | ||
private: | ||
QVector<float> mVertices; | ||
}; | ||
|
||
#endif // QGS3DSCENEEXPORTER_H |