HomoBField einfuegbar in die scene und editierbar
git-svn-id: http://svn.lsim.tuxzone.org/trunk@5 4bec179b-ab65-46ed-a5f8-55b8b5c735d0
This commit is contained in:
@@ -24,6 +24,7 @@
|
||||
|
||||
class QTimeLine;
|
||||
class HomoEFieldItem;
|
||||
class HomoBFieldItem;
|
||||
class QGraphicsRectItem;
|
||||
class QGraphicsItemGroup;
|
||||
class GraphicsEllipseItem;
|
||||
@@ -35,7 +36,7 @@ class QGraphicsItemAnimation;
|
||||
class SimulScene : public QGraphicsScene {
|
||||
Q_OBJECT
|
||||
public:
|
||||
enum SceneMode {HomoEFieldItemInsert, FieldItemEdit };
|
||||
enum SceneMode {HomoEFieldItemInsert, FieldItemEdit, HomoBFieldItemInsert };
|
||||
enum ItemType {ResizeRectItem};
|
||||
SimulScene ( QObject* parent = 0);
|
||||
qreal getHighestZIndexVisible(); //hoechsten z-index der sichtbaren items ausgeben
|
||||
@@ -62,10 +63,8 @@ class SimulScene : public QGraphicsScene {
|
||||
void startCalculation();
|
||||
void setSteps(int steps);
|
||||
|
||||
void setMeterPerPx ( double theValue );
|
||||
|
||||
|
||||
double getMeterPerPx() const;
|
||||
void setMeterPerPx ( double theValue );
|
||||
double getMeterPerPx() const;
|
||||
|
||||
private slots:
|
||||
void displayResizeRects(bool move = false);
|
||||
@@ -87,8 +86,13 @@ class SimulScene : public QGraphicsScene {
|
||||
int steps;
|
||||
///ein Pixel entspricht so viel meter
|
||||
double meterPerPx;
|
||||
|
||||
HomoEFieldItem *currHomoEfieldInsertItem; //Aktuell erstelltes Item
|
||||
HomoEFieldItem *currHomoEfieldEditItem;
|
||||
|
||||
HomoBFieldItem *currHomoBfieldInsertItem; //Aktuell erstelltes Item
|
||||
HomoBFieldItem *currHomoBfieldEditItem;
|
||||
|
||||
QGraphicsItem *pressedResizeItem;
|
||||
|
||||
GraphicsEllipseItem *ellipse1;
|
||||
|
||||
Reference in New Issue
Block a user