Changeset 188
- Timestamp:
- Jan 8, 2011, 9:17:07 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
osgVisual/trunk/src/core/visual_core.cpp
r187 r188 273 273 } 274 274 275 void visual_core::parseScenery(xmlNode 275 void visual_core::parseScenery(xmlNode* a_node) 276 276 { 277 277 OSG_ALWAYS << "parseScenery()" << std::endl; 278 278 279 if (a_node) 280 OSG_ALWAYS << "gefunden!" << std::endl; 279 a_node = a_node->children; 280 281 for (xmlNode *cur_node = a_node; cur_node; cur_node = cur_node->next) 282 { 283 std::string node_name=reinterpret_cast<const char*>(cur_node->name); 284 285 if(cur_node->type == XML_ELEMENT_NODE && node_name == "terrain") 286 { 287 //<terrain filename="d:\my\path\database.ive"></terrain> 288 } 289 290 if(cur_node->type == XML_ELEMENT_NODE && node_name == "animationpath") 291 { 292 //<animationpath filename="salzburgerEcke.path"></animationpath> 293 } 294 295 if(cur_node->type == XML_ELEMENT_NODE && node_name == "models") 296 { 297 /* 298 <models> 299 <model filename="cessna" type="plain" label="TestText!" dynamic="yes"> 300 <position lat="47.12345" lon="11.234567" alt="1500.0"></position> 301 <attitude rot_x="0.0" rot_y="0.0" rot_z="0.0"></attitude> 302 <cameraoffset> 303 <translation trans_x="0.0" trans_y="0.0" trans_z="0.0"></translation> 304 <rotation rot_x="0.0" rot_y="0.0" rot_z="0.0"></rotation> 305 </cameraoffset> 306 </model> 307 </models> 308 */ 309 } 310 311 if(cur_node->type == XML_ELEMENT_NODE && node_name == "datetime") 312 { 313 //<datetime day="01" month="02" year="2010" hour="23" minute="45"></datetime> 314 } 315 316 if(cur_node->type == XML_ELEMENT_NODE && node_name == "visibility") 317 { 318 //<visibility range="50000" turbidity="2.2" ></visibility> 319 } 320 321 if(cur_node->type == XML_ELEMENT_NODE && node_name == "cloudlayer") 322 { 323 /* 324 <cloudlayer slot="1" type="cumulusCongestus" enabled="true" fadetime="15"> 325 <geometry baselength="50000" basewidth="50000" thickness="500" baseHeight="1700" density="0.3"></geometry> 326 <precipitation rate_mmPerHour_rain="5.0" rate_mmPerHour_drySnow="7.0" rate_mmPerHour_wetSnow="10.0" rate_mmPerHour_sleet="0.0"></precipitation> 327 </cloudlayer> 328 */ 329 } 330 331 if(cur_node->type == XML_ELEMENT_NODE && node_name == "windlayer") 332 { 333 //<windlayer bottom="500.0" top="700." speed="25.0" direction="90.0"></windlayer> 334 } 335 }// FOR all nodes END 336 281 337 } 282 338
Note: See TracChangeset
for help on using the changeset viewer.