Flatten removes all points from the envelope to make it horizontal at a chosen y-value. @value - the y-value for the flat envelope.
| 138 | /// make it horizontal at a chosen y-value. |
| 139 | /// @value - the y-value for the flat envelope. |
| 140 | void Envelope::Flatten(double value) |
| 141 | { |
| 142 | mEnv.clear(); |
| 143 | mDefaultValue = ClampValue(value); |
| 144 | |
| 145 | ++mVersion; |
| 146 | } |
| 147 | |
| 148 | void Envelope::SetDragPoint(int dragPoint) |
| 149 | { |
no test coverage detected