Ignore:
Timestamp:
Feb 27, 2011, 8:11:34 PM (13 years ago)
Author:
Torben Dannhauer
Message:

Prototype of rampedEllipsoidFunction works.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • experimental/TerrainTest/terrainModificationTechnique.h

    r264 r265  
    2323         * @param modificationROI This vector contains the extents of the region of interest which should be modified: lat min, lat_max, long_min, long_max
    2424         * @param h : Heightfield of the tile which should be modified
    25          * @param tileExtends : This vector contains the extents of the tile: lat min, lat_max, long_min, long_max
     25         * @param tileExtends : This vector contains the extents of the tile: lat_min, lat_max, long_min, long_max
    2626         */
    2727        virtual void modifyHeightfield(osg::Vec4d& modificationROI, osg::HeightField* h, osg::Vec4d tileExtends)=0;
    2828
     29protected:
     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;}
    2932};
Note: See TracChangeset for help on using the changeset viewer.