-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathappworker.h
38 lines (34 loc) · 900 Bytes
/
appworker.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#ifndef APPWORKER_H
#define APPWORKER_H
#include <QObject>
#include <QFile>
#include <QtDebug>
#include <osg/Node>
#include <osg/Camera>
#include <osg/PrimitiveSet>
#include <osg/Texture2D>
#include <osg/TextureRectangle>
#include <osg/BufferObject>
#include <osg/BufferIndexBinding>
#include <osg/BindImageTexture>
#include <QVector>
class AppWorker : public QObject
{
Q_OBJECT
public:
explicit AppWorker(QObject *appGlobal);
signals:
public slots:
void loadPointCloud(const QString& filePath);
void loadObj(const QString& filePath);
private:
void warning(const QString& msg);
QByteArray readShaderFile(const QString& filePath);
osg::Geode* loadPointCloudFile(QFile & file);
osg::Geode* loadObjFile(QFile & file);
osg::Camera* createHUDCamera(bool rtt);
osg::Geode* createRectGeode();
private:
QObject* m_appGlobal = nullptr;
};
#endif // APPWORKER_H