Line | |
---|
1 | #pragma once |
---|
2 | #include "terrainModificationTechnique.h" |
---|
3 | #include <limits> |
---|
4 | |
---|
5 | |
---|
6 | |
---|
7 | class rampedEllipsoidTechnique : public terrainModificationTechnique |
---|
8 | { |
---|
9 | public: |
---|
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 | |
---|
17 | private: |
---|
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.