| 403 | } |
| 404 | |
| 405 | bool vtkScatterPlotMatrix::Paint(vtkContext2D* painter) |
| 406 | { |
| 407 | // Do not paint ourselves in the rotation phase. |
| 408 | if (this->Private->AnimationPhase == PIMPL::AnimationPhaseEnum::Rotate) |
| 409 | { |
| 410 | return false; |
| 411 | } |
| 412 | this->CurrentPainter = painter; |
| 413 | this->Update(); |
| 414 | bool ret = this->Superclass::Paint(painter); |
| 415 | this->ResizeBigChart(); |
| 416 | |
| 417 | // As the BigPlot can take some spaces on the top of the chart |
| 418 | // we draw the title on the bottom where there is always room for it. |
| 419 | vtkNew<vtkPoints2D> rect; |
| 420 | rect->InsertNextPoint(0, 0); |
| 421 | rect->InsertNextPoint(this->GetScene()->GetSceneWidth(), 10); |
| 422 | painter->ApplyTextProp(this->TitleProperties); |
| 423 | painter->DrawStringRect(rect, this->Title); |
| 424 | |
| 425 | return ret; |
| 426 | } |
| 427 | |
| 428 | void vtkScatterPlotMatrix::SetScene(vtkContextScene* scene) |
| 429 | { |
nothing calls this directly
no test coverage detected