| 545 | } |
| 546 | |
| 547 | void vtkMapper::ColorByArrayComponent(int arrayNum, int component) |
| 548 | { |
| 549 | if (this->ArrayId == arrayNum && component == this->ArrayComponent && |
| 550 | this->ArrayAccessMode == VTK_GET_ARRAY_BY_ID) |
| 551 | { |
| 552 | return; |
| 553 | } |
| 554 | this->Modified(); |
| 555 | |
| 556 | this->ArrayId = arrayNum; |
| 557 | this->ArrayComponent = component; |
| 558 | this->ArrayAccessMode = VTK_GET_ARRAY_BY_ID; |
| 559 | } |
| 560 | |
| 561 | void vtkMapper::ColorByArrayComponent(const char* arrayName, int component) |
| 562 | { |