Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

CommandGoto Class Reference

#include <command.h>

Inheritance diagram for CommandGoto:

Inheritance graph
Collaboration diagram for CommandGoto:

Collaboration graph
List of all members.

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

Constructor & Destructor Documentation

CommandGoto::CommandGoto double  t,
double  dist,
Vec3f  _up,
astro::CoordinateSystem  _upFrame
 

Definition at line 60 of file command.cpp.

References distance().

00063                                                          :
00064     gotoTime(t), distance(dist), up(_up), upFrame(_upFrame)
00065 {
00066 }

CommandGoto::~CommandGoto  ) 
 

Definition at line 68 of file command.cpp.

00069 {
00070 }


Member Function Documentation

void CommandGoto::process ExecutionEnvironment  )  [virtual]
 

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 }


Member Data Documentation

double CommandGoto::distance [private]
 

Definition at line 88 of file command.h.

Referenced by process().

double CommandGoto::gotoTime [private]
 

Definition at line 87 of file command.h.

Referenced by process().

Vec3f CommandGoto::up [private]
 

Definition at line 89 of file command.h.

Referenced by process().

astro::CoordinateSystem CommandGoto::upFrame [private]
 

Definition at line 90 of file command.h.

Referenced by process().


The documentation for this class was generated from the following files:
Generated on Sat Jan 14 22:33:12 2006 for Celestia by  doxygen 1.4.1