#include <stkvisualization.h>
Definition at line 24 of file stkvisualization.h.
Public Member Functions | |
StkVisualization (double offset=0.0) | |
Constructor. | |
~StkVisualization () | |
Destructor. | |
bool | ConnectStk (const char *stkHostAddress, const char *stkHostPort="5001") |
stkHostAddress is the IP address of the computer running STK | |
bool | SetUpScenario () |
Sets up the scenario. | |
bool | SetUpNumberOfSatellites () |
Creates array of satellite names. | |
bool | SetUpSatellite () |
Creates the satellites as specified by user. | |
bool | StartAnimation () |
Starts the animation in STK. | |
bool | SetWindows () |
Divides the screen into 2D and 3D windows. | |
bool | Update (int satelliteNumber, int rotationSequence, double angle1, double angle2, double angle3) |
Updates attitude using Euler angles. | |
bool | Update (int satelliteNumber, double Q1, double Q2, double Q3, double Q4) |
Updates attitude using quaternions. | |
bool | Update (int satelliteNumber, double latitude, double longitude, double altitude, double latitudeRate, double longitudeRate, double altitudeRate) |
Updates the animation with new orbit information using latitude, longitude, altitude, latitude and longitude rates, and altitude rate. Latitude and longitude are in degrees. | |
const char * | GetLastError (char *buffer) |
Returns the errors. | |
bool | ShutDownStk () |
Closes connection to STK and frees memory. | |
Public Attributes | |
int | NumberOfSatellites |
Number of Satellites in Visualization. | |
string | ScenarioName |
Name of STK scenario specified by user. | |
string * | SatelliteName |
Name of satellites to be stored in an array of strings. | |
Private Member Functions | |
double | GetOffsetTime () |
Returns current time in seconds (provided by gettimeofday) + input Offset. | |
void | ClearError () |
Resets error flag and cleans up ReturnInfo. | |
bool | SendCommand (ostringstream &commandLine) |
Sends command to STK of type ostringstream. | |
bool | SendCommand (string commandLine) |
Member function overload: reads in command line of type string. | |
StkVisualization (const StkVisualization &) | |
:^) | |
StkVisualization & | operator= (const StkVisualization &) |
:^) | |
Private Attributes | |
double | Offset |
Offset in seconds from current time. | |
char * | ConID |
STK connection ID. | |
bool | ErrorExists |
Are we storing an error message? | |
char | CommandBuffer [512] |
UGLY HACK -- JRS -- AgConInit takes a char* for hostname, so copying string to buffer. | |
bool * | SatellitePositionUpdate |
Used to determine if all satellites have a position so 3D. | |
bool | AllSatellitesUpdated |
animation windows can be centered about the satellites | |
bool | WindowsSet |
Used to determine if the animation windows have been set. | |
AgTConReturnInfo * | ReturnInfo |
Pointer to AgTConReturnInfo to get results from STK. |
|
:^)
Definition at line 46 of file stkvisualization.h. |
|
Constructor.
Definition at line 87 of file stkvisualization.cpp. References CommandBuffer, and ReturnInfo. |
|
Destructor.
Definition at line 97 of file stkvisualization.cpp. References ClearError(). |
|
Resets error flag and cleans up ReturnInfo.
Definition at line 43 of file stkvisualization.cpp. References ErrorExists, and ReturnInfo. Referenced by ConnectStk(), SetUpSatellite(), SetUpScenario(), ShutDownStk(), StartAnimation(), Update(), and ~StkVisualization(). |
|
stkHostAddress is the IP address of the computer running STK
Definition at line 105 of file stkvisualization.cpp. References ClearError(), CommandBuffer, and ConID. |
|
Returns the errors.
Definition at line 550 of file stkvisualization.cpp. References ReturnInfo. |
|
Returns current time in seconds (provided by gettimeofday) + input Offset.
Definition at line 33 of file stkvisualization.cpp. Referenced by StartAnimation(), and Update(). |
|
:^)
Definition at line 47 of file stkvisualization.h. |
|
Member function overload: reads in command line of type string.
Definition at line 71 of file stkvisualization.cpp. References CommandBuffer, ConID, ErrorExists, and ReturnInfo. |
|
Sends command to STK of type ostringstream.
Definition at line 54 of file stkvisualization.cpp. References CommandBuffer, ConID, ErrorExists, and ReturnInfo. Referenced by SetUpSatellite(), SetUpScenario(), SetWindows(), ShutDownStk(), StartAnimation(), and Update(). |
|
Creates array of satellite names.
Definition at line 178 of file stkvisualization.cpp. References AllSatellitesUpdated, SatelliteName, SatellitePositionUpdate, and WindowsSet. |
|
Creates the satellites as specified by user.
Definition at line 211 of file stkvisualization.cpp. References ClearError(), SatelliteName, ScenarioName, and SendCommand(). |
|
Sets up the scenario. Set Start and Stop times for the scenario Definition at line 129 of file stkvisualization.cpp. References ClearError(), ConID, ErrorExists, ReturnInfo, and SendCommand(). |
|
Divides the screen into 2D and 3D windows.
Definition at line 322 of file stkvisualization.cpp. References NumberOfSatellites, SatelliteName, and SendCommand(). Referenced by Update(). |
|
Closes connection to STK and frees memory.
Definition at line 571 of file stkvisualization.cpp. References ClearError(), ConID, and SendCommand(). |
|
Starts the animation in STK.
Definition at line 278 of file stkvisualization.cpp. References ClearError(), GetOffsetTime(), SatelliteName, and SendCommand(). |
|
Updates the animation with new orbit information using latitude, longitude, altitude, latitude and longitude rates, and altitude rate. This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Definition at line 487 of file stkvisualization.cpp. References AllSatellitesUpdated, ClearError(), GetOffsetTime(), SatelliteName, SatellitePositionUpdate, SendCommand(), SetWindows(), and WindowsSet. |
|
Updates attitude using quaternions. This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Definition at line 456 of file stkvisualization.cpp. References ClearError(), GetOffsetTime(), SatelliteName, and SendCommand(). |
|
Updates attitude using Euler angles.
Definition at line 425 of file stkvisualization.cpp. References ClearError(), GetOffsetTime(), SatelliteName, and SendCommand(). |
|
animation windows can be centered about the satellites
Definition at line 34 of file stkvisualization.h. Referenced by SetUpNumberOfSatellites(), and Update(). |
|
UGLY HACK -- JRS -- AgConInit takes a char* for hostname, so copying string to buffer.
Definition at line 31 of file stkvisualization.h. Referenced by ConnectStk(), SendCommand(), and StkVisualization(). |
|
STK connection ID.
Definition at line 29 of file stkvisualization.h. Referenced by ConnectStk(), SendCommand(), SetUpScenario(), and ShutDownStk(). |
|
Are we storing an error message?
Definition at line 30 of file stkvisualization.h. Referenced by ClearError(), SendCommand(), and SetUpScenario(). |
|
Number of Satellites in Visualization.
Definition at line 51 of file stkvisualization.h. Referenced by SetWindows(). |
|
Offset in seconds from current time.
Definition at line 28 of file stkvisualization.h. |
|
Pointer to AgTConReturnInfo to get results from STK.
Definition at line 36 of file stkvisualization.h. Referenced by ClearError(), GetLastError(), SendCommand(), SetUpScenario(), and StkVisualization(). |
|
Name of satellites to be stored in an array of strings.
Definition at line 53 of file stkvisualization.h. Referenced by SetUpNumberOfSatellites(), SetUpSatellite(), SetWindows(), StartAnimation(), and Update(). |
|
Used to determine if all satellites have a position so 3D.
Definition at line 33 of file stkvisualization.h. Referenced by SetUpNumberOfSatellites(), and Update(). |
|
Name of STK scenario specified by user.
Definition at line 52 of file stkvisualization.h. Referenced by SetUpSatellite(). |
|
Used to determine if the animation windows have been set.
Definition at line 35 of file stkvisualization.h. Referenced by SetUpNumberOfSatellites(), and Update(). |