145 #if !defined(_ciTerrain_h_)
146 #define _ciTerrain_h_
150 #endif // _MSC_VER > 1000
233 void setTerrainFilepath(
char *terrainFilepath)
234 {strncpy(m_terrainFilepath, terrainFilepath,
sizeof(m_terrainFilepath));}
257 m_projectionType = projectionType;
269 if ((m_textureType >= 0) && (m_textureType < (
int)
sizeof(
enumTextureType)))
270 return m_textureType;
285 if ((textureType >= 0) && (textureType < (
int)
sizeof(
enumTextureType)))
286 m_textureType = textureType;
299 void getSWOrigin(
double &latitude,
double &longitude);
311 void setSWOrigin(
double latitude,
double longitude);
323 void getPositionOffset(
double &
x,
double &
y);
335 void setPositionOffset(
double x,
double y);
356 void setMtlsysFilepath(
char *mtlsysFilepath)
357 {strncpy(m_mtlsysFilepath, mtlsysFilepath,
sizeof(m_mtlsysFilepath));}
504 void setBrdf(
int brdf);
505 double getRoughness();
506 void setRoughness(
double roughness);
518 bool archive(std::ofstream &outf);
529 bool serialize(
char *filepath);
551 bool parseXML(
clXML& xmlDocument);
561 bool loadXMLNode(
std::string tag,
char *nodeString);
588 bool loadXMLNode(
std::string tag,
double *nodeBool);
598 void saveXML(
clXML* xmlDocument);
638 char m_terrainFilepath[512];
645 char m_mtlsysFilepath[512];
662 #endif // _ciTerrain_h_