VR-Vantage 3.1 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 #include "ciServerClient.h"
32 
33 
35 // class: ssInterface
36 //
37 // description: CI to SS interface class
38 //
40 {
41 public:
42 
44  // ssInterface
49  ssInterface();
50 
52  // ~ssInterface
57  virtual ~ssInterface();
58 
60  // copySensor
68  void copySensor(ssSensor *sensor, int index = 0, bool copyToCI = false);
69 
71  // getNumberSensors
78  int getNumberSensors() { return m_ciInterfaceSs->getSensor().getNumSensors(); }
79 
81  // copyObject
89  void copyObject(ssObject *object, int index = 0, bool copyToCI = false, int subObjIndex = -1);
90 
92  // getNumberObjects
100  int getNumberObjects();
101 
103  // getTerrain
111  void copyTerrain(ssObject *terrain, bool copyToCI = false);
112 
114  // getEnvironment
123  void copyEnvironment(ssEnvironment *environment, bool copyToCI = false);
124 
126  // getScenario
135  void copyScenario(ssEnvironment *environment, bool copyToCI = false);
136 
138  // getNetworkConfiguration
146  const ciServerClient::ConnectionsMultiMap &getNetworkConfiguration(int &networkMode, int &serverClientConnectionType);
147 
149  // setNetworkConfiguration
157  void setNetworkConfiguration(int networkMode, int serverClientConnectionType, const ciServerClient::ConnectionsMultiMap &connections);
158 
160  // setDataDirectoryForSigSim
168  void setDataDirectoryForSigSim(char *path);
169 
170 
172  // getDataDirectoryForSigSim
179  char *getDataDirectoryForSigSim() { return m_dataDirectoryPath; }
180 
181 
183  // getSensorOrientation
190  void getSensorOrientation(double &h, double &p, double &r);
191 
193  // getSensorPosition
200  void getSensorPosition(double &lat, double &lng, double &alt);
201 
203  // setSensorOrientation
210  void setSensorOrientation(double h, double p, double r);
211 
213  // setSensorPosition
220  void setSensorPosition(double lat, double lng, double alt);
221 
223  // getSensorWorldPosition
230  void getSensorWorldPosition(double &lat, double &lng, double &alt);
231 
233  // setSensorWorldPosition
240  void setSensorWorldPosition(double lat, double lng, double alt);
241 
243  // modifySsStringPath
251  std::string modifySsStringPath(char *stringToModify, bool copyToCI = false);
252 
253  void setCiInterfaceSS(ciInterface *ciInterface) { m_ciInterfaceSs = ciInterface;}
254 
255 protected:
256 
257  char m_dataDirectoryPath[SIGSIM_STRING_SIZE];
258 
260 
261  double m_sensorPos[3];
262  double m_sensorOrientation[3];
263  double m_sensorWorldPos[3];
264 
266 };
267 
268 #endif // _ssInterface_


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