Changeset 225
- Timestamp:
- Feb 10, 2011, 11:15:16 AM (14 years ago)
- Location:
- osgVisual/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
osgVisual/trunk/include/core/visual_core.h
r221 r225 112 112 void setupScenery(); 113 113 void trackNode( osg::Node* node_ ); 114 114 void trackNode( int trackingID ); 115 115 116 protected: 116 117 virtual ~visual_core(void); -
osgVisual/trunk/src/core/visual_core.cpp
r224 r225 285 285 { 286 286 visual_object::createNodeFromXMLConfig(rootNode, modelNode); 287 } 288 if(cur_node->type == XML_ELEMENT_NODE && name == "trackmodel") 289 { 290 // Extract model to track 291 292 trackNode( testObj4 ); 287 293 } 288 294 } … … 534 540 } 535 541 } 542 543 void visual_core::trackNode( int trackingID ) 544 { 545 osg::Node tmp = util::findNodeByTrackingID(trackingID); 546 if(tmp.valid()) 547 trackNode(tmp); 548 }
Note: See TracChangeset
for help on using the changeset viewer.