Changeset 202 for osgVisual/trunk
- Timestamp:
- Jan 21, 2011, 10:07:46 PM (14 years ago)
- Location:
- osgVisual/trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
osgVisual/trunk/bin/osgVisualConfig.xml
r200 r202 41 41 <animationpath filename="salzburg.path"></animationpath> 42 42 <models> 43 <model filename="cessna " type="plain" label="TestText!" dynamic="yes">43 <model filename="cessna.osg" type="plain" label="TestText!" dynamic="yes"> 44 44 <position lat="47.12345" lon="11.234567" alt="1500.0"></position> 45 45 <attitude rot_x="0.0" rot_y="0.0" rot_z="0.0"></attitude> … … 76 76 </cloudlayer>--> 77 77 </clouds> 78 <windlayer bottom="500.0" top=" 700." speed="25.0" direction="90.0"></windlayer>78 <windlayer bottom="500.0" top="1100." speed="25.0" direction="90.0"></windlayer> 79 79 </scenery> 80 80 </osgvisualconfiguration> -
osgVisual/trunk/include/object/visual_object.h
r88 r202 36 36 #include <iostream> 37 37 38 // XML Parser 39 #include <stdio.h> 40 #include <libxml/parser.h> 41 #include <libxml/tree.h> 42 38 43 namespace osgVisual 39 44 { … … 84 89 */ 85 90 ~visual_object(); 91 92 static visual_object* createNodeFromXMLConfig(osg::CoordinateSystemNode* sceneRoot_, xmlNode* a_node); 86 93 87 94 -
osgVisual/trunk/src/core/visual_core.cpp
r200 r202 279 279 if(cur_node->type == XML_ELEMENT_NODE && node_name == "models") 280 280 { 281 /* 282 <models> 283 <model filename="cessna" type="plain" label="TestText!" dynamic="yes"> 284 <position lat="47.12345" lon="11.234567" alt="1500.0"></position> 285 <attitude rot_x="0.0" rot_y="0.0" rot_z="0.0"></attitude> 286 <cameraoffset> 287 <translation trans_x="0.0" trans_y="0.0" trans_z="0.0"></translation> 288 <rotation rot_x="0.0" rot_y="0.0" rot_z="0.0"></rotation> 289 </cameraoffset> 290 </model> 291 </models> 292 */ 281 for (xmlNode *modelNode = cur_node->children; modelNode; modelNode = modelNode->next) 282 { 283 visual_object::createNodeFromXMLConfig(rootNode, modelNode); 284 } 293 285 } 294 286 -
osgVisual/trunk/src/object/visual_object.cpp
r88 r202 66 66 } 67 67 68 visual_object* visual_object::createNodeFromXMLConfig(osg::CoordinateSystemNode* sceneRoot_, xmlNode* a_node) 69 { 70 //osg::ref<visual_object> object = new visual_object( root, nodeName); 71 72 73 /* 74 <models> 75 <model filename="cessna" type="plain" label="TestText!" dynamic="yes"> 76 <position lat="47.12345" lon="11.234567" alt="1500.0"></position> 77 <attitude rot_x="0.0" rot_y="0.0" rot_z="0.0"></attitude> 78 <cameraoffset> 79 <translation trans_x="0.0" trans_y="0.0" trans_z="0.0"></translation> 80 <rotation rot_x="0.0" rot_y="0.0" rot_z="0.0"></rotation> 81 </cameraoffset> 82 </model> 83 </models> 84 */ 85 86 87 return NULL; 88 } 89 68 90 void visual_object::setNewPositionAttitude( double lat_, double lon_, double alt_, double azimuthAngle_psi_, double pitchAngle_theta_, double bankAngle_phi_ ) 69 91 {
Note: See TracChangeset
for help on using the changeset viewer.