VR-Vantage 3.1 API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
GetScenario.h
Go to the documentation of this file.
1 /* © 1998 JRM Technologies, Inc.*/
2 
3 #ifndef _GETSCENARIO_H_
4 #define _GETSCENARIO_H_
5 
6 #include "JRMlibrary.h"
7 #include "Ellipsoid.h"
8 #include "sigsim.h"
9 #include "Objects.h"
10 #include "sigsimOGL.h"
11 
12 
13 #ifdef __cplusplus
14 extern "C"
15 {
16 #endif
17  /*
18  * int GetScenario
19  *
20  * Reads a SigSim scenario file and returns parameters read from the file
21  *
22  * Returns SIGSIM_SUCCESS on success
23  *
24  * Parameters
25  *
26  * char *sigsim_data_dir : The SIGSIM data directory, may by NULL
27  * char *scenariofile : The scenario file to read, must be valid
28  * char *matlfile : The material system file, may be NULL
29  * char *mmlsfile : The man-made light source file, may be NULL, defaults to atm/mm_lsources.dat
30  * OBJECT *object : The object of interest, may be NULL
31  * char *night_sky_file : The file for specifying the default extraterrestrial sources, may be NULL
32  * double *tod : The initial time of day (0-24) [hrs], may be NULL
33  * double *max_tod : The maximum time of day for the scenario (0-24) [hrs], may be NULL,
34  * double *time_step : The time step used in calculations [hrs], may be NULL,
35  * METIN *metin : The MET data, must be valid
36  * int *nsensors : The number of sensors, may be NULL
37  * SENSOR **sens : The sensors, may be NULL
38  * LIGHT_SOURCE_TABLE **ls_table, : The light sources, may be NULL);
39  */
40  SIGSIM_API int GetScenario(char *sigsim_data_dir, char *scenariofile, char *matlfile, OBJECT *object, char *mmlsfile, char *night_sky_file, double *tod, double *max_tod, double *time_step, METIN *metin, int *nsensors, SENSOR **sens, LIGHT_SOURCE_TABLE **ls_table);
41  SIGSIM_API int ReadScenarioFile(char *sigsim_data_dir, char *file, char *matlfile, OBJECT *object, char *mmlsfile, char *night_sky_file, double *tod, double *max_tod, double *time_step, METIN *metin, int *nsensors, SENSOR **sens); // Called by GetScenario(),
42  SIGSIM_API int WriteScenarioFile(char *sigsim_data_dir, const char *file, jrmbool NEWorOLD, char *matlfile, OBJECT *object, char *mmlsfile, char *night_sky_file, double max_tod, double time_step, METIN *metin, int nsensors, SENSOR *sens);
43 
44 #ifdef _POLYGONS_H_
45  SIGSIM_API int AllocateTestObject(OBJECT *object);
46 #endif
47 
48 /* ----------------- SCENARIOS with MOTION --------------------- */
49 
50  typedef struct
51  {
52  char sigsim_scenariofile[SIGSIM_STRING_SIZE]; // SigSim scenario file to use (OPTIONAL for sonar)
53  char target_filelist[SIGSIM_STRING_SIZE]; // Target Strength File List to use (contains names of target files on disk)
54  char seadata_file[SIGSIM_STRING_SIZE]; // SUBSURFACE_1DPROFILE sea data file to use
55  char datalink_file[SIGSIM_STRING_SIZE]; // DATALINK_PARTICIPANT data file
56  char rfjammer_file[SIGSIM_STRING_SIZE]; // RF_JAMMER data file
57  char source_ID[SIGSIM_STRING_SIZE]; // Unique source/sensor identifier (required).
58  char sdatalink_ID[SIGSIM_STRING_SIZE]; // Sensor datalink to use (if any).
59  char contact_ID[SIGSIM_STRING_SIZE]; // Target unique identifier (required).
60  char tdatalink_ID[SIGSIM_STRING_SIZE]; // Target datalink to use (if any).
61  char rfjammer_ID[SIGSIM_STRING_SIZE]; // Target RF jammer to use (if any).
62  ST_PLACEMENT *plc; // Sensor-Target placement array to loop through
63  int nplc; // Number of placement pairs.
64  } TEST_SCENARIO; // Test Scenario
65 
66  SIGSIM_API int LoadTestScenario(char *file, TEST_SCENARIO *st);
68 
69 
70 
71 #ifdef __cplusplus
72 }
73 #endif
74 
75 #endif // _GETSCENARIO_H_
76 


Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)