Rev | Line | |
---|
[264] | 1 | #pragma once |
---|
| 2 | #include "terrainModificationTechnique.h" |
---|
[266] | 3 | #include <limits> |
---|
[264] | 4 | |
---|
| 5 | |
---|
| 6 | |
---|
| 7 | class rampedEllipsoidTechnique : public terrainModificationTechnique |
---|
| 8 | { |
---|
| 9 | public: |
---|
| 10 | rampedEllipsoidTechnique(); |
---|
| 11 | ~rampedEllipsoidTechnique(); |
---|
| 12 | |
---|
| 13 | void modifyHeightfield(osg::Vec4d& modificationROI, osg::HeightField* h, osg::Vec4d tileExtends); |
---|
| 14 | void setModifiedHeight(double height) {_height=height;} |
---|
[265] | 15 | void setRampWidthFactor(double rampWidthFactor) {_rampWidthFactor=rampWidthFactor;} |
---|
[264] | 16 | |
---|
| 17 | private: |
---|
[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.