| 578 | } |
| 579 | |
| 580 | void vtkRenderView::ApplyViewTheme(vtkViewTheme* theme) |
| 581 | { |
| 582 | this->Renderer->SetBackground(theme->GetBackgroundColor()); |
| 583 | this->Renderer->SetBackground2(theme->GetBackgroundColor2()); |
| 584 | this->Renderer->SetGradientBackground(true); |
| 585 | for (int i = 0; i < this->GetNumberOfRepresentations(); ++i) |
| 586 | { |
| 587 | this->GetRepresentation(i)->ApplyViewTheme(theme); |
| 588 | } |
| 589 | } |
| 590 | |
| 591 | void vtkRenderView::SetLabelPlacementMode(int mode) |
| 592 | { |