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

CommandGotoLocation Class Reference

#include <command.h>

Inheritance diagram for CommandGotoLocation:

Inheritance graph
Collaboration diagram for CommandGotoLocation:

Collaboration graph
List of all members.

Public Member Functions

 CommandGotoLocation (double t, const Point3d &translation, const Quatf &rotation)
void process (ExecutionEnvironment &)
 ~CommandGotoLocation ()

Private Attributes

double gotoTime
Quatf rotation
Point3d translation

Constructor & Destructor Documentation

CommandGotoLocation::CommandGotoLocation double  t,
const Point3d translation,
const Quatf rotation
 

Definition at line 114 of file command.cpp.

00116                                                                  :
00117     gotoTime(t), translation(_translation), rotation(_rotation)
00118 {
00119 }

CommandGotoLocation::~CommandGotoLocation  ) 
 

Definition at line 121 of file command.cpp.

00122 {
00123 }


Member Function Documentation

void CommandGotoLocation::process ExecutionEnvironment  )  [virtual]
 

Implements InstantaneousCommand.

Definition at line 125 of file command.cpp.

References gotoTime, rotation, RigidTransform::rotation, translation, RigidTransform::translation, Quaternion< T >::w, Quaternion< T >::x, Quaternion< T >::y, and Quaternion< T >::z.

00126 {
00127     RigidTransform to;
00128     to.rotation = Quatd(rotation.w, rotation.x, rotation.y, rotation.z);
00129     to.translation = translation;
00130     env.getSimulation()->gotoLocation(to, gotoTime);
00131 }


Member Data Documentation

double CommandGotoLocation::gotoTime [private]
 

Definition at line 122 of file command.h.

Referenced by process().

Quatf CommandGotoLocation::rotation [private]
 

Definition at line 124 of file command.h.

Referenced by process().

Point3d CommandGotoLocation::translation [private]
 

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