Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F94256319
penduleressortpanel.h
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Thu, Dec 5, 04:46
Size
1 KB
Mime Type
text/x-c++
Expires
Sat, Dec 7, 04:46 (2 d)
Engine
blob
Format
Raw Data
Handle
22771292
Attached To
rSYMKIT symkit
penduleressortpanel.h
View Options
#ifndef PENDULERESSORTPANEL_H
#define PENDULERESSORTPANEL_H
#include "panels/systempanel.h"
class RessortSphere;
class PenduleRessort;
class Valuedit;
class QGridLayout;
class PendrSphere;
class PendSpherePanel : public ActorPanel
{
Q_OBJECT
PenduleRessort * descriptor;
Valuedit * angle;
Valuedit * speed;
Valuedit * length;
Valuedit * mass;
Valuedit * friction;
Valuedit * gravity;
QGridLayout * layout;
private slots:
void angleChanged(double);
void speedChanged(double);
void lengthChanged(double);
void frictionChanged(double);
void massChanged(double);
void gravityChange(double);
public:
PendSpherePanel(PendrSphere*, PenduleRessort *descriptor, QWidget *parent = 0);
~PendSpherePanel();
virtual void updatePanel() override;
};
class RessortSpherePanel : public ActorPanel
{
Q_OBJECT
PenduleRessort * descriptor;
Valuedit * position;
Valuedit * speed;
Valuedit * k;
Valuedit * mass;
Valuedit * friction;
QGridLayout * layout;
private slots:
void positionChanged(double);
void speedChanged(double);
void kChanged(double);
void massChanged(double);
void frictionChanged(double);
public:
RessortSpherePanel(PendrSphere*, PenduleRessort *descriptor, QWidget *parent = 0);
~RessortSpherePanel();
virtual void updatePanel() override;
};
class PenduleR;
class Valuevisual;
class QHBoxLayout;
class PhaseSpace;
class PenduleRessortPanel : public SystemPanel
{
Q_OBJECT
PenduleR * pend_ressort;
PenduleRessort * desc;
QHBoxLayout * layout;
Valuevisual * energy;
PendSpherePanel * pendule;
RessortSpherePanel * ressort;
PhaseSpace * plot;
virtual void updatePlugin() override;
public:
PenduleRessortPanel(PenduleR*, QWidget *parent = 0);
~PenduleRessortPanel();
PhaseSpace * getPhaseSpace();
};
#endif // PENDULERESSORTPANEL_H
Event Timeline
Log In to Comment