129 #if !defined _ciEnvironment_h_
130 #define _ciEnvironment_h_
146 #ifndef SKYDOME_RANGE
147 #define SKYDOME_RANGE 1100000 //195000
179 noAerosolAttenuation = -1,
180 noCloudOrAerosolAtten = 0,
187 userDef_cards2Dx = 7,
206 void setDate(
int month,
int day,
int year)
223 void getDate(
int &month,
int &day,
int &year)
239 void setNightSkyTableFilepath(
char *nightSkyTableFilepath){strncpy(m_nightSkyTableFilepath, nightSkyTableFilepath,
sizeof(m_nightSkyTableFilepath));}
261 void setBathymetryTableFilepath(
char *bathymetryTableFilepath){strncpy(m_bathymetryTableFilepath, bathymetryTableFilepath,
sizeof(m_bathymetryTableFilepath));}
283 void setMMLSTableFilepath(
char *mmlsTableFilepath){strncpy(m_mmlsTableFilepath, mmlsTableFilepath,
sizeof(m_mmlsTableFilepath));}
311 if (m_starThreshold > 100)
312 m_starThreshold = 100;
313 else if (m_starThreshold < 0)
315 return m_starThreshold; }
480 bool archive(std::ofstream &outf);
491 bool serialize(
char *filepath);
502 bool loadXML(
clXMLNode* environmentNode);
513 bool parseXML(
clXML& xmlDocument);
523 bool loadXMLNode(
std::string tag,
char *nodeString);
550 bool loadXMLNode(
std::string tag,
double *nodeBool);
560 void saveXML(
clXML* xmlDocument);
749 void setNumAlts(
int nalts)
751 if (nalts < 8) nalts = 8;
776 void setPowAlt(
double palt)
778 if (palt < 1.0E-15) palt = 1.0E-15;
803 void setNumRanges(
int nranges)
805 if (nranges < 8) nranges = 8;
806 m_numRange = nranges;
830 void setPowRange(
double prange)
832 if (prange < 1.0E-15) prange = 1.0E-15;
844 double getPowDensity()
857 void setPowDensity(
double pdense)
859 if (pdense < 1.0E-15) pdense = 1.0E-15;
860 m_powDensity = pdense;
871 void setLUTPrecomputationRange(
bool lut_precomp_enable,
double lut_tod_start,
double lut_tod_end,
double lut_tod_interval)
873 if (lut_tod_interval < 1.0 / 60.0) lut_tod_interval = 1.0 / 60.0;
874 m_lut_precomp_enable = lut_precomp_enable;
875 m_lut_tod_start = fmod(lut_tod_start,
DIURNAL);
876 m_lut_tod_end = fmod(lut_tod_end,
DIURNAL);
877 m_lut_tod_interval = lut_tod_interval;
888 void getLUTPrecomputationRange(
bool &lut_precomp_enable,
double &lut_tod_start,
double &lut_tod_end,
double &lut_tod_interval)
890 lut_precomp_enable = m_lut_precomp_enable;
891 lut_tod_start = m_lut_tod_start;
892 lut_tod_end = m_lut_tod_end;
893 lut_tod_interval = m_lut_tod_interval;
1201 char m_nightSkyTableFilepath[512];
1202 char m_bathymetryTableFilepath[512];
1203 char m_mmlsTableFilepath[512];
1215 char m_userSpecifiedAtmFilepath[512];
1248 #endif // _ciEnvironment_h_