MCPcopy Create free account
hub / github.com/Kitware/VTK / Paint

Method Paint

Charts/Core/vtkScatterPlotMatrix.cxx:405–426  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

403}
404
405bool 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
428void vtkScatterPlotMatrix::SetScene(vtkContextScene* scene)
429{

Callers

nothing calls this directly

Calls 7

UpdateMethod · 0.95
ResizeBigChartMethod · 0.95
GetSceneWidthMethod · 0.80
DrawStringRectMethod · 0.80
InsertNextPointMethod · 0.45
GetSceneMethod · 0.45
ApplyTextPropMethod · 0.45

Tested by

no test coverage detected