Changeset 13041 for OpenSceneGraph/trunk/src/osgPlugins/txp/TXPNode.cpp
- Timestamp:
- 03/21/12 18:36:20 (14 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/src/osgPlugins/txp/TXPNode.cpp
r12537 r13041 36 36 virtual void operator () ( osg::Node * node, osg::NodeVisitor * nv ) 37 37 { 38 osg::Group *pLOD = (osg::Group *) node; 38 osg::Group *pLOD = (osg::Group *) node; 39 39 osg::Group *n = NULL; 40 40 if ((pLOD->getNumChildren() > 0) && … … 70 70 setCullingActive(false); 71 71 } 72 72 73 73 TXPNode::TXPNode(const TXPNode& txpNode,const osg::CopyOp& copyop): 74 74 osg::Group(txpNode,copyop), … … 107 107 108 108 OpenThreads::ScopedLock<OpenThreads::Mutex> lock(_mutex); 109 109 110 110 osgUtil::CullVisitor* cv = dynamic_cast<osgUtil::CullVisitor*>(&nv); 111 111 if (cv) … … 117 117 std::cout<<"Doing visible tile search"<<std::endl; 118 118 #endif // PRINT_TILEMAPP_TIMEINFO 119 119 120 120 osg::ref_ptr<TileMapper> tileMapper = new TileMapper; 121 121 tileMapper->setLODScale(cv->getLODScale()); … … 134 134 135 135 //std::cout<<" found " << tileMapper._tileMap.size() << std::endl; 136 136 137 137 cv->setUserData(tileMapper.get()); 138 138 139 #ifdef PRINT_TILEMAPP_TIMEINFO 139 #ifdef PRINT_TILEMAPP_TIMEINFO 140 140 std::cout<<"Completed visible tile search in "<<timer.delta_m(start,timer.tick())<<std::endl; 141 #endif // PRINT_TILEMAPP_TIMEINFO 142 143 } 144 141 #endif // PRINT_TILEMAPP_TIMEINFO 142 143 } 144 145 145 updateEye(nv); 146 146 break; … … 209 209 //modified by Brad Anderegg on May-27-08 210 210 //if NULL is passed in we will create a new archive and open the database 211 //otherwise we will use the archive provided which should have already been loaded 211 //otherwise we will use the archive provided which should have already been loaded 212 212 //by ReaderWriterTXP::getArchive(). See line 57-77 of ReaderWriterTXP.cpp. 213 213 if(archive == NULL) … … 223 223 { 224 224 _archive = archive; 225 } 225 } 226 226 227 227 _archive->getOrigin(_originX,_originY); … … 284 284 } 285 285 _pageManager->AckLoad(); 286 286 287 287 } 288 288 } … … 355 355 } 356 356 _nodesToAdd.clear(); 357 358 } 359 } 360 361 357 358 } 359 } 360 361
