Umasoft
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
Options.h
1 //
2 // Options.h
3 //
4 // Copyright (c) 2001-2011 Virtual Terrain Project
5 // Free for all uses, see license.txt for details.
6 //
7 
8 #ifndef OPTIONSH
9 #define OPTIONSH
10 
11 #include "vtdata/FilePath.h"
12 
19 {
20 public:
21  EnviroOptions();
22  ~EnviroOptions();
23 
24  bool ReadXML(const char *szFilename);
25  bool WriteXML();
26 
27  vtStringArray m_oldDataPaths;
28  bool m_bEarthView;
29  vtString m_strEarthImage;
30  vtString m_strInitTerrain;
31  vtString m_strInitLocation;
32  vtString m_strUseElevation;
33 
34  bool m_bStartInNeutral;
35 
36  // display options, window location and size
37  bool m_bFullscreen;
38  bool m_bStereo;
39  int m_iStereoMode;
40  IPoint2 m_WinPos, m_WinSize;
41  bool m_bLocationInside;
42 
43  bool m_bHtmlpane;
44  bool m_bFloatingToolbar;
45  bool m_bTextureCompression;
46  bool m_bDisableModelMipmaps;
47 
48  bool m_bDirectPicking;
49  float m_fSelectionCutoff;
50  float m_fMaxPickableInstanceRadius;
51  float m_fCursorThickness;
52 
53  float m_fPlantScale;
54  bool m_bShadows;
55  bool m_bOnlyAvailableSpecies;
56 
57  float m_fCatenaryFactor;
58 
59  vtString m_strContentFile;
60 
61  bool m_bShowProgress;
62  bool m_bFlyIn;
63  bool m_bUseJoystick;
64  bool m_bUseSpaceNav;
65 
66  // toolbar options
67  bool m_bShowToolsCulture;
68  bool m_bShowToolsSnapshot;
69  bool m_bShowToolsTime;
70 
71  // filename (with path) from which ini was read
72  vtString m_strFilename;
73 
74  // look for all data here
75 };
76 
77 extern EnviroOptions g_Options;
78 
79 #endif // OPTIONSH
80