Changeset 6219 for geovis/trunk/Renderer.h
- Timestamp:
- Mar 29, 2016, 11:54:22 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
geovis/trunk/Renderer.h
r6083 r6219 469 469 } 470 470 471 bool mouseToLatLong(int mouseX, int mouseY, double *latitude, double *longitude); 471 bool mouseToLatLong(int mouseX, int mouseY, 472 double *latitude, double *longitude); 472 473 473 474 bool getWorldCoords(const osgEarth::GeoPoint& mapPt, osg::Vec3d *world); … … 529 530 void setSelectMode(SelectMode mode); 530 531 531 void selectFeatures(std::vector<unsigned long>& featureIDs, const char *layerName); 532 void selectFeatures(std::vector<unsigned long>& featureIDs, 533 const char *layerName, bool clear = true); 534 535 void deselectFeatures(std::vector<unsigned long>& featureIDs, 536 const char *layerName); 532 537 533 538 void addPlacard(const osgEarth::GeoPoint& location, … … 537 542 void clearSelection(); 538 543 539 void addRhumbBox(double latMin, double latMax, double longMin, double longMax); 544 void addRhumbBox(double latMin, double latMax, 545 double longMin, double longMax); 540 546 541 547 void initBoxSelection(int x, int y); … … 585 591 typedef std::tr1::unordered_map<ViewpointId, osgEarth::Viewpoint> ViewpointHashmap; 586 592 typedef std::tr1::unordered_map<std::string, Placard> PlacardHashmap; 593 typedef std::tr1::unordered_map<std::string, std::set<unsigned long> > FeatureSelectionHashmap; 587 594 588 595 void initAnnotations(); … … 645 652 bool _pickPending; 646 653 osg::ref_ptr<osg::Group> _placeNodes; 654 FeatureSelectionHashmap _selectedFeatures; 647 655 std::set<osgEarth::Annotation::AnnotationNode *> _hovered; 648 656 std::set<osgEarth::Annotation::AnnotationNode *> _selected;
Note: See TracChangeset
for help on using the changeset viewer.