source: experimental/TerrainTest/rampedEllipsoidTechnique.h @ 271

Last change on this file since 271 was 269, checked in by Torben Dannhauer, 13 years ago
File size: 588 bytes
RevLine 
[264]1#pragma once
2#include "terrainModificationTechnique.h"
[266]3#include <limits>
[264]4
5
6
7class rampedEllipsoidTechnique : public terrainModificationTechnique
8{
9public:
10        rampedEllipsoidTechnique();
11        ~rampedEllipsoidTechnique();
12
[269]13        void modifyHeightfield(region& modificationROI, osg::HeightField* h, region tileExtends);
[264]14        void setModifiedHeight(double height) {_height=height;}
[265]15        void setRampWidthFactor(double rampWidthFactor) {_rampWidthFactor=rampWidthFactor;}
[264]16
17private:
[266]18        double round(double x) {return (x > 0.5) ? ceil(x) : floor(x);}
[264]19        double _height;
[265]20        double _rampWidthFactor;
[264]21};
Note: See TracBrowser for help on using the repository browser.