Ignore:
Timestamp:
Jan 25, 2016, 6:28:49 PM (9 years ago)
Author:
ldelgass
Message:

Add style settings for placard

File:
1 edited

Legend:

Unmodified
Added
Removed
  • geovis/trunk/Picker.cpp

    r5961 r5969  
    201201        INFO("Hit feature ID: %lu (of %d) layer: %s", feature->getFID(), index->size(), layerName.c_str());
    202202
    203         osgEarth::Symbology::Style style;
    204         osgEarth::Symbology::TextSymbol *ts = style.getOrCreateSymbol<osgEarth::Symbology::TextSymbol>();
    205         //ts->halo()->color() = osgEarth::Symbology::Color(1, 1, 1);
    206         //ts->halo()->width() = 2;
    207         ts->fill()->color() = osgEarth::Symbology::Color(0, 0, 0);
    208         ts->size() = 14;
    209         //ts->alignment() = alignment;
    210         ts->declutter() = false;
    211         //ts->encoding() = osgEarth::Symbology::TextSymbol::ENCODING_UTF8;
    212203        clearSelection();
    213204
     
    218209        }
    219210        PlacardNode *label =
    220             new PlacardNode(_renderer->getMapNode(), _pickPoint, placard, attrs, style);
     211            new PlacardNode(_renderer->getMapNode(), _pickPoint, placard, attrs);
    221212        label->getOrCreateStateSet()->setRenderBinDetails(INT_MAX, "RenderBin");
    222213        _renderer->getAnnotations()->addChild(label);
Note: See TracChangeset for help on using the changeset viewer.