Ignore:
Timestamp:
Mar 29, 2016 11:54:22 AM (8 years ago)
Author:
ldelgass
Message:

Stubs for editing feature selection set

File:
1 edited

Legend:

Unmodified
Added
Removed
  • geovis/trunk/Renderer.h

    r6083 r6219  
    469469    }
    470470
    471     bool mouseToLatLong(int mouseX, int mouseY, double *latitude, double *longitude);
     471    bool mouseToLatLong(int mouseX, int mouseY,
     472                        double *latitude, double *longitude);
    472473
    473474    bool getWorldCoords(const osgEarth::GeoPoint& mapPt, osg::Vec3d *world);
     
    529530    void setSelectMode(SelectMode mode);
    530531
    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);
    532537
    533538    void addPlacard(const osgEarth::GeoPoint& location,
     
    537542    void clearSelection();
    538543
    539     void addRhumbBox(double latMin, double latMax, double longMin, double longMax);
     544    void addRhumbBox(double latMin, double latMax,
     545                     double longMin, double longMax);
    540546
    541547    void initBoxSelection(int x, int y);
     
    585591    typedef std::tr1::unordered_map<ViewpointId, osgEarth::Viewpoint> ViewpointHashmap;
    586592    typedef std::tr1::unordered_map<std::string, Placard> PlacardHashmap;
     593    typedef std::tr1::unordered_map<std::string, std::set<unsigned long> > FeatureSelectionHashmap;
    587594
    588595    void initAnnotations();
     
    645652    bool _pickPending;
    646653    osg::ref_ptr<osg::Group> _placeNodes;
     654    FeatureSelectionHashmap _selectedFeatures;
    647655    std::set<osgEarth::Annotation::AnnotationNode *> _hovered;
    648656    std::set<osgEarth::Annotation::AnnotationNode *> _selected;
Note: See TracChangeset for help on using the changeset viewer.