void TileNode::traverse( osg::NodeVisitor& nv )

classic Classic list List threaded Threaded
2 messages Options
ldj ldj
Reply | Threaded
Open this post in threaded view
|

void TileNode::traverse( osg::NodeVisitor& nv )

void TileNode::traverse( osg::NodeVisitor& nv )
{
    if ( _model.valid() )
    {
        if ( nv.getVisitorType() == nv.CULL_VISITOR )
        {
            // if this tile is marked dirty, bump the marker so the engine knows it
            // needs replacing.
            if ( _dirty || _model->_revision != _maprevision )
            {
               _outOfDate = true;
            }
        }
        else if (nv.getVisitorType() == nv.UPDATE_VISITOR)
        {
            _model->updateTraverse(nv);
        }
    }    

    osg::MatrixTransform::traverse( nv );
}


 _outOfDate has something to do with plod ?    if true means the center of the tilenode distance to  eye of the camera is not between minrange and maxrange?  

gwaldron gwaldron
Reply | Threaded
Open this post in threaded view
|

Re: void TileNode::traverse( osg::NodeVisitor& nv )

As I said in your first thread:

It means the data in the tile is out of sync with the data in the Map. This was part of the now-defunct incremental update feature and is no longer used.
Glenn Waldron / Pelican Mapping