------------------------------------------------------------------------------
| 466 | |
| 467 | //------------------------------------------------------------------------------ |
| 468 | void vtkLegendBoxActor::SetEntryColor(int i, double color[3]) |
| 469 | { |
| 470 | if (i >= 0 && i < this->NumberOfEntries) |
| 471 | { |
| 472 | double oldColor[3]; |
| 473 | this->Colors->GetTuple(i, oldColor); |
| 474 | |
| 475 | if (oldColor[0] != color[0] || oldColor[1] != color[1] || oldColor[2] != color[2]) |
| 476 | { |
| 477 | this->Colors->SetTuple3(i, color[0], color[1], color[2]); |
| 478 | this->Modified(); |
| 479 | } |
| 480 | } |
| 481 | } |
| 482 | |
| 483 | //------------------------------------------------------------------------------ |
| 484 | void vtkLegendBoxActor::SetEntryColor(int i, double r, double g, double b) |
no test coverage detected