Ignore:
Timestamp:
Nov 12, 2013 11:43:30 PM (11 years ago)
Author:
ldelgass
Message:

Add method to set model layer opacity

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/vizservers/geovis/Renderer.cpp

    r4036 r4054  
    301301}
    302302
     303void Renderer::setModelLayerOpacity(const char *name, double opacity)
     304{
     305#if OSGEARTH_MIN_VERSION_REQUIRED(2, 5, 0)
     306    osgEarth::ImageLayer *layer = _map->getImageLayerByName(name);
     307    if (layer != NULL) {
     308        layer->setOpacity(opacity);
     309    }
     310#endif
     311}
     312
    303313void Renderer::setModelLayerVisibility(const char *name, bool state)
    304314{
Note: See TracChangeset for help on using the changeset viewer.