------------------------------------------------------------------------------
| 159 | |
| 160 | //------------------------------------------------------------------------------ |
| 161 | void vtkTextActor::GetSize(vtkViewport* vport, double size[2]) |
| 162 | { |
| 163 | double bds[4]; |
| 164 | // If we have a viewport, use it. Otherwise, GetBoundingBox() calls |
| 165 | // UpdateRectange(nullptr) which builds a (probably-too-low-resolution) image |
| 166 | // to determine its size. |
| 167 | this->UpdateRectangle(vport); |
| 168 | this->GetBoundingBox(vport, bds); |
| 169 | size[0] = bds[1] - bds[0]; |
| 170 | size[1] = bds[3] - bds[2]; |
| 171 | } |
| 172 | |
| 173 | //------------------------------------------------------------------------------ |
| 174 | int vtkTextActor::SetConstrainedFontSize(vtkViewport* viewport, int targetWidth, int targetHeight) |
no test coverage detected