VTK  9.7.20261203
vtkAnariOverlays.h File Reference

CPU overlay drawing types for the pure-ANARI render window. More...

#include "vtkRenderingAnariCoreModule.h"
#include "vtkSystemIncludes.h"
#include <array>
#include <cstdint>
#include <functional>
#include <optional>
#include <string>
#include <string_view>
#include <vector>
Include dependency graph for vtkAnariOverlays.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  vtkAnariOverlays::TileMapping
 Where an image sits inside the full logical viewport. More...
struct  vtkAnariOverlays::ImageView
 A tightly packed RGBA8 image. More...
struct  vtkAnariOverlays::RGBAColor
struct  vtkAnariOverlays::TextStyle
struct  vtkAnariOverlays::GlyphRun
 An 8-bit coverage bitmap for a run of text, trimmed to its drawn pixels, row 0 at the TOP. More...
struct  vtkAnariOverlays::DrawContext

Namespaces

namespace  vtkAnariOverlays

Typedefs

using vtkAnariOverlays::GlyphProvider
 Rasterizes text into a coverage bitmap.

Functions

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.

Variables

constexpr int vtkAnariOverlays::ReferenceDPI = 72
 The DPI at which overlays are drawn unscaled.

Detailed Description

CPU overlay drawing types for the pure-ANARI render window.

Plain structs, with no VTK object dependency, describing what is drawn into a caller-owned CPU RGBA8 image on top of a finished frame. Text is rasterized with vtkFreeTypeTools unless the context supplies another glyph provider.

Conventions:

  • Row 0 of an image is the bottom row.
  • Colors are display values (e.g. vtkProperty colors) blended straight into the 8-bit image with no gamma conversion, as VTK's OpenGL path draws them. Alpha is straight (non-premultiplied).
  • Blending matches OpenGL's for VTK overlays: color is source-over the destination color whatever the destination alpha, and alpha accumulates.
  • Drawing never touches pixels outside the canvas's clip rectangle.

Private to VTK::RenderingAnariCore; not installed.

Definition in file vtkAnariOverlays.h.