Changeset 6517 for geovis


Ignore:
Timestamp:
Aug 31, 2016 2:45:06 AM (8 years ago)
Author:
ldelgass
Message:

Add comments to header

File:
1 edited

Legend:

Unmodified
Added
Removed
  • geovis/trunk/Renderer.h

    r6511 r6517  
    603603    void writeScene(const std::string& file);
    604604
     605    // Placard info window
     606
    605607    void enablePlacard(const char *layerName, bool state);
    606608
    607609    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
    608622
    609623    void setSelectMode(SelectMode mode);
     
    631645    void clearBoxSelection();
    632646
     647    // These methods are based on the deprecated annotation API
    633648    bool select(osgEarth::Annotation::AnnotationNode *node)
    634649    {
     
    640655        }
    641656    }
    642 
    643657    std::set<osgEarth::Annotation::AnnotationNode*>& getHovered()
    644658    { return _hovered; }
    645659    std::set<osgEarth::Annotation::AnnotationNode*>& getSelected()
    646660    { return _selected; }
     661
     662    // Scene Graph
     663
    647664    osg::Group *getSceneRoot()
    648665    { return _sceneRoot.get(); }
     
    658675        initAnnotations();
    659676        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;
    669677    }
    670678
Note: See TracChangeset for help on using the changeset viewer.