Ignore:
Timestamp:
Mar 7, 2011, 9:52:06 PM (13 years ago)
Author:
Torben Dannhauer
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • experimental/TerrainTest/terrainModificationTechnique.h

    r266 r269  
    22#include <osg/Referenced>
    33#include <osgTerrain/GeometryTechnique>
    4 #include <osg/Vec4d>
    54#include <osgTerrain/TerrainTile>
    65
     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 */
     13class region : public osg::Referenced
     14{
     15public:
     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} ;
    728
    829/**
     
    2546         * @param tileExtends : This vector contains the extents of the tile: lat_min, lat_max, long_min, long_max
    2647         */
    27         virtual void modifyHeightfield(osg::Vec4d& modificationROI, osg::HeightField* h, osg::Vec4d tileExtends)=0;
     48        virtual void modifyHeightfield(region& modificationROI, osg::HeightField* h, region tileExtends)=0;
    2849
    2950protected:
Note: See TracChangeset for help on using the changeset viewer.