source: experimental/TerrainTest/rampedEllipsoidTechnique.h @ 269

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