Commit 17155ecf by Kai Westerkamp

Merge branch 'linux' into 'master'

Linux Mit diesen Änderungen baut das ganze bei mir auf Ubuntu 16.04 (mit QT5, nicht mit QT4, auch wenn die Abfrage in der Subdevision.pro es so aussehen lässt als würde das Projekt beides unterstützen). Kannst du schauen, ob das so immer noch auf Windows mit Visual Studio baut? See merge request !1
parents ea8c9669 ce3e717e
......@@ -34,6 +34,7 @@ RESOURCES += \
resources.qrc
win32: LIBS += -L$$PWD/./ -lassimp
unix: LIBS += -lassimp
INCLUDEPATH += $$PWD/assimp
DEPENDPATH += $$PWD/assimp
......@@ -22,8 +22,8 @@ public:
QSize minimumSizeHint() const;
QSize sizeHint() const;
boolean rotation;
boolean wireframe;
bool rotation;
bool wireframe;
public slots:
void loadNewMesh();
......@@ -43,7 +43,7 @@ protected:
void wheelEvent(QWheelEvent *event ) ;
private:
QVector3D* MainWidget::trackballPoint(int x, int y);
QVector3D* trackballPoint(int x, int y);
void rotate(QVector3D *newPos );
void move(QPointF *newPos );
......
/****************************************************************************
** Meta object code from reading C++ file 'camera.h'
**
** Created by: The Qt Meta Object Compiler version 67 (Qt 5.5.1)
**
** WARNING! All changes made in this file will be lost!
*****************************************************************************/
#include "camera.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'camera.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.5.1. It"
#error "cannot be used with the include files from this version of Qt."
#error "(The moc has changed too much.)"
#endif
QT_BEGIN_MOC_NAMESPACE
struct qt_meta_stringdata_Camera_t {
QByteArrayData data[3];
char stringdata0[13];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
qptrdiff(offsetof(qt_meta_stringdata_Camera_t, stringdata0) + ofs \
- idx * sizeof(QByteArrayData)) \
)
static const qt_meta_stringdata_Camera_t qt_meta_stringdata_Camera = {
{
QT_MOC_LITERAL(0, 0, 6), // "Camera"
QT_MOC_LITERAL(1, 7, 4), // "home"
QT_MOC_LITERAL(2, 12, 0) // ""
},
"Camera\0home\0"
};
#undef QT_MOC_LITERAL
static const uint qt_meta_data_Camera[] = {
// content:
7, // revision
0, // classname
0, 0, // classinfo
1, 14, // methods
0, 0, // properties
0, 0, // enums/sets
0, 0, // constructors
0, // flags
0, // signalCount
// slots: name, argc, parameters, tag, flags
1, 0, 19, 2, 0x0a /* Public */,
// slots: parameters
QMetaType::Void,
0 // eod
};
void Camera::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
if (_c == QMetaObject::InvokeMetaMethod) {
Camera *_t = static_cast<Camera *>(_o);
Q_UNUSED(_t)
switch (_id) {
case 0: _t->home(); break;
default: ;
}
}
Q_UNUSED(_a);
}
const QMetaObject Camera::staticMetaObject = {
{ &QObject::staticMetaObject, qt_meta_stringdata_Camera.data,
qt_meta_data_Camera, qt_static_metacall, Q_NULLPTR, Q_NULLPTR}
};
const QMetaObject *Camera::metaObject() const
{
return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
}
void *Camera::qt_metacast(const char *_clname)
{
if (!_clname) return Q_NULLPTR;
if (!strcmp(_clname, qt_meta_stringdata_Camera.stringdata0))
return static_cast<void*>(const_cast< Camera*>(this));
return QObject::qt_metacast(_clname);
}
int Camera::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
_id = QObject::qt_metacall(_c, _id, _a);
if (_id < 0)
return _id;
if (_c == QMetaObject::InvokeMetaMethod) {
if (_id < 1)
qt_static_metacall(this, _c, _id, _a);
_id -= 1;
} else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
if (_id < 1)
*reinterpret_cast<int*>(_a[0]) = -1;
_id -= 1;
}
return _id;
}
QT_END_MOC_NAMESPACE
/****************************************************************************
** Meta object code from reading C++ file 'mainwidget.h'
**
** Created by: The Qt Meta Object Compiler version 67 (Qt 5.5.1)
**
** WARNING! All changes made in this file will be lost!
*****************************************************************************/
#include "mainwidget.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'mainwidget.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.5.1. It"
#error "cannot be used with the include files from this version of Qt."
#error "(The moc has changed too much.)"
#endif
QT_BEGIN_MOC_NAMESPACE
struct qt_meta_stringdata_MainWidget_t {
QByteArrayData data[8];
char stringdata0[69];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
qptrdiff(offsetof(qt_meta_stringdata_MainWidget_t, stringdata0) + ofs \
- idx * sizeof(QByteArrayData)) \
)
static const qt_meta_stringdata_MainWidget_t qt_meta_stringdata_MainWidget = {
{
QT_MOC_LITERAL(0, 0, 10), // "MainWidget"
QT_MOC_LITERAL(1, 11, 11), // "loadNewMesh"
QT_MOC_LITERAL(2, 23, 0), // ""
QT_MOC_LITERAL(3, 24, 4), // "path"
QT_MOC_LITERAL(4, 29, 11), // "setRotation"
QT_MOC_LITERAL(5, 41, 7), // "started"
QT_MOC_LITERAL(6, 49, 12), // "setWireframe"
QT_MOC_LITERAL(7, 62, 6) // "active"
},
"MainWidget\0loadNewMesh\0\0path\0setRotation\0"
"started\0setWireframe\0active"
};
#undef QT_MOC_LITERAL
static const uint qt_meta_data_MainWidget[] = {
// content:
7, // revision
0, // classname
0, 0, // classinfo
4, 14, // methods
0, 0, // properties
0, 0, // enums/sets
0, 0, // constructors
0, // flags
0, // signalCount
// slots: name, argc, parameters, tag, flags
1, 0, 34, 2, 0x0a /* Public */,
1, 1, 35, 2, 0x0a /* Public */,
4, 1, 38, 2, 0x0a /* Public */,
6, 1, 41, 2, 0x0a /* Public */,
// slots: parameters
QMetaType::Void,
QMetaType::Void, QMetaType::QString, 3,
QMetaType::Void, QMetaType::Bool, 5,
QMetaType::Void, QMetaType::Bool, 7,
0 // eod
};
void MainWidget::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
if (_c == QMetaObject::InvokeMetaMethod) {
MainWidget *_t = static_cast<MainWidget *>(_o);
Q_UNUSED(_t)
switch (_id) {
case 0: _t->loadNewMesh(); break;
case 1: _t->loadNewMesh((*reinterpret_cast< QString(*)>(_a[1]))); break;
case 2: _t->setRotation((*reinterpret_cast< bool(*)>(_a[1]))); break;
case 3: _t->setWireframe((*reinterpret_cast< bool(*)>(_a[1]))); break;
default: ;
}
}
}
const QMetaObject MainWidget::staticMetaObject = {
{ &QOpenGLWidget::staticMetaObject, qt_meta_stringdata_MainWidget.data,
qt_meta_data_MainWidget, qt_static_metacall, Q_NULLPTR, Q_NULLPTR}
};
const QMetaObject *MainWidget::metaObject() const
{
return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
}
void *MainWidget::qt_metacast(const char *_clname)
{
if (!_clname) return Q_NULLPTR;
if (!strcmp(_clname, qt_meta_stringdata_MainWidget.stringdata0))
return static_cast<void*>(const_cast< MainWidget*>(this));
if (!strcmp(_clname, "QOpenGLFunctions_4_3_Core"))
return static_cast< QOpenGLFunctions_4_3_Core*>(const_cast< MainWidget*>(this));
return QOpenGLWidget::qt_metacast(_clname);
}
int MainWidget::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
_id = QOpenGLWidget::qt_metacall(_c, _id, _a);
if (_id < 0)
return _id;
if (_c == QMetaObject::InvokeMetaMethod) {
if (_id < 4)
qt_static_metacall(this, _c, _id, _a);
_id -= 4;
} else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
if (_id < 4)
*reinterpret_cast<int*>(_a[0]) = -1;
_id -= 4;
}
return _id;
}
QT_END_MOC_NAMESPACE
/****************************************************************************
** Meta object code from reading C++ file 'mainwindow.h'
**
** Created by: The Qt Meta Object Compiler version 67 (Qt 5.5.1)
**
** WARNING! All changes made in this file will be lost!
*****************************************************************************/
#include "mainwindow.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'mainwindow.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.5.1. It"
#error "cannot be used with the include files from this version of Qt."
#error "(The moc has changed too much.)"
#endif
QT_BEGIN_MOC_NAMESPACE
struct qt_meta_stringdata_MainWindow_t {
QByteArrayData data[1];
char stringdata0[11];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
qptrdiff(offsetof(qt_meta_stringdata_MainWindow_t, stringdata0) + ofs \
- idx * sizeof(QByteArrayData)) \
)
static const qt_meta_stringdata_MainWindow_t qt_meta_stringdata_MainWindow = {
{
QT_MOC_LITERAL(0, 0, 10) // "MainWindow"
},
"MainWindow"
};
#undef QT_MOC_LITERAL
static const uint qt_meta_data_MainWindow[] = {
// content:
7, // revision
0, // classname
0, 0, // classinfo
0, 0, // methods
0, 0, // properties
0, 0, // enums/sets
0, 0, // constructors
0, // flags
0, // signalCount
0 // eod
};
void MainWindow::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
Q_UNUSED(_o);
Q_UNUSED(_id);
Q_UNUSED(_c);
Q_UNUSED(_a);
}
const QMetaObject MainWindow::staticMetaObject = {
{ &QMainWindow::staticMetaObject, qt_meta_stringdata_MainWindow.data,
qt_meta_data_MainWindow, qt_static_metacall, Q_NULLPTR, Q_NULLPTR}
};
const QMetaObject *MainWindow::metaObject() const
{
return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
}
void *MainWindow::qt_metacast(const char *_clname)
{
if (!_clname) return Q_NULLPTR;
if (!strcmp(_clname, qt_meta_stringdata_MainWindow.stringdata0))
return static_cast<void*>(const_cast< MainWindow*>(this));
return QMainWindow::qt_metacast(_clname);
}
int MainWindow::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
_id = QMainWindow::qt_metacall(_c, _id, _a);
if (_id < 0)
return _id;
return _id;
}
QT_END_MOC_NAMESPACE
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment