osgEarth 2.1.1
|
Public Member Functions | |
ElevationLayerPreCacheOperation (TileSource *source) | |
void | operator() (osg::ref_ptr< osg::HeightField > &hf) |
Public Attributes | |
osg::ref_ptr < CompositeValidValueOperator > | ops |
Definition at line 75 of file ElevationLayer.cpp.
anonymous_namespace{ElevationLayer.cpp}::ElevationLayerPreCacheOperation::ElevationLayerPreCacheOperation | ( | TileSource * | source | ) | [inline] |
Definition at line 79 of file ElevationLayer.cpp.
{ ops = new CompositeValidValueOperator; ops->getOperators().push_back(new osgTerrain::NoDataValue(source->getNoDataValue())); ops->getOperators().push_back(new osgTerrain::ValidRange(source->getNoDataMinValue(), source->getNoDataMaxValue())); }
void anonymous_namespace{ElevationLayer.cpp}::ElevationLayerPreCacheOperation::operator() | ( | osg::ref_ptr< osg::HeightField > & | hf | ) | [inline, virtual] |
Implements osgEarth::TileSource::HeightFieldOperation.
Definition at line 86 of file ElevationLayer.cpp.
{ //Modify the heightfield data so that is contains a standard value for NO_DATA ReplaceInvalidDataOperator op; op.setReplaceWith(NO_DATA_VALUE); op.setValidDataOperator(ops.get()); op( hf.get() ); }
osg::ref_ptr<CompositeValidValueOperator> anonymous_namespace{ElevationLayer.cpp}::ElevationLayerPreCacheOperation::ops |
Definition at line 77 of file ElevationLayer.cpp.