#include <GMoveAgent.h>
Inheritance diagram for GBE::GMoveAgent:


Public Slots | |
| virtual void | addSpeedImpulse (const GCS::GVector3 &add_speed) |
| virtual void | addRotationImpulse (const GCS::GVector3 &rotation_impulse) |
Public Member Functions | |
| GMoveAgent (double fraction_slow_down_per_sec=0, unsigned long update_interval_msec=20, QObject *parent=NULL, const char *name=NULL) | |
| virtual | ~GMoveAgent () |
| unsigned long | interval () |
| void | setInterval (unsigned long new_interval_msec) |
Protected Slots | |
| virtual void | updateForm () |
Protected Member Functions | |
| virtual void | run () |
Protected Attributes | |
| QTime | Time |
| double | SlowDownFraction |
| unsigned long | Interval |
This agent periodically updates the forms position according to the current speed.
|
||||||||||||||||||||
|
Constructor. |
|
|
Destructor. |
|
|
Adds given rotation impulse around given axis to the form's rotation speed. |
|
|
Adds given speed impulse to the form's speed. |
|
|
|
|
|
Constantly updates the forms position and also slows down according to SlowDownFactor.
Reimplemented from GCS::GAgent. |
|
|
Sets the update interval.
|
|
|
Here the actual updating is performed.
|
|
|
Update interval. |
|
|
Subtracts CurrentSpeed*SlowDownFraction*elapsed_time from CurrentSpeed every update. |
|
|
Used to measure time intervals between updates. |
1.3.6