------------------------------------------------------------------------------
| 337 | |
| 338 | //------------------------------------------------------------------------------ |
| 339 | bool vtkTextActor::GetImageBoundingBox(vtkTextProperty* tprop, vtkViewport* vp, int bbox[4]) |
| 340 | { |
| 341 | std::string text; |
| 342 | if (this->Input && this->Input[0]) |
| 343 | { |
| 344 | text = this->Input; |
| 345 | } |
| 346 | |
| 347 | vtkWindow* win = vp->GetVTKWindow(); |
| 348 | if (!win) |
| 349 | { |
| 350 | vtkErrorMacro(<< "No render window available: cannot determine DPI."); |
| 351 | return false; |
| 352 | } |
| 353 | return this->TextRenderer->GetBoundingBox(tprop, text, bbox, win->GetDPI()); |
| 354 | } |
| 355 | |
| 356 | //------------------------------------------------------------------------------ |
| 357 | void vtkTextActor::SetInput(const char* str) |
no test coverage detected