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));}
491 void setMultiSampleBlending(
bool enable )
493 m_multiSampleBlending =
enable;
500 bool getMultiSampleBlending()
502 return m_multiSampleBlending;
524 void setBrdf(
int brdf);
525 double getRoughness();
526 void setRoughness(
double roughness);
529 void setOptimize(
int optimize);
541 bool archive(std::ofstream &outf);
552 bool serialize(
char *filepath);
574 bool parseXML(
clXML& xmlDocument);
584 bool loadXMLNode(
std::string tag,
char *nodeString);
611 bool loadXMLNode(
std::string tag,
double *nodeBool);
621 void saveXML(
clXML* xmlDocument);
661 char m_terrainFilepath[512];
668 char m_mtlsysFilepath[512];
687 #endif // _ciTerrain_h_