Ignore:
Timestamp:
Sep 10, 2014 1:49:20 PM (7 years ago)
Author:
ldelgass
Message:

Add pin annotations for testing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • geovis/trunk/Renderer.h

    r4629 r4632  
    3131#include <osgEarth/ModelSource>
    3232#include <osgEarth/GeoData>
     33#include <osgEarthAnnotation/AnnotationNode>
    3334#include <osgEarthUtil/EarthManipulator>
    3435#include <osgEarthUtil/MouseCoordsTool>
     
    349350    }
    350351
     352    void addPlaceNode(double latitude, double longitude, char *labelText);
     353
     354    void hoverPlaceNode(int x, int y, bool invertY = true);
     355
     356    void deletePlaceNode(int x, int y, bool invertY = true);
     357
    351358    bool getMousePoint(double *x, double *y, double *z)
    352359    {
     
    439446    double _minFrameTime;
    440447    double _lastFrameTime;
     448    double _renderTime;
    441449    osg::Timer_t _startFrameTime;
     450    osg::Timer_t _renderStartTime;
     451    osg::Timer_t _renderStopTime;
    442452
    443453    ColorMapHashmap _colorMaps;
     
    448458    osg::ref_ptr<osg::Group> _sceneRoot;
    449459    osg::ref_ptr<osg::Group> _graticule;
     460    osg::ref_ptr<osg::Group> _annotations;
     461    osg::ref_ptr<osg::Group> _placeNodes;
     462    std::set<osgEarth::Annotation::AnnotationNode *> _hovered;
    450463    osg::ref_ptr<osgEarth::MapNode> _mapNode;
    451464    osg::ref_ptr<osgEarth::Map> _map;
Note: See TracChangeset for help on using the changeset viewer.