Changeset 265 for experimental/TerrainTest/terrainModificationTechnique.h
- Timestamp:
- Feb 27, 2011, 8:11:34 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
experimental/TerrainTest/terrainModificationTechnique.h
r264 r265 23 23 * @param modificationROI This vector contains the extents of the region of interest which should be modified: lat min, lat_max, long_min, long_max 24 24 * @param h : Heightfield of the tile which should be modified 25 * @param tileExtends : This vector contains the extents of the tile: lat 25 * @param tileExtends : This vector contains the extents of the tile: lat_min, lat_max, long_min, long_max 26 26 */ 27 27 virtual void modifyHeightfield(osg::Vec4d& modificationROI, osg::HeightField* h, osg::Vec4d tileExtends)=0; 28 28 29 protected: 30 void clampValue(double& value, double min, double max){if(value<min)value=min;if(value>max)value=max;} 31 void clampValue(int& value, int min, int max){if(value<min)value=min;if(value>max)value=max;} 29 32 };
Note: See TracChangeset
for help on using the changeset viewer.