osgEarth 2.1.1
Public Member Functions | Private Attributes

CustomColorLayer Class Reference

Collaboration diagram for CustomColorLayer:

List of all members.

Public Member Functions

 CustomColorLayer ()
 CustomColorLayer (const osgEarth::ImageLayer *imageLayer, osg::Image *image, const osgTerrain::Locator *locator, int lod, const osgEarth::TileKey &tileKey, bool fallbackData=false)
 CustomColorLayer (const CustomColorLayer &rhs)
osgEarth::UID getUID () const
const osgTerrain::Locator * getLocator () const
osg::Image * getImage () const
const osgEarth::TileKeygetTileKey () const
const osgEarth::ImageLayergetMapLayer () const
int getLevelOfDetail () const
bool isFallbackData () const
osg::BoundingSphere computeBound () const

Private Attributes

osg::ref_ptr< const
osgEarth::ImageLayer
_layer
osg::ref_ptr< const
osgTerrain::Locator > 
_locator
osg::ref_ptr< osg::Image > _image
osgEarth::TileKey _tileKey
int _lod
bool _fallbackData

Detailed Description

Definition at line 31 of file TransparentLayer.


Constructor & Destructor Documentation

CustomColorLayer::CustomColorLayer ( ) [inline]

Definition at line 34 of file TransparentLayer.

{ }
CustomColorLayer::CustomColorLayer ( const osgEarth::ImageLayer imageLayer,
osg::Image *  image,
const osgTerrain::Locator *  locator,
int  lod,
const osgEarth::TileKey tileKey,
bool  fallbackData = false 
) [inline]

Definition at line 36 of file TransparentLayer.

        : _layer(imageLayer), _locator(locator), _image(image),  _tileKey(tileKey), _lod(lod), _fallbackData(fallbackData) { }
CustomColorLayer::CustomColorLayer ( const CustomColorLayer rhs) [inline]

Definition at line 45 of file TransparentLayer.

                                                    :
        _layer( rhs._layer.get() ),        
        _locator( rhs._locator.get() ),
        _image( rhs._image.get() ),
        _tileKey( rhs._tileKey ),
        _lod( rhs._lod ),
        _fallbackData( rhs._fallbackData ) { }

Member Function Documentation

osg::BoundingSphere CustomColorLayer::computeBound ( ) const [inline]

Definition at line 76 of file TransparentLayer.

                                           {
        osg::BoundingSphere bs;
        osg::Vec3d v;
        if (getLocator()->convertLocalToModel(osg::Vec3d(0.5,0.5,0.0), v)) {
            bs.center() = v;
        }
        if (getLocator()->convertLocalToModel(osg::Vec3d(0.0,0.0,0.0), v)) {
            bs.radius() = (bs.center() - v).length();
        }
        return bs;
    }

Here is the call graph for this function:

osg::Image* CustomColorLayer::getImage ( ) const [inline]

Definition at line 61 of file TransparentLayer.

                               { 
        return _image.get(); }

Here is the caller graph for this function:

int CustomColorLayer::getLevelOfDetail ( ) const [inline]

Definition at line 70 of file TransparentLayer.

                                 {
        return _lod; }

Here is the caller graph for this function:

const osgTerrain::Locator* CustomColorLayer::getLocator ( ) const [inline]

Definition at line 57 of file TransparentLayer.

                                                {
        return _locator.get();
    }

Here is the caller graph for this function:

const osgEarth::ImageLayer* CustomColorLayer::getMapLayer ( ) const [inline]

Definition at line 67 of file TransparentLayer.

                                                  {
        return _layer.get(); }

Here is the caller graph for this function:

const osgEarth::TileKey& CustomColorLayer::getTileKey ( ) const [inline]

Definition at line 64 of file TransparentLayer.

                                              {
        return _tileKey; }
osgEarth::UID CustomColorLayer::getUID ( ) const [inline]

Definition at line 53 of file TransparentLayer.

                               {
        return _layer->getUID();
    }

Here is the caller graph for this function:

bool CustomColorLayer::isFallbackData ( ) const [inline]

Definition at line 73 of file TransparentLayer.

                                {
        return _fallbackData; }

Here is the caller graph for this function:


Member Data Documentation

Definition at line 95 of file TransparentLayer.

osg::ref_ptr<osg::Image> CustomColorLayer::_image [private]

Definition at line 92 of file TransparentLayer.

osg::ref_ptr<const osgEarth::ImageLayer> CustomColorLayer::_layer [private]

Definition at line 90 of file TransparentLayer.

osg::ref_ptr<const osgTerrain::Locator> CustomColorLayer::_locator [private]

Definition at line 91 of file TransparentLayer.

int CustomColorLayer::_lod [private]

Definition at line 94 of file TransparentLayer.

Definition at line 93 of file TransparentLayer.


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