anfang variable zeitschritte
git-svn-id: http://svn.lsim.tuxzone.org/trunk@31 4bec179b-ab65-46ed-a5f8-55b8b5c735d0
This commit is contained in:
@@ -1,162 +0,0 @@
|
||||
/****************************************************************************
|
||||
** Meta object code from reading C++ file 'fielditem.h'
|
||||
**
|
||||
** Created: Sun Nov 23 17:05:13 2008
|
||||
** by: The Qt Meta Object Compiler version 59 (Qt 4.4.3)
|
||||
**
|
||||
** WARNING! All changes made in this file will be lost!
|
||||
*****************************************************************************/
|
||||
|
||||
#include "../fielditem.h"
|
||||
#if !defined(Q_MOC_OUTPUT_REVISION)
|
||||
#error "The header file 'fielditem.h' doesn't include <QObject>."
|
||||
#elif Q_MOC_OUTPUT_REVISION != 59
|
||||
#error "This file was generated using the moc from 4.4.3. 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
|
||||
static const uint qt_meta_data_FieldItem[] = {
|
||||
|
||||
// content:
|
||||
1, // revision
|
||||
0, // classname
|
||||
0, 0, // classinfo
|
||||
15, 10, // methods
|
||||
0, 0, // properties
|
||||
0, 0, // enums/sets
|
||||
|
||||
// signals: signature, parameters, type, tag, flags
|
||||
18, 11, 10, 10, 0x05,
|
||||
48, 43, 10, 10, 0x05,
|
||||
78, 73, 10, 10, 0x05,
|
||||
109, 103, 10, 10, 0x05,
|
||||
130, 10, 10, 10, 0x05,
|
||||
155, 148, 10, 10, 0x05,
|
||||
183, 177, 10, 10, 0x05,
|
||||
|
||||
// slots: signature, parameters, type, tag, flags
|
||||
211, 204, 10, 10, 0x0a,
|
||||
252, 244, 10, 10, 0x0a,
|
||||
281, 273, 10, 10, 0x0a,
|
||||
302, 103, 10, 10, 0x0a,
|
||||
324, 319, 10, 10, 0x0a,
|
||||
341, 319, 10, 10, 0x0a,
|
||||
366, 357, 10, 10, 0x0a,
|
||||
398, 388, 10, 10, 0x0a,
|
||||
|
||||
0 // eod
|
||||
};
|
||||
|
||||
static const char qt_meta_stringdata_FieldItem[] = {
|
||||
"FieldItem\0\0newpos\0ScenePosChanged(QPointF)\0"
|
||||
"newX\0ScenePosXChanged(double)\0newY\0"
|
||||
"ScenePosYChanged(double)\0angle\0"
|
||||
"rotationChanged(int)\0rotationChanged()\0"
|
||||
"height\0heightChanged(double)\0width\0"
|
||||
"widthChanged(double)\0region\0"
|
||||
"handleSceneChange(QList<QRectF>)\0"
|
||||
"newXPos\0setScenePosX(double)\0newYPos\0"
|
||||
"setScenePosY(double)\0setRotation(int)\0"
|
||||
"rect\0setRectF(QRectF)\0setRect(QRectF)\0"
|
||||
"newWidth\0setRectFWidth(double)\0newHeight\0"
|
||||
"setRectFHeight(double)\0"
|
||||
};
|
||||
|
||||
const QMetaObject FieldItem::staticMetaObject = {
|
||||
{ &QObject::staticMetaObject, qt_meta_stringdata_FieldItem,
|
||||
qt_meta_data_FieldItem, 0 }
|
||||
};
|
||||
|
||||
const QMetaObject *FieldItem::metaObject() const
|
||||
{
|
||||
return &staticMetaObject;
|
||||
}
|
||||
|
||||
void *FieldItem::qt_metacast(const char *_clname)
|
||||
{
|
||||
if (!_clname) return 0;
|
||||
if (!strcmp(_clname, qt_meta_stringdata_FieldItem))
|
||||
return static_cast<void*>(const_cast< FieldItem*>(this));
|
||||
if (!strcmp(_clname, "QGraphicsItem"))
|
||||
return static_cast< QGraphicsItem*>(const_cast< FieldItem*>(this));
|
||||
return QObject::qt_metacast(_clname);
|
||||
}
|
||||
|
||||
int FieldItem::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) {
|
||||
switch (_id) {
|
||||
case 0: ScenePosChanged((*reinterpret_cast< QPointF(*)>(_a[1]))); break;
|
||||
case 1: ScenePosXChanged((*reinterpret_cast< double(*)>(_a[1]))); break;
|
||||
case 2: ScenePosYChanged((*reinterpret_cast< double(*)>(_a[1]))); break;
|
||||
case 3: rotationChanged((*reinterpret_cast< int(*)>(_a[1]))); break;
|
||||
case 4: rotationChanged(); break;
|
||||
case 5: heightChanged((*reinterpret_cast< double(*)>(_a[1]))); break;
|
||||
case 6: widthChanged((*reinterpret_cast< double(*)>(_a[1]))); break;
|
||||
case 7: handleSceneChange((*reinterpret_cast< const QList<QRectF>(*)>(_a[1]))); break;
|
||||
case 8: setScenePosX((*reinterpret_cast< double(*)>(_a[1]))); break;
|
||||
case 9: setScenePosY((*reinterpret_cast< double(*)>(_a[1]))); break;
|
||||
case 10: setRotation((*reinterpret_cast< int(*)>(_a[1]))); break;
|
||||
case 11: setRectF((*reinterpret_cast< QRectF(*)>(_a[1]))); break;
|
||||
case 12: setRect((*reinterpret_cast< QRectF(*)>(_a[1]))); break;
|
||||
case 13: setRectFWidth((*reinterpret_cast< double(*)>(_a[1]))); break;
|
||||
case 14: setRectFHeight((*reinterpret_cast< double(*)>(_a[1]))); break;
|
||||
}
|
||||
_id -= 15;
|
||||
}
|
||||
return _id;
|
||||
}
|
||||
|
||||
// SIGNAL 0
|
||||
void FieldItem::ScenePosChanged(QPointF _t1)
|
||||
{
|
||||
void *_a[] = { 0, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
|
||||
QMetaObject::activate(this, &staticMetaObject, 0, _a);
|
||||
}
|
||||
|
||||
// SIGNAL 1
|
||||
void FieldItem::ScenePosXChanged(double _t1)
|
||||
{
|
||||
void *_a[] = { 0, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
|
||||
QMetaObject::activate(this, &staticMetaObject, 1, _a);
|
||||
}
|
||||
|
||||
// SIGNAL 2
|
||||
void FieldItem::ScenePosYChanged(double _t1)
|
||||
{
|
||||
void *_a[] = { 0, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
|
||||
QMetaObject::activate(this, &staticMetaObject, 2, _a);
|
||||
}
|
||||
|
||||
// SIGNAL 3
|
||||
void FieldItem::rotationChanged(int _t1)
|
||||
{
|
||||
void *_a[] = { 0, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
|
||||
QMetaObject::activate(this, &staticMetaObject, 3, _a);
|
||||
}
|
||||
|
||||
// SIGNAL 4
|
||||
void FieldItem::rotationChanged()
|
||||
{
|
||||
QMetaObject::activate(this, &staticMetaObject, 4, 0);
|
||||
}
|
||||
|
||||
// SIGNAL 5
|
||||
void FieldItem::heightChanged(double _t1)
|
||||
{
|
||||
void *_a[] = { 0, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
|
||||
QMetaObject::activate(this, &staticMetaObject, 5, _a);
|
||||
}
|
||||
|
||||
// SIGNAL 6
|
||||
void FieldItem::widthChanged(double _t1)
|
||||
{
|
||||
void *_a[] = { 0, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
|
||||
QMetaObject::activate(this, &staticMetaObject, 6, _a);
|
||||
}
|
||||
QT_END_MOC_NAMESPACE
|
||||
@@ -1,171 +0,0 @@
|
||||
/****************************************************************************
|
||||
** Meta object code from reading C++ file 'graphicsellipseitem.h'
|
||||
**
|
||||
** Created: Sun Nov 23 17:05:12 2008
|
||||
** by: The Qt Meta Object Compiler version 59 (Qt 4.4.3)
|
||||
**
|
||||
** WARNING! All changes made in this file will be lost!
|
||||
*****************************************************************************/
|
||||
|
||||
#include "../graphicsellipseitem.h"
|
||||
#if !defined(Q_MOC_OUTPUT_REVISION)
|
||||
#error "The header file 'graphicsellipseitem.h' doesn't include <QObject>."
|
||||
#elif Q_MOC_OUTPUT_REVISION != 59
|
||||
#error "This file was generated using the moc from 4.4.3. 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
|
||||
static const uint qt_meta_data_GraphicsEllipseItem[] = {
|
||||
|
||||
// content:
|
||||
1, // revision
|
||||
0, // classname
|
||||
0, 0, // classinfo
|
||||
17, 10, // methods
|
||||
0, 0, // properties
|
||||
0, 0, // enums/sets
|
||||
|
||||
// signals: signature, parameters, type, tag, flags
|
||||
27, 21, 20, 20, 0x05,
|
||||
54, 21, 20, 20, 0x05,
|
||||
87, 81, 20, 20, 0x05,
|
||||
115, 108, 20, 20, 0x05,
|
||||
144, 137, 20, 20, 0x05,
|
||||
174, 169, 20, 20, 0x05,
|
||||
204, 199, 20, 20, 0x05,
|
||||
|
||||
// slots: signature, parameters, type, tag, flags
|
||||
240, 229, 20, 20, 0x0a,
|
||||
268, 20, 20, 20, 0x2a,
|
||||
298, 289, 20, 20, 0x0a,
|
||||
315, 289, 20, 20, 0x0a,
|
||||
333, 289, 20, 20, 0x0a,
|
||||
356, 289, 20, 20, 0x0a,
|
||||
387, 379, 20, 20, 0x0a,
|
||||
416, 408, 20, 20, 0x0a,
|
||||
437, 20, 20, 20, 0x0a,
|
||||
470, 289, 20, 20, 0x0a,
|
||||
|
||||
0 // eod
|
||||
};
|
||||
|
||||
static const char qt_meta_stringdata_GraphicsEllipseItem[] = {
|
||||
"GraphicsEllipseItem\0\0speed\0"
|
||||
"startSpeedXChanged(double)\0"
|
||||
"startSpeedYChanged(double)\0masse\0"
|
||||
"masseChanged(double)\0Charge\0"
|
||||
"chargeChanged(double)\0newpos\0"
|
||||
"ScenePosChanged(QPointF)\0newX\0"
|
||||
"ScenePosXChanged(double)\0newY\0"
|
||||
"ScenePosYChanged(double)\0startPoint\0"
|
||||
"calculateProbePath(QPointF)\0"
|
||||
"calculateProbePath()\0theValue\0"
|
||||
"setMasse(double)\0setCharge(double)\0"
|
||||
"setStartSpeedX(double)\0setStartSpeedY(double)\0"
|
||||
"newPosY\0setScenePosY(double)\0newPosX\0"
|
||||
"setScenePosX(double)\0"
|
||||
"handleSceneChange(QList<QRectF>)\0"
|
||||
"setFlightPath(QPainterPath)\0"
|
||||
};
|
||||
|
||||
const QMetaObject GraphicsEllipseItem::staticMetaObject = {
|
||||
{ &QObject::staticMetaObject, qt_meta_stringdata_GraphicsEllipseItem,
|
||||
qt_meta_data_GraphicsEllipseItem, 0 }
|
||||
};
|
||||
|
||||
const QMetaObject *GraphicsEllipseItem::metaObject() const
|
||||
{
|
||||
return &staticMetaObject;
|
||||
}
|
||||
|
||||
void *GraphicsEllipseItem::qt_metacast(const char *_clname)
|
||||
{
|
||||
if (!_clname) return 0;
|
||||
if (!strcmp(_clname, qt_meta_stringdata_GraphicsEllipseItem))
|
||||
return static_cast<void*>(const_cast< GraphicsEllipseItem*>(this));
|
||||
if (!strcmp(_clname, "QGraphicsEllipseItem"))
|
||||
return static_cast< QGraphicsEllipseItem*>(const_cast< GraphicsEllipseItem*>(this));
|
||||
return QObject::qt_metacast(_clname);
|
||||
}
|
||||
|
||||
int GraphicsEllipseItem::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) {
|
||||
switch (_id) {
|
||||
case 0: startSpeedXChanged((*reinterpret_cast< double(*)>(_a[1]))); break;
|
||||
case 1: startSpeedYChanged((*reinterpret_cast< double(*)>(_a[1]))); break;
|
||||
case 2: masseChanged((*reinterpret_cast< double(*)>(_a[1]))); break;
|
||||
case 3: chargeChanged((*reinterpret_cast< double(*)>(_a[1]))); break;
|
||||
case 4: ScenePosChanged((*reinterpret_cast< QPointF(*)>(_a[1]))); break;
|
||||
case 5: ScenePosXChanged((*reinterpret_cast< double(*)>(_a[1]))); break;
|
||||
case 6: ScenePosYChanged((*reinterpret_cast< double(*)>(_a[1]))); break;
|
||||
case 7: calculateProbePath((*reinterpret_cast< QPointF(*)>(_a[1]))); break;
|
||||
case 8: calculateProbePath(); break;
|
||||
case 9: setMasse((*reinterpret_cast< const double(*)>(_a[1]))); break;
|
||||
case 10: setCharge((*reinterpret_cast< const double(*)>(_a[1]))); break;
|
||||
case 11: setStartSpeedX((*reinterpret_cast< double(*)>(_a[1]))); break;
|
||||
case 12: setStartSpeedY((*reinterpret_cast< double(*)>(_a[1]))); break;
|
||||
case 13: setScenePosY((*reinterpret_cast< double(*)>(_a[1]))); break;
|
||||
case 14: setScenePosX((*reinterpret_cast< double(*)>(_a[1]))); break;
|
||||
case 15: handleSceneChange((*reinterpret_cast< const QList<QRectF>(*)>(_a[1]))); break;
|
||||
case 16: setFlightPath((*reinterpret_cast< const QPainterPath(*)>(_a[1]))); break;
|
||||
}
|
||||
_id -= 17;
|
||||
}
|
||||
return _id;
|
||||
}
|
||||
|
||||
// SIGNAL 0
|
||||
void GraphicsEllipseItem::startSpeedXChanged(double _t1)
|
||||
{
|
||||
void *_a[] = { 0, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
|
||||
QMetaObject::activate(this, &staticMetaObject, 0, _a);
|
||||
}
|
||||
|
||||
// SIGNAL 1
|
||||
void GraphicsEllipseItem::startSpeedYChanged(double _t1)
|
||||
{
|
||||
void *_a[] = { 0, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
|
||||
QMetaObject::activate(this, &staticMetaObject, 1, _a);
|
||||
}
|
||||
|
||||
// SIGNAL 2
|
||||
void GraphicsEllipseItem::masseChanged(double _t1)
|
||||
{
|
||||
void *_a[] = { 0, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
|
||||
QMetaObject::activate(this, &staticMetaObject, 2, _a);
|
||||
}
|
||||
|
||||
// SIGNAL 3
|
||||
void GraphicsEllipseItem::chargeChanged(double _t1)
|
||||
{
|
||||
void *_a[] = { 0, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
|
||||
QMetaObject::activate(this, &staticMetaObject, 3, _a);
|
||||
}
|
||||
|
||||
// SIGNAL 4
|
||||
void GraphicsEllipseItem::ScenePosChanged(QPointF _t1)
|
||||
{
|
||||
void *_a[] = { 0, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
|
||||
QMetaObject::activate(this, &staticMetaObject, 4, _a);
|
||||
}
|
||||
|
||||
// SIGNAL 5
|
||||
void GraphicsEllipseItem::ScenePosXChanged(double _t1)
|
||||
{
|
||||
void *_a[] = { 0, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
|
||||
QMetaObject::activate(this, &staticMetaObject, 5, _a);
|
||||
}
|
||||
|
||||
// SIGNAL 6
|
||||
void GraphicsEllipseItem::ScenePosYChanged(double _t1)
|
||||
{
|
||||
void *_a[] = { 0, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
|
||||
QMetaObject::activate(this, &staticMetaObject, 6, _a);
|
||||
}
|
||||
QT_END_MOC_NAMESPACE
|
||||
@@ -1,74 +0,0 @@
|
||||
/****************************************************************************
|
||||
** Meta object code from reading C++ file 'graphicsview.h'
|
||||
**
|
||||
** Created: Sun Nov 23 17:05:11 2008
|
||||
** by: The Qt Meta Object Compiler version 59 (Qt 4.4.3)
|
||||
**
|
||||
** WARNING! All changes made in this file will be lost!
|
||||
*****************************************************************************/
|
||||
|
||||
#include "../graphicsview.h"
|
||||
#if !defined(Q_MOC_OUTPUT_REVISION)
|
||||
#error "The header file 'graphicsview.h' doesn't include <QObject>."
|
||||
#elif Q_MOC_OUTPUT_REVISION != 59
|
||||
#error "This file was generated using the moc from 4.4.3. 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
|
||||
static const uint qt_meta_data_GraphicsView[] = {
|
||||
|
||||
// content:
|
||||
1, // revision
|
||||
0, // classname
|
||||
0, 0, // classinfo
|
||||
2, 10, // methods
|
||||
0, 0, // properties
|
||||
0, 0, // enums/sets
|
||||
|
||||
// slots: signature, parameters, type, tag, flags
|
||||
14, 13, 13, 13, 0x0a,
|
||||
34, 13, 13, 13, 0x0a,
|
||||
|
||||
0 // eod
|
||||
};
|
||||
|
||||
static const char qt_meta_stringdata_GraphicsView[] = {
|
||||
"GraphicsView\0\0enableOGLViewport()\0"
|
||||
"disableOGLViewport()\0"
|
||||
};
|
||||
|
||||
const QMetaObject GraphicsView::staticMetaObject = {
|
||||
{ &QGraphicsView::staticMetaObject, qt_meta_stringdata_GraphicsView,
|
||||
qt_meta_data_GraphicsView, 0 }
|
||||
};
|
||||
|
||||
const QMetaObject *GraphicsView::metaObject() const
|
||||
{
|
||||
return &staticMetaObject;
|
||||
}
|
||||
|
||||
void *GraphicsView::qt_metacast(const char *_clname)
|
||||
{
|
||||
if (!_clname) return 0;
|
||||
if (!strcmp(_clname, qt_meta_stringdata_GraphicsView))
|
||||
return static_cast<void*>(const_cast< GraphicsView*>(this));
|
||||
return QGraphicsView::qt_metacast(_clname);
|
||||
}
|
||||
|
||||
int GraphicsView::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
|
||||
{
|
||||
_id = QGraphicsView::qt_metacall(_c, _id, _a);
|
||||
if (_id < 0)
|
||||
return _id;
|
||||
if (_c == QMetaObject::InvokeMetaMethod) {
|
||||
switch (_id) {
|
||||
case 0: enableOGLViewport(); break;
|
||||
case 1: disableOGLViewport(); break;
|
||||
}
|
||||
_id -= 2;
|
||||
}
|
||||
return _id;
|
||||
}
|
||||
QT_END_MOC_NAMESPACE
|
||||
@@ -1,103 +0,0 @@
|
||||
/****************************************************************************
|
||||
** Meta object code from reading C++ file 'homobfielditem.h'
|
||||
**
|
||||
** Created: Sun Nov 23 17:05:19 2008
|
||||
** by: The Qt Meta Object Compiler version 59 (Qt 4.4.3)
|
||||
**
|
||||
** WARNING! All changes made in this file will be lost!
|
||||
*****************************************************************************/
|
||||
|
||||
#include "../homobfielditem.h"
|
||||
#if !defined(Q_MOC_OUTPUT_REVISION)
|
||||
#error "The header file 'homobfielditem.h' doesn't include <QObject>."
|
||||
#elif Q_MOC_OUTPUT_REVISION != 59
|
||||
#error "This file was generated using the moc from 4.4.3. 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
|
||||
static const uint qt_meta_data_HomoBFieldItem[] = {
|
||||
|
||||
// content:
|
||||
1, // revision
|
||||
0, // classname
|
||||
0, 0, // classinfo
|
||||
6, 10, // methods
|
||||
0, 0, // properties
|
||||
0, 0, // enums/sets
|
||||
|
||||
// signals: signature, parameters, type, tag, flags
|
||||
25, 16, 15, 15, 0x05,
|
||||
48, 16, 15, 15, 0x05,
|
||||
|
||||
// slots: signature, parameters, type, tag, flags
|
||||
75, 16, 15, 15, 0x0a,
|
||||
100, 16, 15, 15, 0x0a,
|
||||
126, 16, 15, 15, 0x0a,
|
||||
156, 16, 15, 15, 0x0a,
|
||||
|
||||
0 // eod
|
||||
};
|
||||
|
||||
static const char qt_meta_stringdata_HomoBFieldItem[] = {
|
||||
"HomoBFieldItem\0\0theValue\0"
|
||||
"directionChanged(bool)\0"
|
||||
"fluxDensityChanged(double)\0"
|
||||
"setOuterPenWidth(double)\0"
|
||||
"setFieldLineDistance(int)\0"
|
||||
"setIsDirectionIntoPlane(bool)\0"
|
||||
"setFluxDensity(double)\0"
|
||||
};
|
||||
|
||||
const QMetaObject HomoBFieldItem::staticMetaObject = {
|
||||
{ &FieldItem::staticMetaObject, qt_meta_stringdata_HomoBFieldItem,
|
||||
qt_meta_data_HomoBFieldItem, 0 }
|
||||
};
|
||||
|
||||
const QMetaObject *HomoBFieldItem::metaObject() const
|
||||
{
|
||||
return &staticMetaObject;
|
||||
}
|
||||
|
||||
void *HomoBFieldItem::qt_metacast(const char *_clname)
|
||||
{
|
||||
if (!_clname) return 0;
|
||||
if (!strcmp(_clname, qt_meta_stringdata_HomoBFieldItem))
|
||||
return static_cast<void*>(const_cast< HomoBFieldItem*>(this));
|
||||
return FieldItem::qt_metacast(_clname);
|
||||
}
|
||||
|
||||
int HomoBFieldItem::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
|
||||
{
|
||||
_id = FieldItem::qt_metacall(_c, _id, _a);
|
||||
if (_id < 0)
|
||||
return _id;
|
||||
if (_c == QMetaObject::InvokeMetaMethod) {
|
||||
switch (_id) {
|
||||
case 0: directionChanged((*reinterpret_cast< bool(*)>(_a[1]))); break;
|
||||
case 1: fluxDensityChanged((*reinterpret_cast< double(*)>(_a[1]))); break;
|
||||
case 2: setOuterPenWidth((*reinterpret_cast< double(*)>(_a[1]))); break;
|
||||
case 3: setFieldLineDistance((*reinterpret_cast< int(*)>(_a[1]))); break;
|
||||
case 4: setIsDirectionIntoPlane((*reinterpret_cast< bool(*)>(_a[1]))); break;
|
||||
case 5: setFluxDensity((*reinterpret_cast< double(*)>(_a[1]))); break;
|
||||
}
|
||||
_id -= 6;
|
||||
}
|
||||
return _id;
|
||||
}
|
||||
|
||||
// SIGNAL 0
|
||||
void HomoBFieldItem::directionChanged(bool _t1)
|
||||
{
|
||||
void *_a[] = { 0, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
|
||||
QMetaObject::activate(this, &staticMetaObject, 0, _a);
|
||||
}
|
||||
|
||||
// SIGNAL 1
|
||||
void HomoBFieldItem::fluxDensityChanged(double _t1)
|
||||
{
|
||||
void *_a[] = { 0, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
|
||||
QMetaObject::activate(this, &staticMetaObject, 1, _a);
|
||||
}
|
||||
QT_END_MOC_NAMESPACE
|
||||
@@ -1,62 +0,0 @@
|
||||
/****************************************************************************
|
||||
** Meta object code from reading C++ file 'homobfieldwidget.h'
|
||||
**
|
||||
** Created: Sun Nov 23 17:05:20 2008
|
||||
** by: The Qt Meta Object Compiler version 59 (Qt 4.4.3)
|
||||
**
|
||||
** WARNING! All changes made in this file will be lost!
|
||||
*****************************************************************************/
|
||||
|
||||
#include "../homobfieldwidget.h"
|
||||
#if !defined(Q_MOC_OUTPUT_REVISION)
|
||||
#error "The header file 'homobfieldwidget.h' doesn't include <QObject>."
|
||||
#elif Q_MOC_OUTPUT_REVISION != 59
|
||||
#error "This file was generated using the moc from 4.4.3. 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
|
||||
static const uint qt_meta_data_HomoBFieldWidget[] = {
|
||||
|
||||
// content:
|
||||
1, // revision
|
||||
0, // classname
|
||||
0, 0, // classinfo
|
||||
0, 0, // methods
|
||||
0, 0, // properties
|
||||
0, 0, // enums/sets
|
||||
|
||||
0 // eod
|
||||
};
|
||||
|
||||
static const char qt_meta_stringdata_HomoBFieldWidget[] = {
|
||||
"HomoBFieldWidget\0"
|
||||
};
|
||||
|
||||
const QMetaObject HomoBFieldWidget::staticMetaObject = {
|
||||
{ &QWidget::staticMetaObject, qt_meta_stringdata_HomoBFieldWidget,
|
||||
qt_meta_data_HomoBFieldWidget, 0 }
|
||||
};
|
||||
|
||||
const QMetaObject *HomoBFieldWidget::metaObject() const
|
||||
{
|
||||
return &staticMetaObject;
|
||||
}
|
||||
|
||||
void *HomoBFieldWidget::qt_metacast(const char *_clname)
|
||||
{
|
||||
if (!_clname) return 0;
|
||||
if (!strcmp(_clname, qt_meta_stringdata_HomoBFieldWidget))
|
||||
return static_cast<void*>(const_cast< HomoBFieldWidget*>(this));
|
||||
return QWidget::qt_metacast(_clname);
|
||||
}
|
||||
|
||||
int HomoBFieldWidget::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
|
||||
{
|
||||
_id = QWidget::qt_metacall(_c, _id, _a);
|
||||
if (_id < 0)
|
||||
return _id;
|
||||
return _id;
|
||||
}
|
||||
QT_END_MOC_NAMESPACE
|
||||
@@ -1,87 +0,0 @@
|
||||
/****************************************************************************
|
||||
** Meta object code from reading C++ file 'homoefielditem.h'
|
||||
**
|
||||
** Created: Sun Nov 23 17:05:14 2008
|
||||
** by: The Qt Meta Object Compiler version 59 (Qt 4.4.3)
|
||||
**
|
||||
** WARNING! All changes made in this file will be lost!
|
||||
*****************************************************************************/
|
||||
|
||||
#include "../homoefielditem.h"
|
||||
#if !defined(Q_MOC_OUTPUT_REVISION)
|
||||
#error "The header file 'homoefielditem.h' doesn't include <QObject>."
|
||||
#elif Q_MOC_OUTPUT_REVISION != 59
|
||||
#error "This file was generated using the moc from 4.4.3. 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
|
||||
static const uint qt_meta_data_HomoEFieldItem[] = {
|
||||
|
||||
// content:
|
||||
1, // revision
|
||||
0, // classname
|
||||
0, 0, // classinfo
|
||||
3, 10, // methods
|
||||
0, 0, // properties
|
||||
0, 0, // enums/sets
|
||||
|
||||
// signals: signature, parameters, type, tag, flags
|
||||
27, 16, 15, 15, 0x05,
|
||||
|
||||
// slots: signature, parameters, type, tag, flags
|
||||
53, 16, 15, 15, 0x0a,
|
||||
84, 75, 15, 15, 0x0a,
|
||||
|
||||
0 // eod
|
||||
};
|
||||
|
||||
static const char qt_meta_stringdata_HomoEFieldItem[] = {
|
||||
"HomoEFieldItem\0\0fieldPower\0"
|
||||
"fieldPowerChanged(double)\0"
|
||||
"setFieldPower(double)\0theValue\0"
|
||||
"setOuterPenWidth(double)\0"
|
||||
};
|
||||
|
||||
const QMetaObject HomoEFieldItem::staticMetaObject = {
|
||||
{ &FieldItem::staticMetaObject, qt_meta_stringdata_HomoEFieldItem,
|
||||
qt_meta_data_HomoEFieldItem, 0 }
|
||||
};
|
||||
|
||||
const QMetaObject *HomoEFieldItem::metaObject() const
|
||||
{
|
||||
return &staticMetaObject;
|
||||
}
|
||||
|
||||
void *HomoEFieldItem::qt_metacast(const char *_clname)
|
||||
{
|
||||
if (!_clname) return 0;
|
||||
if (!strcmp(_clname, qt_meta_stringdata_HomoEFieldItem))
|
||||
return static_cast<void*>(const_cast< HomoEFieldItem*>(this));
|
||||
return FieldItem::qt_metacast(_clname);
|
||||
}
|
||||
|
||||
int HomoEFieldItem::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
|
||||
{
|
||||
_id = FieldItem::qt_metacall(_c, _id, _a);
|
||||
if (_id < 0)
|
||||
return _id;
|
||||
if (_c == QMetaObject::InvokeMetaMethod) {
|
||||
switch (_id) {
|
||||
case 0: fieldPowerChanged((*reinterpret_cast< double(*)>(_a[1]))); break;
|
||||
case 1: setFieldPower((*reinterpret_cast< double(*)>(_a[1]))); break;
|
||||
case 2: setOuterPenWidth((*reinterpret_cast< double(*)>(_a[1]))); break;
|
||||
}
|
||||
_id -= 3;
|
||||
}
|
||||
return _id;
|
||||
}
|
||||
|
||||
// SIGNAL 0
|
||||
void HomoEFieldItem::fieldPowerChanged(double _t1)
|
||||
{
|
||||
void *_a[] = { 0, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
|
||||
QMetaObject::activate(this, &staticMetaObject, 0, _a);
|
||||
}
|
||||
QT_END_MOC_NAMESPACE
|
||||
@@ -1,62 +0,0 @@
|
||||
/****************************************************************************
|
||||
** Meta object code from reading C++ file 'homoefieldwidget.h'
|
||||
**
|
||||
** Created: Sun Nov 23 17:05:17 2008
|
||||
** by: The Qt Meta Object Compiler version 59 (Qt 4.4.3)
|
||||
**
|
||||
** WARNING! All changes made in this file will be lost!
|
||||
*****************************************************************************/
|
||||
|
||||
#include "../homoefieldwidget.h"
|
||||
#if !defined(Q_MOC_OUTPUT_REVISION)
|
||||
#error "The header file 'homoefieldwidget.h' doesn't include <QObject>."
|
||||
#elif Q_MOC_OUTPUT_REVISION != 59
|
||||
#error "This file was generated using the moc from 4.4.3. 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
|
||||
static const uint qt_meta_data_HomoEFieldWidget[] = {
|
||||
|
||||
// content:
|
||||
1, // revision
|
||||
0, // classname
|
||||
0, 0, // classinfo
|
||||
0, 0, // methods
|
||||
0, 0, // properties
|
||||
0, 0, // enums/sets
|
||||
|
||||
0 // eod
|
||||
};
|
||||
|
||||
static const char qt_meta_stringdata_HomoEFieldWidget[] = {
|
||||
"HomoEFieldWidget\0"
|
||||
};
|
||||
|
||||
const QMetaObject HomoEFieldWidget::staticMetaObject = {
|
||||
{ &QWidget::staticMetaObject, qt_meta_stringdata_HomoEFieldWidget,
|
||||
qt_meta_data_HomoEFieldWidget, 0 }
|
||||
};
|
||||
|
||||
const QMetaObject *HomoEFieldWidget::metaObject() const
|
||||
{
|
||||
return &staticMetaObject;
|
||||
}
|
||||
|
||||
void *HomoEFieldWidget::qt_metacast(const char *_clname)
|
||||
{
|
||||
if (!_clname) return 0;
|
||||
if (!strcmp(_clname, qt_meta_stringdata_HomoEFieldWidget))
|
||||
return static_cast<void*>(const_cast< HomoEFieldWidget*>(this));
|
||||
return QWidget::qt_metacast(_clname);
|
||||
}
|
||||
|
||||
int HomoEFieldWidget::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
|
||||
{
|
||||
_id = QWidget::qt_metacall(_c, _id, _a);
|
||||
if (_id < 0)
|
||||
return _id;
|
||||
return _id;
|
||||
}
|
||||
QT_END_MOC_NAMESPACE
|
||||
@@ -1,107 +0,0 @@
|
||||
/****************************************************************************
|
||||
** Meta object code from reading C++ file 'lsim.h'
|
||||
**
|
||||
** Created: Sun Nov 23 17:17:41 2008
|
||||
** by: The Qt Meta Object Compiler version 59 (Qt 4.4.3)
|
||||
**
|
||||
** WARNING! All changes made in this file will be lost!
|
||||
*****************************************************************************/
|
||||
|
||||
#include "../lsim.h"
|
||||
#if !defined(Q_MOC_OUTPUT_REVISION)
|
||||
#error "The header file 'lsim.h' doesn't include <QObject>."
|
||||
#elif Q_MOC_OUTPUT_REVISION != 59
|
||||
#error "This file was generated using the moc from 4.4.3. 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
|
||||
static const uint qt_meta_data_lsim[] = {
|
||||
|
||||
// content:
|
||||
1, // revision
|
||||
0, // classname
|
||||
0, 0, // classinfo
|
||||
11, 10, // methods
|
||||
0, 0, // properties
|
||||
0, 0, // enums/sets
|
||||
|
||||
// signals: signature, parameters, type, tag, flags
|
||||
11, 6, 5, 5, 0x05,
|
||||
|
||||
// slots: signature, parameters, type, tag, flags
|
||||
41, 5, 5, 5, 0x08,
|
||||
56, 49, 5, 5, 0x08,
|
||||
82, 49, 5, 5, 0x08,
|
||||
114, 6, 5, 5, 0x08,
|
||||
132, 5, 5, 5, 0x08,
|
||||
156, 5, 5, 5, 0x08,
|
||||
175, 5, 5, 5, 0x08,
|
||||
188, 5, 5, 5, 0x08,
|
||||
215, 5, 5, 5, 0x08,
|
||||
251, 243, 5, 5, 0x08,
|
||||
|
||||
0 // eod
|
||||
};
|
||||
|
||||
static const char qt_meta_stringdata_lsim[] = {
|
||||
"lsim\0\0mode\0windowModeChanged(WindowMode)\0"
|
||||
"about()\0action\0actModeSwitcher(QAction*)\0"
|
||||
"actWindowModeSwitcher(QAction*)\0"
|
||||
"setSceneMode(int)\0updateDockFieldWidget()\0"
|
||||
"startCalculation()\0startTimer()\0"
|
||||
"handleDockLocationChange()\0"
|
||||
"handleUpDownActionChanges()\0newMode\0"
|
||||
"initWindowMode(WindowMode)\0"
|
||||
};
|
||||
|
||||
const QMetaObject lsim::staticMetaObject = {
|
||||
{ &QMainWindow::staticMetaObject, qt_meta_stringdata_lsim,
|
||||
qt_meta_data_lsim, 0 }
|
||||
};
|
||||
|
||||
const QMetaObject *lsim::metaObject() const
|
||||
{
|
||||
return &staticMetaObject;
|
||||
}
|
||||
|
||||
void *lsim::qt_metacast(const char *_clname)
|
||||
{
|
||||
if (!_clname) return 0;
|
||||
if (!strcmp(_clname, qt_meta_stringdata_lsim))
|
||||
return static_cast<void*>(const_cast< lsim*>(this));
|
||||
return QMainWindow::qt_metacast(_clname);
|
||||
}
|
||||
|
||||
int lsim::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
|
||||
{
|
||||
_id = QMainWindow::qt_metacall(_c, _id, _a);
|
||||
if (_id < 0)
|
||||
return _id;
|
||||
if (_c == QMetaObject::InvokeMetaMethod) {
|
||||
switch (_id) {
|
||||
case 0: windowModeChanged((*reinterpret_cast< WindowMode(*)>(_a[1]))); break;
|
||||
case 1: about(); break;
|
||||
case 2: actModeSwitcher((*reinterpret_cast< QAction*(*)>(_a[1]))); break;
|
||||
case 3: actWindowModeSwitcher((*reinterpret_cast< QAction*(*)>(_a[1]))); break;
|
||||
case 4: setSceneMode((*reinterpret_cast< int(*)>(_a[1]))); break;
|
||||
case 5: updateDockFieldWidget(); break;
|
||||
case 6: startCalculation(); break;
|
||||
case 7: startTimer(); break;
|
||||
case 8: handleDockLocationChange(); break;
|
||||
case 9: handleUpDownActionChanges(); break;
|
||||
case 10: initWindowMode((*reinterpret_cast< WindowMode(*)>(_a[1]))); break;
|
||||
}
|
||||
_id -= 11;
|
||||
}
|
||||
return _id;
|
||||
}
|
||||
|
||||
// SIGNAL 0
|
||||
void lsim::windowModeChanged(WindowMode _t1)
|
||||
{
|
||||
void *_a[] = { 0, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
|
||||
QMetaObject::activate(this, &staticMetaObject, 0, _a);
|
||||
}
|
||||
QT_END_MOC_NAMESPACE
|
||||
@@ -1,62 +0,0 @@
|
||||
/****************************************************************************
|
||||
** Meta object code from reading C++ file 'probechargewidget.h'
|
||||
**
|
||||
** Created: Sun Nov 23 17:05:18 2008
|
||||
** by: The Qt Meta Object Compiler version 59 (Qt 4.4.3)
|
||||
**
|
||||
** WARNING! All changes made in this file will be lost!
|
||||
*****************************************************************************/
|
||||
|
||||
#include "../probechargewidget.h"
|
||||
#if !defined(Q_MOC_OUTPUT_REVISION)
|
||||
#error "The header file 'probechargewidget.h' doesn't include <QObject>."
|
||||
#elif Q_MOC_OUTPUT_REVISION != 59
|
||||
#error "This file was generated using the moc from 4.4.3. 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
|
||||
static const uint qt_meta_data_ProbeChargeWidget[] = {
|
||||
|
||||
// content:
|
||||
1, // revision
|
||||
0, // classname
|
||||
0, 0, // classinfo
|
||||
0, 0, // methods
|
||||
0, 0, // properties
|
||||
0, 0, // enums/sets
|
||||
|
||||
0 // eod
|
||||
};
|
||||
|
||||
static const char qt_meta_stringdata_ProbeChargeWidget[] = {
|
||||
"ProbeChargeWidget\0"
|
||||
};
|
||||
|
||||
const QMetaObject ProbeChargeWidget::staticMetaObject = {
|
||||
{ &QWidget::staticMetaObject, qt_meta_stringdata_ProbeChargeWidget,
|
||||
qt_meta_data_ProbeChargeWidget, 0 }
|
||||
};
|
||||
|
||||
const QMetaObject *ProbeChargeWidget::metaObject() const
|
||||
{
|
||||
return &staticMetaObject;
|
||||
}
|
||||
|
||||
void *ProbeChargeWidget::qt_metacast(const char *_clname)
|
||||
{
|
||||
if (!_clname) return 0;
|
||||
if (!strcmp(_clname, qt_meta_stringdata_ProbeChargeWidget))
|
||||
return static_cast<void*>(const_cast< ProbeChargeWidget*>(this));
|
||||
return QWidget::qt_metacast(_clname);
|
||||
}
|
||||
|
||||
int ProbeChargeWidget::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
|
||||
{
|
||||
_id = QWidget::qt_metacall(_c, _id, _a);
|
||||
if (_id < 0)
|
||||
return _id;
|
||||
return _id;
|
||||
}
|
||||
QT_END_MOC_NAMESPACE
|
||||
@@ -1,197 +0,0 @@
|
||||
/****************************************************************************
|
||||
** Meta object code from reading C++ file 'simulscene.h'
|
||||
**
|
||||
** Created: Sun Nov 23 17:17:43 2008
|
||||
** by: The Qt Meta Object Compiler version 59 (Qt 4.4.3)
|
||||
**
|
||||
** WARNING! All changes made in this file will be lost!
|
||||
*****************************************************************************/
|
||||
|
||||
#include "../simulscene.h"
|
||||
#if !defined(Q_MOC_OUTPUT_REVISION)
|
||||
#error "The header file 'simulscene.h' doesn't include <QObject>."
|
||||
#elif Q_MOC_OUTPUT_REVISION != 59
|
||||
#error "This file was generated using the moc from 4.4.3. 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
|
||||
static const uint qt_meta_data_SimulScene[] = {
|
||||
|
||||
// content:
|
||||
1, // revision
|
||||
0, // classname
|
||||
0, 0, // classinfo
|
||||
30, 10, // methods
|
||||
0, 0, // properties
|
||||
0, 0, // enums/sets
|
||||
|
||||
// signals: signature, parameters, type, tag, flags
|
||||
17, 12, 11, 11, 0x05,
|
||||
45, 39, 11, 11, 0x05,
|
||||
75, 63, 11, 11, 0x05,
|
||||
113, 102, 11, 11, 0x05,
|
||||
147, 139, 11, 11, 0x05,
|
||||
190, 181, 11, 11, 0x05,
|
||||
|
||||
// slots: signature, parameters, type, tag, flags
|
||||
219, 12, 11, 11, 0x0a,
|
||||
243, 11, 11, 11, 0x0a,
|
||||
256, 11, 11, 11, 0x0a,
|
||||
274, 268, 11, 11, 0x0a,
|
||||
291, 11, 11, 11, 0x0a,
|
||||
323, 318, 11, 11, 0x0a,
|
||||
346, 11, 11, 11, 0x0a,
|
||||
365, 39, 11, 11, 0x0a,
|
||||
388, 379, 11, 11, 0x0a,
|
||||
417, 11, 410, 11, 0x0a,
|
||||
433, 139, 11, 11, 0x0a,
|
||||
460, 11, 11, 11, 0x2a,
|
||||
483, 181, 11, 11, 0x0a,
|
||||
518, 508, 11, 11, 0x0a,
|
||||
552, 11, 11, 11, 0x0a,
|
||||
580, 508, 11, 11, 0x0a,
|
||||
612, 11, 11, 11, 0x0a,
|
||||
638, 508, 11, 11, 0x0a,
|
||||
673, 11, 11, 11, 0x0a,
|
||||
702, 508, 11, 11, 0x0a,
|
||||
740, 11, 11, 11, 0x0a,
|
||||
777, 772, 11, 11, 0x08,
|
||||
802, 11, 11, 11, 0x28,
|
||||
823, 11, 11, 11, 0x08,
|
||||
|
||||
0 // eod
|
||||
};
|
||||
|
||||
static const char qt_meta_stringdata_SimulScene[] = {
|
||||
"SimulScene\0\0mode\0sceneModeChanged(int)\0"
|
||||
"steps\0stepsChanged(int)\0timePerStep\0"
|
||||
"timePerStepChanged(double)\0meterPerPx\0"
|
||||
"meterPerPxChanged(double)\0visible\0"
|
||||
"flightPathVisibilityChanged(bool)\0"
|
||||
"duration\0timeLineDurationChanged(int)\0"
|
||||
"setSceneMode(SceneMode)\0startTimer()\0"
|
||||
"stopTimer()\0yesno\0pauseTimer(bool)\0"
|
||||
"deleteSelectedFieldItems()\0time\0"
|
||||
"setTimePerStep(double)\0startCalculation()\0"
|
||||
"setSteps(int)\0theValue\0setMeterPerPx(double)\0"
|
||||
"double\0getMeterPerPx()\0"
|
||||
"setFlightPathVisible(bool)\0"
|
||||
"setFlightPathVisible()\0setTimeLineDuration(int)\0"
|
||||
"fieldItem\0moveFieldItemDown(QGraphicsItem*)\0"
|
||||
"moveSelectedFieldItemDown()\0"
|
||||
"moveFieldItemUp(QGraphicsItem*)\0"
|
||||
"moveSelectedFieldItemUp()\0"
|
||||
"moveFieldItemOnTop(QGraphicsItem*)\0"
|
||||
"moveSelectedFieldItemOnTop()\0"
|
||||
"moveFieldItemOnBottom(QGraphicsItem*)\0"
|
||||
"moveSelectedFieldItemOnBottom()\0move\0"
|
||||
"displayResizeRects(bool)\0displayResizeRects()\0"
|
||||
"moveResizeRects()\0"
|
||||
};
|
||||
|
||||
const QMetaObject SimulScene::staticMetaObject = {
|
||||
{ &QGraphicsScene::staticMetaObject, qt_meta_stringdata_SimulScene,
|
||||
qt_meta_data_SimulScene, 0 }
|
||||
};
|
||||
|
||||
const QMetaObject *SimulScene::metaObject() const
|
||||
{
|
||||
return &staticMetaObject;
|
||||
}
|
||||
|
||||
void *SimulScene::qt_metacast(const char *_clname)
|
||||
{
|
||||
if (!_clname) return 0;
|
||||
if (!strcmp(_clname, qt_meta_stringdata_SimulScene))
|
||||
return static_cast<void*>(const_cast< SimulScene*>(this));
|
||||
return QGraphicsScene::qt_metacast(_clname);
|
||||
}
|
||||
|
||||
int SimulScene::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
|
||||
{
|
||||
_id = QGraphicsScene::qt_metacall(_c, _id, _a);
|
||||
if (_id < 0)
|
||||
return _id;
|
||||
if (_c == QMetaObject::InvokeMetaMethod) {
|
||||
switch (_id) {
|
||||
case 0: sceneModeChanged((*reinterpret_cast< int(*)>(_a[1]))); break;
|
||||
case 1: stepsChanged((*reinterpret_cast< int(*)>(_a[1]))); break;
|
||||
case 2: timePerStepChanged((*reinterpret_cast< double(*)>(_a[1]))); break;
|
||||
case 3: meterPerPxChanged((*reinterpret_cast< double(*)>(_a[1]))); break;
|
||||
case 4: flightPathVisibilityChanged((*reinterpret_cast< bool(*)>(_a[1]))); break;
|
||||
case 5: timeLineDurationChanged((*reinterpret_cast< int(*)>(_a[1]))); break;
|
||||
case 6: setSceneMode((*reinterpret_cast< SceneMode(*)>(_a[1]))); break;
|
||||
case 7: startTimer(); break;
|
||||
case 8: stopTimer(); break;
|
||||
case 9: pauseTimer((*reinterpret_cast< bool(*)>(_a[1]))); break;
|
||||
case 10: deleteSelectedFieldItems(); break;
|
||||
case 11: setTimePerStep((*reinterpret_cast< double(*)>(_a[1]))); break;
|
||||
case 12: startCalculation(); break;
|
||||
case 13: setSteps((*reinterpret_cast< int(*)>(_a[1]))); break;
|
||||
case 14: setMeterPerPx((*reinterpret_cast< double(*)>(_a[1]))); break;
|
||||
case 15: { double _r = getMeterPerPx();
|
||||
if (_a[0]) *reinterpret_cast< double*>(_a[0]) = _r; } break;
|
||||
case 16: setFlightPathVisible((*reinterpret_cast< bool(*)>(_a[1]))); break;
|
||||
case 17: setFlightPathVisible(); break;
|
||||
case 18: setTimeLineDuration((*reinterpret_cast< int(*)>(_a[1]))); break;
|
||||
case 19: moveFieldItemDown((*reinterpret_cast< QGraphicsItem*(*)>(_a[1]))); break;
|
||||
case 20: moveSelectedFieldItemDown(); break;
|
||||
case 21: moveFieldItemUp((*reinterpret_cast< QGraphicsItem*(*)>(_a[1]))); break;
|
||||
case 22: moveSelectedFieldItemUp(); break;
|
||||
case 23: moveFieldItemOnTop((*reinterpret_cast< QGraphicsItem*(*)>(_a[1]))); break;
|
||||
case 24: moveSelectedFieldItemOnTop(); break;
|
||||
case 25: moveFieldItemOnBottom((*reinterpret_cast< QGraphicsItem*(*)>(_a[1]))); break;
|
||||
case 26: moveSelectedFieldItemOnBottom(); break;
|
||||
case 27: displayResizeRects((*reinterpret_cast< bool(*)>(_a[1]))); break;
|
||||
case 28: displayResizeRects(); break;
|
||||
case 29: moveResizeRects(); break;
|
||||
}
|
||||
_id -= 30;
|
||||
}
|
||||
return _id;
|
||||
}
|
||||
|
||||
// SIGNAL 0
|
||||
void SimulScene::sceneModeChanged(int _t1)
|
||||
{
|
||||
void *_a[] = { 0, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
|
||||
QMetaObject::activate(this, &staticMetaObject, 0, _a);
|
||||
}
|
||||
|
||||
// SIGNAL 1
|
||||
void SimulScene::stepsChanged(int _t1)
|
||||
{
|
||||
void *_a[] = { 0, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
|
||||
QMetaObject::activate(this, &staticMetaObject, 1, _a);
|
||||
}
|
||||
|
||||
// SIGNAL 2
|
||||
void SimulScene::timePerStepChanged(double _t1)
|
||||
{
|
||||
void *_a[] = { 0, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
|
||||
QMetaObject::activate(this, &staticMetaObject, 2, _a);
|
||||
}
|
||||
|
||||
// SIGNAL 3
|
||||
void SimulScene::meterPerPxChanged(double _t1)
|
||||
{
|
||||
void *_a[] = { 0, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
|
||||
QMetaObject::activate(this, &staticMetaObject, 3, _a);
|
||||
}
|
||||
|
||||
// SIGNAL 4
|
||||
void SimulScene::flightPathVisibilityChanged(bool _t1)
|
||||
{
|
||||
void *_a[] = { 0, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
|
||||
QMetaObject::activate(this, &staticMetaObject, 4, _a);
|
||||
}
|
||||
|
||||
// SIGNAL 5
|
||||
void SimulScene::timeLineDurationChanged(int _t1)
|
||||
{
|
||||
void *_a[] = { 0, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
|
||||
QMetaObject::activate(this, &staticMetaObject, 5, _a);
|
||||
}
|
||||
QT_END_MOC_NAMESPACE
|
||||
@@ -1,71 +0,0 @@
|
||||
/****************************************************************************
|
||||
** Meta object code from reading C++ file 'stopperitem.h'
|
||||
**
|
||||
** Created: Sun Nov 23 17:05:21 2008
|
||||
** by: The Qt Meta Object Compiler version 59 (Qt 4.4.3)
|
||||
**
|
||||
** WARNING! All changes made in this file will be lost!
|
||||
*****************************************************************************/
|
||||
|
||||
#include "../stopperitem.h"
|
||||
#if !defined(Q_MOC_OUTPUT_REVISION)
|
||||
#error "The header file 'stopperitem.h' doesn't include <QObject>."
|
||||
#elif Q_MOC_OUTPUT_REVISION != 59
|
||||
#error "This file was generated using the moc from 4.4.3. 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
|
||||
static const uint qt_meta_data_StopperItem[] = {
|
||||
|
||||
// content:
|
||||
1, // revision
|
||||
0, // classname
|
||||
0, 0, // classinfo
|
||||
1, 10, // methods
|
||||
0, 0, // properties
|
||||
0, 0, // enums/sets
|
||||
|
||||
// slots: signature, parameters, type, tag, flags
|
||||
22, 13, 12, 12, 0x0a,
|
||||
|
||||
0 // eod
|
||||
};
|
||||
|
||||
static const char qt_meta_stringdata_StopperItem[] = {
|
||||
"StopperItem\0\0theValue\0setOuterPenWidth(double)\0"
|
||||
};
|
||||
|
||||
const QMetaObject StopperItem::staticMetaObject = {
|
||||
{ &FieldItem::staticMetaObject, qt_meta_stringdata_StopperItem,
|
||||
qt_meta_data_StopperItem, 0 }
|
||||
};
|
||||
|
||||
const QMetaObject *StopperItem::metaObject() const
|
||||
{
|
||||
return &staticMetaObject;
|
||||
}
|
||||
|
||||
void *StopperItem::qt_metacast(const char *_clname)
|
||||
{
|
||||
if (!_clname) return 0;
|
||||
if (!strcmp(_clname, qt_meta_stringdata_StopperItem))
|
||||
return static_cast<void*>(const_cast< StopperItem*>(this));
|
||||
return FieldItem::qt_metacast(_clname);
|
||||
}
|
||||
|
||||
int StopperItem::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
|
||||
{
|
||||
_id = FieldItem::qt_metacall(_c, _id, _a);
|
||||
if (_id < 0)
|
||||
return _id;
|
||||
if (_c == QMetaObject::InvokeMetaMethod) {
|
||||
switch (_id) {
|
||||
case 0: setOuterPenWidth((*reinterpret_cast< double(*)>(_a[1]))); break;
|
||||
}
|
||||
_id -= 1;
|
||||
}
|
||||
return _id;
|
||||
}
|
||||
QT_END_MOC_NAMESPACE
|
||||
@@ -1,62 +0,0 @@
|
||||
/****************************************************************************
|
||||
** Meta object code from reading C++ file 'stopperwidget.h'
|
||||
**
|
||||
** Created: Sun Nov 23 17:05:22 2008
|
||||
** by: The Qt Meta Object Compiler version 59 (Qt 4.4.3)
|
||||
**
|
||||
** WARNING! All changes made in this file will be lost!
|
||||
*****************************************************************************/
|
||||
|
||||
#include "../stopperwidget.h"
|
||||
#if !defined(Q_MOC_OUTPUT_REVISION)
|
||||
#error "The header file 'stopperwidget.h' doesn't include <QObject>."
|
||||
#elif Q_MOC_OUTPUT_REVISION != 59
|
||||
#error "This file was generated using the moc from 4.4.3. 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
|
||||
static const uint qt_meta_data_StopperWidget[] = {
|
||||
|
||||
// content:
|
||||
1, // revision
|
||||
0, // classname
|
||||
0, 0, // classinfo
|
||||
0, 0, // methods
|
||||
0, 0, // properties
|
||||
0, 0, // enums/sets
|
||||
|
||||
0 // eod
|
||||
};
|
||||
|
||||
static const char qt_meta_stringdata_StopperWidget[] = {
|
||||
"StopperWidget\0"
|
||||
};
|
||||
|
||||
const QMetaObject StopperWidget::staticMetaObject = {
|
||||
{ &QWidget::staticMetaObject, qt_meta_stringdata_StopperWidget,
|
||||
qt_meta_data_StopperWidget, 0 }
|
||||
};
|
||||
|
||||
const QMetaObject *StopperWidget::metaObject() const
|
||||
{
|
||||
return &staticMetaObject;
|
||||
}
|
||||
|
||||
void *StopperWidget::qt_metacast(const char *_clname)
|
||||
{
|
||||
if (!_clname) return 0;
|
||||
if (!strcmp(_clname, qt_meta_stringdata_StopperWidget))
|
||||
return static_cast<void*>(const_cast< StopperWidget*>(this));
|
||||
return QWidget::qt_metacast(_clname);
|
||||
}
|
||||
|
||||
int StopperWidget::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
|
||||
{
|
||||
_id = QWidget::qt_metacall(_c, _id, _a);
|
||||
if (_id < 0)
|
||||
return _id;
|
||||
return _id;
|
||||
}
|
||||
QT_END_MOC_NAMESPACE
|
||||
File diff suppressed because it is too large
Load Diff
@@ -41,6 +41,7 @@ GraphicsEllipseItem::GraphicsEllipseItem() {
|
||||
currProbePath = new QList<QPointF>;
|
||||
speedListX = new QList<double>;
|
||||
speedListY = new QList<double>;
|
||||
elapsedTimeList= new QList<double>;
|
||||
setupVars();
|
||||
|
||||
}
|
||||
@@ -84,6 +85,7 @@ void GraphicsEllipseItem::handleSceneChange(const QList<QRectF> & /*region*/) {
|
||||
\fn GraphicsEllipseItem::calculateProbePath()
|
||||
*/
|
||||
void GraphicsEllipseItem::calculateProbePath(QPointF startPoint) {
|
||||
|
||||
double startSpeedX = getStartSpeedX();
|
||||
double startSpeedY = getStartSpeedY();
|
||||
SimulScene* myScene = dynamic_cast<SimulScene*>(scene());
|
||||
@@ -98,16 +100,15 @@ void GraphicsEllipseItem::calculateProbePath(QPointF startPoint) {
|
||||
currProbePath->clear();
|
||||
speedListX->clear();
|
||||
speedListY->clear();
|
||||
elapsedTimeList->clear();
|
||||
//startwerte in die listen setzen
|
||||
currProbePath->append(startPoint);
|
||||
speedListX->append(startSpeedX);
|
||||
speedListY->append(startSpeedY);
|
||||
realSimulTime = 0;
|
||||
elapsedTimeList->append(0);
|
||||
|
||||
//startpunkt in den Pfad setzen
|
||||
flightPath = QPainterPath(startPoint);
|
||||
int path_entry_step = ceil(steps/5000.0); //jeder entry_step(te) step wird eingetragen
|
||||
|
||||
|
||||
for(int i = 1; i< steps;++i) {
|
||||
//Geschwindigkeit (gesamt)
|
||||
@@ -119,24 +120,60 @@ void GraphicsEllipseItem::calculateProbePath(QPointF startPoint) {
|
||||
double powerX = myScene->getPowerAt(currProbePath->at(i-1), charge, speedListX->at(i-1),speedListY->at(i-1), 'x');
|
||||
double powerY = myScene->getPowerAt(currProbePath->at(i-1), charge, speedListX->at(i-1),speedListY->at(i-1), 'y');
|
||||
|
||||
//if (combinedSpeed != 0) timePerStep = (myScene->getTimePerStep() * combinedSpeed / 0.001 );
|
||||
|
||||
if (combinedSpeed != 0) timePerStep = 0.008/(combinedSpeed/meterPerPx);
|
||||
if (timePerStep < (1/10.0 * myScene->getTimePerStep())) timePerStep = 1/10.0 * myScene->getTimePerStep();
|
||||
if (timePerStep > (19.0/10.0 * myScene->getTimePerStep())) timePerStep = 19.0/10.0 * myScene->getTimePerStep();
|
||||
|
||||
double newspeedX = speedListX->at(i-1) + (powerX/myMasse * timePerStep);
|
||||
double newspeedY = speedListY->at(i-1) + (powerY/myMasse * timePerStep);
|
||||
//qDebug()<<timePerStep;
|
||||
|
||||
double deltaDistXconst = speedListX->at(i-1) * (timePerStep); //v0*t
|
||||
double deltaDistYconst = speedListY->at(i-1) * (timePerStep);
|
||||
double deltaSpeedX = (powerX/myMasse * timePerStep);
|
||||
double deltaSpeedY = (powerY/myMasse * timePerStep);
|
||||
|
||||
//double deltaDistXconst = (speedListX->at(i-1) + newspeedX)/2.0 * timePerStep; //v0*t
|
||||
//double deltaDistYconst = (speedListY->at(i-1) + newspeedY)/2.0 * timePerStep; //mittel zw alt,neu um fehler zu mindern
|
||||
|
||||
double deltaDistXaccel = 0.5 * (powerX/myMasse * timePerStep * timePerStep); // 1/2 * F/m * t*t
|
||||
double deltaDistYaccel = 0.5 * (powerY/myMasse * timePerStep * timePerStep);
|
||||
|
||||
double deltaDistX = (deltaDistXconst + deltaDistXaccel);
|
||||
double deltaDistY = (deltaDistYconst + deltaDistYaccel);
|
||||
double newspeedX = speedListX->at(i-1) + deltaSpeedX;
|
||||
double newspeedY = speedListY->at(i-1) + deltaSpeedY;
|
||||
|
||||
double deltaDistX = (newspeedX * timePerStep);
|
||||
double deltaDistY = (newspeedY * timePerStep);
|
||||
|
||||
//qDebug() << deltaDistY;
|
||||
|
||||
|
||||
|
||||
//if (i >= 4) {
|
||||
|
||||
|
||||
// double dvx = (-9*speedListX->at(i-4)+37*speedListX->at(i-3)-59*speedListX->at(i-2)+55*speedListX->at(i-1))/24.0;
|
||||
// double dvy = (-9*speedListY->at(i-4)+37*speedListY->at(i-3)-59*speedListY->at(i-2)+55*speedListY->at(i-1))/24.0;
|
||||
//double dvx = (xp) / timePerStep ;
|
||||
//double dvy = (yp) / timePerStep ;
|
||||
|
||||
// deltaDistX = timePerStep/24.0 *(speedListX->at(i-3)- 5*speedListX->at(i-2)+19*speedListX->at(i-1)+9*dvx);
|
||||
// deltaDistY = timePerStep/24.0 *(speedListY->at(i-3)- 5*speedListY->at(i-2)+19*speedListY->at(i-1)+9*dvy);
|
||||
//qDebug()<< deltaDistX<< " "<< deltaDistY;
|
||||
|
||||
//}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// double k1x = deltaDistX;
|
||||
// double k1y = deltaDistY;
|
||||
// QPointF k2point = QPointF(currProbePath->at(i-1).x() * meterPerPx + k1x/2.0,currProbePath->at(i-1).y()* meterPerPx + k1y/2.0);
|
||||
// double k2x = myScene->getPowerAt( k2point , charge, k1x/timePerStep,k1y/timePerStep, 'x') /myMasse * timePerStep/2.0 * timePerStep;
|
||||
// double k2y = myScene->getPowerAt( k2point , charge, k1x/timePerStep,k1y/timePerStep, 'y') /myMasse * timePerStep/2.0 * timePerStep;
|
||||
// QPointF k3point = QPointF(currProbePath->at(i-1).x()* meterPerPx + k2x/2.0,currProbePath->at(i-1).y()* meterPerPx + k2y/2.0);
|
||||
// double k3x = myScene->getPowerAt( k3point , charge, k2x/timePerStep,k2y/timePerStep, 'x') /myMasse * timePerStep/2.0 * timePerStep;
|
||||
// double k3y = myScene->getPowerAt( k3point , charge, k2x/timePerStep,k2y/timePerStep, 'y') /myMasse * timePerStep/2.0 * timePerStep;
|
||||
// QPointF k4point = QPointF(currProbePath->at(i-1).x() + k3x,currProbePath->at(i-1).y() + k3y);
|
||||
// double k4x = myScene->getPowerAt( k4point , charge, k3x/timePerStep,k3y/timePerStep, 'x') /myMasse * timePerStep * timePerStep;
|
||||
// double k4y = myScene->getPowerAt( k4point , charge, k3x/timePerStep,k3y/timePerStep, 'y') /myMasse * timePerStep * timePerStep;
|
||||
//
|
||||
// deltaDistX = (k1x +2*k2x+2*k3x+k4x)/6.0;
|
||||
// deltaDistY = (k1y +2*k2y+2*k3y+k4y)/6.0;
|
||||
|
||||
|
||||
QPointF newPoint(currProbePath->at(i-1).x() + deltaDistX/meterPerPx ,currProbePath->at(i-1).y() + deltaDistY/meterPerPx);
|
||||
|
||||
@@ -145,12 +182,15 @@ void GraphicsEllipseItem::calculateProbePath(QPointF startPoint) {
|
||||
currProbePath->append(newPoint);
|
||||
speedListX->append(newspeedX);
|
||||
speedListY->append(newspeedY);
|
||||
realSimulTime += timePerStep;
|
||||
if (i%path_entry_step == 0 || i==steps) flightPath.lineTo(newPoint);
|
||||
|
||||
|
||||
elapsedTimeList->append(elapsedTimeList->at(i-1) + timePerStep);
|
||||
}
|
||||
|
||||
int path_entry_step = currProbePath->count()/5000.0; //jeder entry_step(te) step wird eingetragen
|
||||
if (path_entry_step == 0) path_entry_step = 1;
|
||||
for (int i = 1; i< currProbePath->count();++i) {
|
||||
if (i%path_entry_step == 0 || i==currProbePath->count()) flightPath.lineTo(currProbePath->at(i));
|
||||
}
|
||||
|
||||
|
||||
//qDebug()<< "Probe Path: " <<*currProbePath;
|
||||
//qDebug()<< "speed x: "<<*speedListX;
|
||||
@@ -161,6 +201,9 @@ void GraphicsEllipseItem::calculateProbePath(QPointF startPoint) {
|
||||
//qDebug()<< getMasse(5e+20);
|
||||
|
||||
}
|
||||
QList<double> *GraphicsEllipseItem::getElapsedTimeList() {
|
||||
return elapsedTimeList;
|
||||
}
|
||||
|
||||
|
||||
double GraphicsEllipseItem::getMasse(double speed) {
|
||||
@@ -254,7 +297,4 @@ void GraphicsEllipseItem::setFlightPath ( const QPainterPath& theValue ) {
|
||||
}
|
||||
|
||||
|
||||
double GraphicsEllipseItem::getRealSimulTime() const {
|
||||
return realSimulTime;
|
||||
}
|
||||
|
||||
|
||||
@@ -38,6 +38,7 @@ class GraphicsEllipseItem : public QObject , public QGraphicsEllipseItem {
|
||||
|
||||
~GraphicsEllipseItem();
|
||||
QList<QPointF> * getCurrProbePath();
|
||||
QList<double> *getElapsedTimeList();
|
||||
|
||||
double getCharge() const;
|
||||
double getStartSpeedX() const;
|
||||
@@ -63,8 +64,8 @@ class GraphicsEllipseItem : public QObject , public QGraphicsEllipseItem {
|
||||
QList<double> *speedListX;
|
||||
///Liste Der Geschwindigkeitsanteile in y-richtung
|
||||
QList<double> *speedListY;
|
||||
///Gesamtzeilt der der Simulation
|
||||
double realSimulTime;
|
||||
///Bisher vergangene Zeit an einen bestimmten Schritt
|
||||
QList<double> *elapsedTimeList;
|
||||
///Masse der Probeladung in kg
|
||||
double masse;
|
||||
///Ladung der Probleadung in As
|
||||
|
||||
@@ -59,8 +59,11 @@ void lsim::closeEvent (QCloseEvent *event) {
|
||||
|
||||
|
||||
void lsim::about() {
|
||||
QString aboutString;
|
||||
aboutString += "Simulation von Bewegten Ladungen in elektrischen und magnetischen Feldern... \n";
|
||||
aboutString += "gebaut am "+QString(__DATE__) + " um " + QString(__TIME__) + " Uhr";
|
||||
QMessageBox::about (this, tr ("\334ber lsim"),
|
||||
tr ("Simulation von Bewegten Ladungen in elektrischen und magnetischen Feldern..."));
|
||||
aboutString);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -24,9 +24,11 @@
|
||||
#include "lsim.h"
|
||||
#include <QDesktopWidget>
|
||||
#include <QDebug>
|
||||
#include <QMessageBox>
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
QT_REQUIRE_VERSION( argc, argv, "4.4.0"); //minimale Qt version
|
||||
Q_INIT_RESOURCE(application);
|
||||
QApplication app(argc, argv);
|
||||
app.setWindowIcon(QIcon(":icons/lsim.svg"));
|
||||
|
||||
@@ -812,14 +812,16 @@ void SimulScene::startCalculation() {
|
||||
ani->clear();
|
||||
int currSteps = ellipse1->getCurrProbePath()->count();
|
||||
int entry_step = ceil(currSteps/2500.0); //jeder entry_step(te) step wird eingetragen
|
||||
double totalTime = ellipse1->getElapsedTimeList()->at(currSteps-1);
|
||||
for (int i=0; i<currSteps; ++i) {
|
||||
if (i%entry_step == 0 || i==currSteps) {
|
||||
ani->setPosAt(i/(double)currSteps, ellipse1->getCurrProbePath()->at(i) );
|
||||
if (i%entry_step == 0 || i==currSteps) {
|
||||
//Zeianteil anstatt Weganteil
|
||||
ani->setPosAt(ellipse1->getElapsedTimeList()->at(i)/totalTime, ellipse1->getCurrProbePath()->at(i) );
|
||||
}
|
||||
}
|
||||
|
||||
//aenderungen bestimmter Werte bekanntgeben
|
||||
QString realSimulTimeString(QLocale().toString(ellipse1->getRealSimulTime(),'g'));
|
||||
QString realSimulTimeString(QLocale().toString(totalTime,'g'));
|
||||
realSimulTimeString.append(" s");
|
||||
emit realSimulTimeChanged(realSimulTimeString);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user