Changeset 6005 for geovis/trunk/Picker.cpp
- Timestamp:
- Feb 11, 2016, 11:57:17 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
geovis/trunk/Picker.cpp
r6003 r6005 202 202 203 203 _renderer->clearSelection(); 204 205 const osgEarth::Features::AttributeTable &attrs = feature->getAttrs(); 206 Placard placard = _renderer->getPlacardConfig(layerName); 207 if (placard.getNumEntries() == 0) { 208 placard.addAllAttributes(attrs); 209 } 210 PlacardNode *label = 211 new PlacardNode(_renderer->getMapNode(), _pickPoint, placard, attrs); 212 label->getOrCreateStateSet()->setRenderBinDetails(INT_MAX, "RenderBin"); 213 _renderer->getAnnotations()->addChild(label); 204 _renderer->addPlacard(_pickPoint, feature, layerName.c_str()); 214 205 215 206 char mesg[256];
Note: See TracChangeset
for help on using the changeset viewer.