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

Function GetBoundingBox

Rendering/Core/vtkTextRenderer.h:179–183  ·  view source on GitHub ↗

@{ * Given a text property and a string, get the bounding box {xmin, xmax, * ymin, ymax} of the rendered string in pixels. The origin of the bounding * box is the anchor point described by the horizontal and vertical * justification text property variables. * Return true on success, false otherwise. */

Source from the content-addressed store, hash-verified

177 * Return true on success, false otherwise.
178 */
179 bool GetBoundingBox(
180 vtkTextProperty* tprop, const vtkStdString& str, int bbox[4], int dpi, int backend = Default)
181 {
182 return this->GetBoundingBoxInternal(tprop, str, bbox, dpi, backend);
183 }
184 ///@}
185
186 ///@{

Callers 2

InCurrentProcessMethod · 0.85
FindNextProcessMethod · 0.85

Calls 1

Tested by

no test coverage detected