VR-Vantage 3.0.3 API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
ssInterface.h
Go to the documentation of this file.
1 
2 // Copyright JRM Enterprises, Inc. 2004
3 // All rights reserved.
4 //
5 // This code is the intellectual property of JRM Enterprises, Inc.
6 // It may not be used or released as source or compiled binary form
7 // without the prior written consent of JRM Enterprises, Inc.
8 //
9 // Original Author: Eric Olson Date: Sept 2004
10 //
11 // $Header:
12 //
13 // $Log:
14 //
16 
17 #ifndef _ssInterface_
18 #define _ssInterface_
19 
20 
21 #include "ssdllexport.h"
22 #include "ciSensor.h"
23 #include "ciEntity.h"
24 #include "ciTerrain.h"
25 #include "ciEnvironment.h"
26 #include "ciSensorList.h"
27 #include "ssSensor.h"
28 #include "ssObject.h"
29 #include "ssEnvironment.h"
30 #include "ciInterface.h"
31 
32 
34 // class: ssInterface
35 //
36 // description: CI to SS interface class
37 //
39 {
40 public:
41 
43  // ssInterface
48  ssInterface();
49 
51  // ~ssInterface
56  virtual ~ssInterface();
57 
59  // copySensor
67  void copySensor(ssSensor *sensor, int index = 0, bool copyToCI = false);
68 
70  // getNumberSensors
77  int getNumberSensors() { return m_ciInterfaceSs->getSensor().getNumSensors(); }
78 
80  // copyObject
88  void copyObject(ssObject *object, int index = 0, bool copyToCI = false);
89 
91  // getNumberObjects
99  int getNumberObjects();
100 
102  // getTerrain
110  void copyTerrain(ssObject *terrain, bool copyToCI = false);
111 
113  // getEnvironment
122  void copyEnvironment(ssEnvironment *environment, bool copyToCI = false);
123 
125  // getScenario
134  void copyScenario(ssEnvironment *environment, bool copyToCI = false);
135 
137  // setDataDirectory
145  void setDataDirectory(char *path);
146 
147 
149  // getDataDirectory
156  char *getDataDirectory() { return m_dataDirectoryPath; }
157 
159  //getSceneWidth
164  int getSceneWidth(){return m_sceneWindowWidth;}
166  //setSceneWidth
171  void setSceneWidth(int width){m_sceneWindowWidth = width;}
173  //getSceneHeight
178  int getSceneHeight(){return m_sceneWindowHeight;}
180  //setSceneHeight
185  void setSceneHeight(int height){m_sceneWindowHeight = height;}
186 
188  // getSensorOrientation
195  void getSensorOrientation(double &h, double &p, double &r);
196 
198  // getSensorPosition
205  void getSensorPosition(double &lat, double &lng, double &alt);
206 
208  // setSensorOrientation
215  void setSensorOrientation(double h, double p, double r);
216 
218  // setSensorPosition
225  void setSensorPosition(double lat, double lng, double alt);
226 
228  // getSensorWorldPosition
235  void getSensorWorldPosition(double &lat, double &lng, double &alt);
236 
238  // setSensorWorldPosition
245  void setSensorWorldPosition(double lat, double lng, double alt);
246 
247  void setCiInterfaceSS(ciInterface *ciInterface) { m_ciInterfaceSs = ciInterface;}
248 
249 protected:
250 
251  char m_dataDirectoryPath[SIGSIM_STRING_SIZE];
252 
254 
255  double m_sensorPos[3];
256  double m_sensorOrientation[3];
257  double m_sensorWorldPos[3];
258 
261 
263 };
264 
265 #endif // _ssInterface_


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