Changeset 5944 for geovis/trunk/Renderer.h
- Timestamp:
- Dec 11, 2015 12:21:12 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
geovis/trunk/Renderer.h
r5942 r5944 52 52 #include "MouseCoordsTool.h" 53 53 #include "ScaleBar.h" 54 #include "Placard.h" 54 55 55 56 // Controls if TGA format is sent to client … … 514 515 void writeScene(const std::string& file); 515 516 517 void setPlacardConfig(const Placard& placardConf, const char *layerName); 518 516 519 void selectFeatures(std::vector<unsigned long>& featureIDs, const char *layerName); 517 520 … … 550 553 return _placeNodes.get(); 551 554 } 555 Placard getPlacardConfig(const std::string& layerName) 556 { 557 Placard ret; 558 PlacardHashmap::iterator itr = _placardConfigs.find(layerName); 559 if (itr != _placardConfigs.end()) { 560 ret = itr->second; 561 } 562 return ret; 563 } 552 564 553 565 private: 554 566 typedef std::tr1::unordered_map<ColorMapId, osg::ref_ptr<osg::TransferFunction1D> > ColorMapHashmap; 555 567 typedef std::tr1::unordered_map<ViewpointId, osgEarth::Viewpoint> ViewpointHashmap; 568 typedef std::tr1::unordered_map<std::string, Placard> PlacardHashmap; 556 569 557 570 void initAnnotations(); … … 603 616 osg::ref_ptr<osg::Group> _graticule; 604 617 osg::ref_ptr<osg::Group> _annotations; 618 PlacardHashmap _placardConfigs; 605 619 double _anchorLat, _anchorLong; 606 620 osg::ref_ptr<osgEarth::Annotation::FeatureNode> _selectionBox;
Note: See TracChangeset
for help on using the changeset viewer.