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


Public Member Functions | |
| CommandSetFrame (astro::CoordinateSystem, const std::string &, const std::string &) | |
| void | process (ExecutionEnvironment &) |
Private Attributes | |
| astro::CoordinateSystem | coordSys |
| std::string | refObjectName |
| std::string | targetObjectName |
|
||||||||||||||||
|
Definition at line 234 of file command.cpp. 00236 : 00237 coordSys(_coordSys), refObjectName(refName), targetObjectName(targetName) 00238 { 00239 }
|
|
|
Implements InstantaneousCommand. Definition at line 241 of file command.cpp. References coordSys, refObjectName, and targetObjectName. 00242 {
00243 Selection ref = env.getSimulation()->findObjectFromPath(refObjectName);
00244 Selection target;
00245 if (coordSys == astro::PhaseLock)
00246 target = env.getSimulation()->findObjectFromPath(targetObjectName);
00247 env.getSimulation()->setFrame(FrameOfReference(coordSys, ref, target));
00248 }
|
|
|
Definition at line 213 of file command.h. Referenced by process(). |
|
|
Definition at line 214 of file command.h. Referenced by process(). |
|
|
Definition at line 215 of file command.h. Referenced by process(). |
1.4.1