|
VTK
9.7.20261203
|
Classes | |
| struct | PixelRect |
| An axis-aligned pixel rectangle covering [X0, X1) x [Y0, Y1). More... | |
| class | Canvas |
| Draws overlay primitives into a caller-owned RGBA8 image. More... | |
| class | TextRenderer |
| struct | TileMapping |
| Where an image sits inside the full logical viewport. More... | |
| struct | ImageView |
| A tightly packed RGBA8 image. More... | |
| struct | RGBAColor |
| struct | TextStyle |
| struct | GlyphRun |
| An 8-bit coverage bitmap for a run of text, trimmed to its drawn pixels, row 0 at the TOP. More... | |
| struct | DrawContext |
Typedefs | |
| using | GlyphProvider |
| Rasterizes text into a coverage bitmap. | |
Functions | |
| int | ToPixel (float v) |
| PixelRect | PixelBounds (float x0, float y0, float x1, float y1) |
| GlyphRun | FreeTypeGlyphRun (std::string_view text, const TextStyle &style, float pixelSize) |
| The default glyph provider: rasterizes text with vtkFreeTypeTools, using the style's font family, font file, bold and italic flags. | |
Variables | |
| constexpr int | ReferenceDPI = 72 |
| The DPI at which overlays are drawn unscaled. | |
Rasterizes text into a coverage bitmap.
pixelSize already includes the context's DPIScale; the style's color, opacity and shadow are applied by the caller, not the provider.
Definition at line 114 of file vtkAnariOverlays.h.
|
inline |
Definition at line 56 of file vtkAnariOverlayCanvas.h.
|
inline |
Definition at line 64 of file vtkAnariOverlayCanvas.h.
| GlyphRun vtkAnariOverlays::FreeTypeGlyphRun | ( | std::string_view | text, |
| const TextStyle & | style, | ||
| float | pixelSize ) |
The default glyph provider: rasterizes text with vtkFreeTypeTools, using the style's font family, font file, bold and italic flags.
The bitmap is trimmed to the drawn pixels.
|
constexpr |
The DPI at which overlays are drawn unscaled.
It is 72, the number of typographic points per inch, so a font size in points is a size in pixels; it is also vtkWindow's default DPI. A window's DPI / ReferenceDPI is how much its overlays are scaled up.
Definition at line 49 of file vtkAnariOverlays.h.