Specify a lookup table for the mapper to use.
| 575 | |
| 576 | // Specify a lookup table for the mapper to use. |
| 577 | void vtkMapper::SetLookupTable(vtkScalarsToColors* lut) |
| 578 | { |
| 579 | if (this->LookupTable != lut) |
| 580 | { |
| 581 | if (this->LookupTable) |
| 582 | { |
| 583 | this->LookupTable->UnRegister(this); |
| 584 | } |
| 585 | this->LookupTable = lut; |
| 586 | if (lut) |
| 587 | { |
| 588 | lut->Register(this); |
| 589 | } |
| 590 | this->Modified(); |
| 591 | } |
| 592 | } |
| 593 | |
| 594 | vtkScalarsToColors* vtkMapper::GetLookupTable() |
| 595 | { |