| 132 | } |
| 133 | |
| 134 | void setValues(const double centerSaturation, |
| 135 | const double edgeSaturation, |
| 136 | const double centerValue, |
| 137 | const double edgeValue, |
| 138 | const double gamma, |
| 139 | const double rotate, |
| 140 | const OfxPointD& center, |
| 141 | const double radius) |
| 142 | { |
| 143 | _centerSaturation = centerSaturation; |
| 144 | _edgeSaturation = edgeSaturation; |
| 145 | _centerValue = centerValue; |
| 146 | _edgeValue = edgeValue; |
| 147 | _gamma = gamma; |
| 148 | _rotate = rotate - 360 * std::floor(rotate / 360.); // bring rotate between 0 and 360 |
| 149 | _center = center; |
| 150 | _radius = radius; |
| 151 | } |
| 152 | }; |
| 153 | |
| 154 | template <class PIX, int nComponents, int max> |