#include <command.h>
Inheritance diagram for CommandGoto:


Public Member Functions | |
| CommandGoto (double t, double dist, Vec3f _up, astro::CoordinateSystem _upFrame) | |
| void | process (ExecutionEnvironment &) |
| ~CommandGoto () | |
Private Attributes | |
| double | distance |
| double | gotoTime |
| Vec3f | up |
| astro::CoordinateSystem | upFrame |
|
||||||||||||||||||||
|
Definition at line 60 of file command.cpp. References distance().
|
|
|
Definition at line 68 of file command.cpp. 00069 {
00070 }
|
|
|
Implements InstantaneousCommand. Definition at line 72 of file command.cpp. References distance, gotoTime, Selection::radius(), up, and upFrame. 00073 {
00074 Selection sel = env.getSimulation()->getSelection();
00075 env.getSimulation()->gotoSelection(gotoTime,
00076 astro::kilometersToLightYears(sel.radius() * distance),
00077 up, upFrame);
00078 }
|
|
|
Definition at line 88 of file command.h. Referenced by process(). |
|
|
Definition at line 87 of file command.h. Referenced by process(). |
|
|
Definition at line 89 of file command.h. Referenced by process(). |
|
|
Definition at line 90 of file command.h. Referenced by process(). |
1.4.1