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

Method GetBoundingBox

Rendering/Matplotlib/vtkMatplotlibMathTextUtilities.cxx:629–639  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

627
628//------------------------------------------------------------------------------
629bool 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//------------------------------------------------------------------------------
642bool vtkMatplotlibMathTextUtilities::GetMetrics(

Callers

nothing calls this directly

Calls 3

GetMetricsMethod · 0.95
copyFunction · 0.50
GetDataMethod · 0.45

Tested by

no test coverage detected