text in FileInfoWindow can be marked and copied,
code cleaning
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
#pragma once
|
||||
#include "..\Header\FileInterface.h"
|
||||
#include <QObject>
|
||||
#include <QOpenGLFunctions>
|
||||
#include <QOpenGLShaderProgram>
|
||||
#include <QOpenGLBuffer>
|
||||
#include <QOpenGLTexture>
|
||||
#include <QVector>
|
||||
#include "FileInterface.h"
|
||||
|
||||
|
||||
struct DrawInformation {
|
||||
unsigned int offset;
|
||||
@@ -22,20 +22,28 @@ public:
|
||||
GeometryEngine(QObject *parent = Q_NULLPTR);
|
||||
virtual ~GeometryEngine();
|
||||
|
||||
// attributes
|
||||
private:
|
||||
QOpenGLBuffer m_arrayBuf;
|
||||
QOpenGLBuffer m_indexBuf;
|
||||
QVector<Material>* m_materials = Q_NULLPTR;
|
||||
QVector<DrawInformation> m_drawList;
|
||||
BoundingBox m_boundings;
|
||||
Material* m_defaultMaterial;
|
||||
BoundingBox m_boundings;
|
||||
QVector<DrawInformation> m_drawList;
|
||||
|
||||
// functions
|
||||
private:
|
||||
void clearData();
|
||||
|
||||
public slots:
|
||||
void loadFile(QString filePath);
|
||||
public:
|
||||
void drawGeometry(QOpenGLShaderProgram *program, bool wireframe);
|
||||
|
||||
// slots
|
||||
public slots:
|
||||
void loadFile(QString filePath);
|
||||
|
||||
|
||||
// signals
|
||||
signals:
|
||||
void requestResetView();
|
||||
void sendMessage(QString message, int severity);
|
||||
|
||||
Reference in New Issue
Block a user