Changeset 269 for experimental/TerrainTest/terrainModificationTechnique.h
- Timestamp:
- Mar 7, 2011, 9:52:06 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
experimental/TerrainTest/terrainModificationTechnique.h
r266 r269 2 2 #include <osg/Referenced> 3 3 #include <osgTerrain/GeometryTechnique> 4 #include <osg/Vec4d>5 4 #include <osgTerrain/TerrainTile> 6 5 6 7 /** 8 * \brief This class defines the extends of a region. This region is a square and is defined by the latitude and longitude range 9 * 10 * @author Torben Dannhauer 11 * @date Mrz 2011 12 */ 13 class region : public osg::Referenced 14 { 15 public: 16 region(); 17 ~region(){}; 18 region( double lat_min, double lat_max, double lon_min, double lon_max); 19 bool isInside(region& outsider); 20 bool isFullOrPartiallyInside(region& outsider); 21 double delta_lat(){return(_lat_max-_lat_max);} 22 double delta_lon(){return(_lon_max-_lon_max);} 23 double _lat_min; 24 double _lat_max; 25 double _lon_min; 26 double _lon_max; 27 } ; 7 28 8 29 /** … … 25 46 * @param tileExtends : This vector contains the extents of the tile: lat_min, lat_max, long_min, long_max 26 47 */ 27 virtual void modifyHeightfield( osg::Vec4d& modificationROI, osg::HeightField* h, osg::Vec4dtileExtends)=0;48 virtual void modifyHeightfield(region& modificationROI, osg::HeightField* h, region tileExtends)=0; 28 49 29 50 protected:
Note: See TracChangeset
for help on using the changeset viewer.