source: experimental/TerrainTest/terrainModificationTechnique.h @ 263

Last change on this file since 263 was 262, checked in by Torben Dannhauer, 13 years ago

introduced abstract "terrainModficationTechnique" base class. this class will be derived by every terrainTechnique, e.g. ellipsoidTechnique

File size: 1007 bytes
Line 
1#include <osg/Referenced>
2#include <osgTerrain/GeometryTechnique>
3#include <osg/Vec4d>
4
5
6/**
7 * \brief This class is the interface definition class for modifying terrain data. Must be subclassed to implement own terrain modification techniques.
8 *
9 * @author Torben Dannhauer
10 * @date  Feb 2011
11 */ 
12class terrainModificationTechnique : public osg::Referenced
13{
14public:
15        terrainModificationTechnique();
16        virtual ~terrainModificationTechnique();
17
18        /**
19         * \brief This function performs the terrain data modification. Must be subclassed.
20         *
21         * @param modificationROI This vector contains the extents of the regoin of interest which should be modified: lat min, lat_max, long_min, long_max
22         * @param h : Heightfield of the tile which should be modified
23         * @param tileExtends : This vector contains the extents of the tile: lat min, lat_max, long_min, long_max
24         */ 
25        virtual void modifyHeightfield(osg::Vec4d& modificationROI, osg::HeightField* h, osg::Vec4d tileExtends)=0;
26
27};
Note: See TracBrowser for help on using the repository browser.