------------------------------------------------------------------------------ get the color for a scalar value
| 398 | //------------------------------------------------------------------------------ |
| 399 | // get the color for a scalar value |
| 400 | void vtkLookupTable::GetColor(double v, double rgb[3]) |
| 401 | { |
| 402 | const unsigned char* rgb8 = this->MapValue(v); |
| 403 | |
| 404 | rgb[0] = rgb8[0] / 255.0; |
| 405 | rgb[1] = rgb8[1] / 255.0; |
| 406 | rgb[2] = rgb8[2] / 255.0; |
| 407 | } |
| 408 | |
| 409 | //------------------------------------------------------------------------------ |
| 410 | // get the opacity (alpha) for a scalar value |