Changeset 252 for experimental/TerrainTest/ModificationVisitor.cpp
- Timestamp:
- Feb 21, 2011, 6:35:43 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
experimental/TerrainTest/ModificationVisitor.cpp
r251 r252 1 1 #include "ModificationVisitor.h" 2 2 3 ModificationVisitor::ModificationVisitor( )3 ModificationVisitor::ModificationVisitor(std::string extensionToSet) : _extensionToSet(extensionToSet) 4 4 { 5 5 setTraversalMode( osg::NodeVisitor::TRAVERSE_ALL_CHILDREN ); … … 8 8 void ModificationVisitor::apply( osg::Node& node ) 9 9 { 10 OSG_NOTIFY( osg::ALWAYS ) << "ModVisitor: Node found"<< std::endl;10 //OSG_NOTIFY( osg::ALWAYS ) << "ModVisitor: Node found: " << node.className() << std::endl; 11 11 traverse( node ); 12 12 } … … 14 14 void ModificationVisitor::apply( osg::PagedLOD& pNode ) 15 15 { 16 OSG_NOTIFY( osg::ALWAYS ) << "ModVisitor: pagedLOD found" << std::endl; 16 //OSG_NOTIFY( osg::ALWAYS ) << "ModVisitor: pagedLOD found: " << pNode.className() << std::endl; 17 18 for( unsigned int i=0;i<pNode.getNumFileNames();i++) 19 { 20 //OSG_NOTIFY( osg::ALWAYS ) << "ModVisitor: pagedLOD Child #" << i << std::endl; 21 if(pNode.getFileName(i)!="") 22 { 23 //OSG_NOTIFY( osg::ALWAYS ) << "ModVisitor: pagedLOD Child Name pre: " << pNode.getFileName(i) << std::endl; 24 pNode.setFileName(i, pNode.getFileName(i)+_extensionToSet ); 25 //OSG_NOTIFY( osg::ALWAYS ) << "ModVisitor: pagedLOD Child Name post: " << newFileName << std::endl; 26 } 27 } 28 17 29 traverse( pNode ); 18 30 }
Note: See TracChangeset
for help on using the changeset viewer.