- Timestamp:
- Aug 31, 2016 2:45:06 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
geovis/trunk/Renderer.h
r6511 r6517 603 603 void writeScene(const std::string& file); 604 604 605 // Placard info window 606 605 607 void enablePlacard(const char *layerName, bool state); 606 608 607 609 void setPlacardConfig(const Placard& placardConf, const char *layerName); 610 611 Placard getPlacardConfig(const char *layerName) 612 { 613 Placard ret; 614 PlacardHashmap::iterator itr = _placardConfigs.find(layerName); 615 if (itr != _placardConfigs.end()) { 616 ret = itr->second; 617 } 618 return ret; 619 } 620 621 // Selection 608 622 609 623 void setSelectMode(SelectMode mode); … … 631 645 void clearBoxSelection(); 632 646 647 // These methods are based on the deprecated annotation API 633 648 bool select(osgEarth::Annotation::AnnotationNode *node) 634 649 { … … 640 655 } 641 656 } 642 643 657 std::set<osgEarth::Annotation::AnnotationNode*>& getHovered() 644 658 { return _hovered; } 645 659 std::set<osgEarth::Annotation::AnnotationNode*>& getSelected() 646 660 { return _selected; } 661 662 // Scene Graph 663 647 664 osg::Group *getSceneRoot() 648 665 { return _sceneRoot.get(); } … … 658 675 initAnnotations(); 659 676 return _placeNodes.get(); 660 }661 Placard getPlacardConfig(const char *layerName)662 {663 Placard ret;664 PlacardHashmap::iterator itr = _placardConfigs.find(layerName);665 if (itr != _placardConfigs.end()) {666 ret = itr->second;667 }668 return ret;669 677 } 670 678
Note: See TracChangeset
for help on using the changeset viewer.