VR-Vantage 3.1 API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
ciScenario.h
Go to the documentation of this file.
1 
2 // Original Author: Tim George
3 // Date: Oct 2005
4 //
5 //
6 //
8 
9 #if !defined(_CISCENARIO_H_)
10 #define _CISCENARIO_H_
11 #include "ciApi.h"
12 
13 #if _MSC_VER > 1000
14 #pragma once
15 #endif // _MSC_VER > 1000
16 
20 #include <iostream>
21 #include <fstream>
22 #include <string.h>
23 #include "clXML.h"
24 #include "clXMLNode.h"
25 
26 #ifndef SKYDOME_RANGE
27 #define SKYDOME_RANGE 1100000 //195000
28 #endif
29 
31 {
32 public: // methods
33 
34 
35  void setUseShadows(bool flag){m_useShadows = flag;}
36  bool getUseShadows(){return m_useShadows;}
37  void setShadowType(int type){m_shadowType = type;}
38  int getShadowType(){return m_shadowType;}
39  void setShadowMapSize(int size){m_shadowMapSize = size;}
40  int getShadowMapSize(){return m_shadowMapSize;}
41  void setUseAngleDependentEmissivity(bool flag){m_useAngleDependentEmissivity = flag;}
42  bool getUseAngleDependentEmissivity(){return m_useAngleDependentEmissivity;}
43  void setUseNormalBasedIM(bool flag){m_useNormalBasedIM = flag;}
44  bool getUseNormalBasedIM(){return m_useNormalBasedIM;}
45  void setUseLightSources(bool flag){m_useLightSources = flag;}
46  bool getUseLightSources(){return m_useLightSources;}
47  void setUseLitWindows(int flag){m_useLitWindows = flag;}
48  int getUseLitWindows(){return m_useLitWindows;}
49  void setLitWindowStart(double time){m_litWindowStart = time;}
50  double getLitWindowStart(){return m_litWindowStart;}
51  void setLitWindowStop(double time){m_litWindowStop = time;}
52  double getLitWindowStop(){return m_litWindowStop;}
53 
54  void setChannelClip(bool state){m_channelClip = state;}
55  bool getChannelClip(){return m_channelClip;}
56  void setChannelClipNear(double nearClip){m_channelClipNear = nearClip;}
57  double getChannelClipNear(){return m_channelClipNear;}
58  void setChannelClipFar(double farClip){m_channelClipFar = farClip;}
59  double getChannelClipFar(){return m_channelClipFar;}
60 
61  void setOverrideFltWithIve(bool state){m_overrideFltWithIve = state;}
62  bool getOverrideFltWithIve(){return m_overrideFltWithIve;}
63 
64  void setUsePostRadScaleOffset(bool flag){m_usePostRadScaleOffset = flag;}
65  bool getUsePostRadScaleOffset(){return m_usePostRadScaleOffset;}
66 
68  // setBackgroundThreadCPU
76  void setBackgroundThreadCPU(int cpu)
77  {
78  m_backgroundCPUID = cpu;
79  }
80 
82  // getBackgroundThreadCPU
90  int getBackgroundThreadCPU() const
91  {
92  return m_backgroundCPUID;
93  }
94 
96  // setBackgroundThreadPriority
104  void setBackgroundThreadPriority(int priority)
105  {
106  m_backgroundThreadPriority = priority;
107  }
108 
110  // getBackgroundThreadPriority
118  int getBackgroundThreadPriority() const
119  {
120  return m_backgroundThreadPriority;
121  }
122 
123  void setUseVectorISAR(bool flag){m_useVectorISAR = flag;}
124  bool getUseVectorISAR(){return m_useVectorISAR;}
125 
127  // setNumMultiSamples
135  void setNumMultiSamples(int samples)
136  {
137  m_numMultiSamples = samples;
138  }
139 
141  // getNumMultiSamples
149  int getNumMultiSamples() const
150  {
151  return m_numMultiSamples;
152  }
153 
155  // setNumColorMultiSamples
163  void setNumColorMultiSamples(int samples)
164  {
165  m_numColorMultiSamples = samples;
166  }
167 
169  // getNumColorMultiSamples
177  int getNumColorMultiSamples() const
178  {
179  return m_numColorMultiSamples;
180  }
181 
183  // archive
191  bool archive(std::ofstream &outf);
192 
194  // serialize
202  bool serialize(char *filepath);
203 
204  //
205  // loadXML
206  //
207  // \par Description:
208  // Loads attributes from an XML node
209  //
210  // \param clXMLNode* scenarioNode
211  // \return bool
212  //
213  bool loadXML(clXMLNode* scenarioNode);
214 
215  //
216  // parseXML
217  //
218  // \par Description:
219  // Parses an XML document for specific tags
220  //
221  // \param clXML xmlDocument
222  // \return bool
223  //
224  bool parseXML(clXML& xmlDocument);
225 
227  //loadXMLNode
234  bool loadXMLNode(std::string tag, char *nodeString);
236  //loadXMLNode
243  bool loadXMLNode(std::string tag, bool *nodeBool);
245  //loadXMLNode
252  bool loadXMLNode(std::string tag, int *nodeBool);
254  //loadXMLNode
261  bool loadXMLNode(std::string tag, double *nodeBool);
262 
263  //
264  // saveXML
265  //
266  // \par Description:
267  // Saves XML nodes to an XML document
268  //
269  // \param clXML* xmlDocument
270  //
271  void saveXML(clXML* xmlDocument);
272 
274  // operator =
282  ciScenario operator = (ciScenario &obj);
283 
284 protected: // methods
285 
286 public: // construction/destruction
287 
289  // ciTrack
294  ciScenario();
295 
297  // ciScenario
305 
306  virtual ~ciScenario();
307 
308 protected: // variables
309 
330 private: // variables
331 
332 };
333 
334 #endif // _ciSCENARIO_H_


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