- Timestamp:
- Aug 16, 2016 3:14:57 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
geovis/trunk/Renderer.cpp
r6432 r6485 1845 1845 osgEarth::Annotation::FeatureNode *node = _selectionBox.get(); 1846 1846 osgEarth::Symbology::Geometry *geom = node->getFeature()->getGeometry(); 1847 (*geom)[0] = osg::Vec3d(longM ax, latMin, 0);1848 (*geom)[1] = osg::Vec3d(longM in, latMin, 0);1849 (*geom)[2] = osg::Vec3d(longM in, latMax, 0);1850 (*geom)[3] = osg::Vec3d(longM ax, latMax, 0);1847 (*geom)[0] = osg::Vec3d(longMin, latMin, 0); 1848 (*geom)[1] = osg::Vec3d(longMax, latMin, 0); 1849 (*geom)[2] = osg::Vec3d(longMax, latMax, 0); 1850 (*geom)[3] = osg::Vec3d(longMin, latMax, 0); 1851 1851 node->init(); 1852 1852 #ifndef NEW_ANNOTATION_API … … 1874 1874 *latMin = (*geom)[0].y(); 1875 1875 *latMax = (*geom)[2].y(); 1876 *longMin = (*geom)[ 1].x();1877 *longMax = (*geom)[ 0].x();1876 *longMin = (*geom)[0].x(); 1877 *longMax = (*geom)[2].x(); 1878 1878 if (outSRS == NULL) 1879 1879 return; … … 1941 1941 if (_selectionBox.valid()) { 1942 1942 osgEarth::Symbology::Geometry *geom = _selectionBox->getFeature()->getGeometry(); 1943 (*geom)[0] = osg::Vec3d(longM ax, latMin, 0);1944 (*geom)[1] = osg::Vec3d(longM in, latMin, 0);1945 (*geom)[2] = osg::Vec3d(longM in, latMax, 0);1946 (*geom)[3] = osg::Vec3d(longM ax, latMax, 0);1943 (*geom)[0] = osg::Vec3d(longMin, latMin, 0); 1944 (*geom)[1] = osg::Vec3d(longMax, latMin, 0); 1945 (*geom)[2] = osg::Vec3d(longMax, latMax, 0); 1946 (*geom)[3] = osg::Vec3d(longMin, latMax, 0); 1947 1947 _selectionBox->init(); 1948 1948 } else { 1949 1949 const osgEarth::SpatialReference* geoSRS = _mapNode->getMapSRS()->getGeographicSRS(); 1950 1950 osgEarth::Symbology::Geometry *geom = new osgEarth::Symbology::Polygon(); 1951 geom->push_back(osg::Vec3d(longMin, latMin, 0)); 1951 1952 geom->push_back(osg::Vec3d(longMax, latMin, 0)); 1952 geom->push_back(osg::Vec3d(longM in, latMin, 0));1953 geom->push_back(osg::Vec3d(longMax, latMax, 0)); 1953 1954 geom->push_back(osg::Vec3d(longMin, latMax, 0)); 1954 geom->push_back(osg::Vec3d(longMax, latMax, 0));1955 1955 osgEarth::Symbology::Style boxStyle; 1956 1956 #if 1
Note: See TracChangeset
for help on using the changeset viewer.