------------------------------------------------------------------------------
| 627 | |
| 628 | //------------------------------------------------------------------------------ |
| 629 | bool vtkMatplotlibMathTextUtilities::GetBoundingBox( |
| 630 | vtkTextProperty* tprop, const char* str, int dpi, int bbox[4]) |
| 631 | { |
| 632 | vtkTextRenderer::Metrics metrics; |
| 633 | if (!this->GetMetrics(tprop, str, dpi, metrics)) |
| 634 | { |
| 635 | return false; |
| 636 | } |
| 637 | std::copy(metrics.BoundingBox.GetData(), metrics.BoundingBox.GetData() + 4, bbox); |
| 638 | return true; |
| 639 | } |
| 640 | |
| 641 | //------------------------------------------------------------------------------ |
| 642 | bool vtkMatplotlibMathTextUtilities::GetMetrics( |
nothing calls this directly
no test coverage detected