------------------------------------------------------------------------------
| 429 | |
| 430 | //------------------------------------------------------------------------------ |
| 431 | void vtkLegendBoxActor::SetEntryIcon(int i, vtkImageData* icon) |
| 432 | { |
| 433 | if (i >= 0 && i < this->NumberOfEntries) |
| 434 | { |
| 435 | if (this->IconImage[i] == icon) |
| 436 | { |
| 437 | return; |
| 438 | } |
| 439 | if (this->IconImage[i]) |
| 440 | { |
| 441 | this->IconImage[i]->Delete(); |
| 442 | } |
| 443 | this->IconImage[i] = icon; |
| 444 | if (this->IconImage[i]) |
| 445 | { |
| 446 | this->IconImage[i]->Register(this); |
| 447 | } |
| 448 | this->Modified(); |
| 449 | } |
| 450 | } |
| 451 | |
| 452 | //------------------------------------------------------------------------------ |
| 453 | void vtkLegendBoxActor::SetEntryString(int i, const char* string) |