#1 fixed und einiges mehr
git-svn-id: http://svn.lsim.tuxzone.org/trunk@10 4bec179b-ab65-46ed-a5f8-55b8b5c735d0
This commit is contained in:
@@ -21,18 +21,31 @@
|
||||
#define GRAPHICSELLIPSEITEM_H
|
||||
|
||||
#include <QGraphicsEllipseItem>
|
||||
#include <QObject>
|
||||
class ProbeChargeWidget;
|
||||
|
||||
/**
|
||||
@author Peter Dahlberg <pdahlberg@gmail.com>
|
||||
*/
|
||||
|
||||
class GraphicsEllipseItem : public QObject , public QGraphicsEllipseItem {
|
||||
Q_OBJECT
|
||||
public:
|
||||
GraphicsEllipseItem();
|
||||
QWidget* getDockWidget() const;
|
||||
|
||||
~GraphicsEllipseItem();
|
||||
QList<QPointF> * getCurrProbePath();
|
||||
|
||||
double getCharge() const;
|
||||
double getStartSpeedX() const;
|
||||
double getStartSpeedY() const;
|
||||
|
||||
//! Gibt die Masse zurück
|
||||
/*!
|
||||
\param speed alles != 0 relativistisch
|
||||
*/
|
||||
double getMasse(double speed);
|
||||
|
||||
|
||||
|
||||
@@ -53,6 +66,10 @@ class GraphicsEllipseItem : public QObject , public QGraphicsEllipseItem {
|
||||
double charge;
|
||||
///Zugeordnetes Probe Charge Widget
|
||||
ProbeChargeWidget* myProbeChargeWidget;
|
||||
///Startgeschwindigkeit des teilchens in x-Richtung
|
||||
double startSpeedX;
|
||||
///Startgeschwindigkeit des teilchens in y-Richtung
|
||||
double startSpeedY;
|
||||
|
||||
|
||||
public slots:
|
||||
@@ -64,16 +81,20 @@ class GraphicsEllipseItem : public QObject , public QGraphicsEllipseItem {
|
||||
|
||||
void setMasse ( const double& theValue );
|
||||
|
||||
//! Gibt die Masse zurück
|
||||
/*!
|
||||
\param speed alles != 0 relativistisch
|
||||
*/
|
||||
double getMasse(double speed);
|
||||
|
||||
void setCharge ( const long double& theValue );
|
||||
|
||||
void setStartSpeedX ( double theValue );
|
||||
void setStartSpeedY ( double theValue );
|
||||
signals:
|
||||
void startSpeedXChanged(double speed);
|
||||
void startSpeedYChanged(double speed);
|
||||
void masseChanged(double masse);
|
||||
void chargeChanged(double Charge);
|
||||
|
||||
|
||||
long double getCharge() const;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user