StopperItem fertig, wird aber noch nicht in berechnung einbezogen
git-svn-id: http://svn.lsim.tuxzone.org/trunk@20 4bec179b-ab65-46ed-a5f8-55b8b5c735d0
This commit is contained in:
@@ -21,18 +21,19 @@
|
||||
#define SIMULSCENE_H
|
||||
|
||||
#include <QGraphicsScene>
|
||||
#include <graphicsellipseitem.h>
|
||||
|
||||
class QTimeLine;
|
||||
class HomoEFieldItem;
|
||||
class HomoBFieldItem;
|
||||
class QGraphicsRectItem;
|
||||
class QGraphicsItemGroup;
|
||||
class GraphicsEllipseItem;
|
||||
class QGraphicsItemAnimation;
|
||||
class QGraphicsPathItem;
|
||||
class QPainterPath;
|
||||
class QListWidget;
|
||||
class FieldItem;
|
||||
class StopperItem;
|
||||
|
||||
/**
|
||||
@author Peter Dahlberg <pdahlberg@gmail.com>
|
||||
@@ -44,6 +45,7 @@ class SimulScene : public QGraphicsScene {
|
||||
HomoEFieldItemInsert,
|
||||
FieldItemEdit,
|
||||
HomoBFieldItemInsert,
|
||||
StopperItemInsert,
|
||||
ProbeChargeItemPlace
|
||||
};
|
||||
enum ItemType {ResizeRectItem};
|
||||
@@ -74,6 +76,8 @@ class SimulScene : public QGraphicsScene {
|
||||
QList<QGraphicsItem*> getItemsInZOrder();
|
||||
QList<QGraphicsItem*> getFieldItemsInZOrder();
|
||||
|
||||
GraphicsEllipseItem* getProbeChargeItem();
|
||||
|
||||
public slots:
|
||||
void setSceneMode(SceneMode mode);
|
||||
void startTimer();
|
||||
@@ -115,7 +119,7 @@ class SimulScene : public QGraphicsScene {
|
||||
|
||||
SceneMode myMode;
|
||||
|
||||
///Zeit pro Step in ms
|
||||
///Zeit pro Step in sekunden
|
||||
double timePerStep;
|
||||
///anzahl der Steps
|
||||
int steps;
|
||||
@@ -128,6 +132,9 @@ class SimulScene : public QGraphicsScene {
|
||||
HomoBFieldItem *currHomoBfieldInsertItem; //Aktuell erstelltes Item
|
||||
HomoBFieldItem *currHomoBfieldEditItem;
|
||||
|
||||
StopperItem *currStopperInsertItem; //Aktuell erstelltes Item
|
||||
StopperItem *currStopperEditItem;
|
||||
|
||||
bool ChargePlacementInProgress; //ladung wird gerade platziert
|
||||
|
||||
QGraphicsItem *pressedResizeItem;
|
||||
|
||||
Reference in New Issue
Block a user