osgEarth 2.1.1
Public Member Functions | Public Attributes

anonymous_namespace{ElevationLayer.cpp}::ElevationLayerPreCacheOperation Struct Reference

Inheritance diagram for anonymous_namespace{ElevationLayer.cpp}::ElevationLayerPreCacheOperation:
Collaboration diagram for anonymous_namespace{ElevationLayer.cpp}::ElevationLayerPreCacheOperation:

List of all members.

Public Member Functions

 ElevationLayerPreCacheOperation (TileSource *source)
void operator() (osg::ref_ptr< osg::HeightField > &hf)

Public Attributes

osg::ref_ptr
< CompositeValidValueOperator
ops

Detailed Description

Definition at line 75 of file ElevationLayer.cpp.


Constructor & Destructor Documentation

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()));
        }

Here is the call graph for this function:


Member Function Documentation

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() );
        }

Here is the call graph for this function:


Member Data Documentation

osg::ref_ptr<CompositeValidValueOperator> anonymous_namespace{ElevationLayer.cpp}::ElevationLayerPreCacheOperation::ops

Definition at line 77 of file ElevationLayer.cpp.


The documentation for this struct was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines