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

CommandGotoLongLat Class Reference

#include <command.h>

Inheritance diagram for CommandGotoLongLat:

Inheritance graph
Collaboration diagram for CommandGotoLongLat:

Collaboration graph
List of all members.

Public Member Functions

 CommandGotoLongLat (double t, double dist, float _longitude, float _latitude, Vec3f _up)
void process (ExecutionEnvironment &)
 ~CommandGotoLongLat ()

Private Attributes

double distance
double gotoTime
float latitude
float longitude
Vec3f up

Constructor & Destructor Documentation

CommandGotoLongLat::CommandGotoLongLat double  t,
double  dist,
float  _longitude,
float  _latitude,
Vec3f  _up
 

Definition at line 84 of file command.cpp.

References distance().

00088                                                   :
00089     gotoTime(t),
00090     distance(dist),
00091     longitude(_longitude),
00092     latitude(_latitude),
00093     up(_up)
00094 {
00095 }

CommandGotoLongLat::~CommandGotoLongLat  ) 
 

Definition at line 97 of file command.cpp.

00098 {
00099 }


Member Function Documentation

void CommandGotoLongLat::process ExecutionEnvironment  )  [virtual]
 

Implements InstantaneousCommand.

Definition at line 101 of file command.cpp.

References distance, gotoTime, latitude, longitude, Selection::radius(), and up.

00102 {
00103     Selection sel = env.getSimulation()->getSelection();
00104     env.getSimulation()->gotoSelectionLongLat(gotoTime,
00105                                               astro::kilometersToLightYears(sel.radius() * distance),
00106                                               longitude, latitude,
00107                                               up);
00108 }


Member Data Documentation

double CommandGotoLongLat::distance [private]
 

Definition at line 106 of file command.h.

Referenced by process().

double CommandGotoLongLat::gotoTime [private]
 

Definition at line 105 of file command.h.

Referenced by process().

float CommandGotoLongLat::latitude [private]
 

Definition at line 108 of file command.h.

Referenced by process().

float CommandGotoLongLat::longitude [private]
 

Definition at line 107 of file command.h.

Referenced by process().

Vec3f CommandGotoLongLat::up [private]
 

Definition at line 109 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