VTK  9.7.20261203
vtkAnariOverlayAdapter Class Reference

#include <vtkAnariOverlayAdapter.h>

Detailed Description

Draws 2D props into a finished pure-ANARI frame.

vtkAnariRenderWindow renders only the 3D scene of its first renderer. After the frame is copied to the CPU, this adapter draws the window's 2D content into the color buffer, so readback and regression images include it:

3D props outside the first renderer are skipped with one trace-level log message per class. Not called when vtkAnariRenderWindow::DrawOverlays is off, as it should be when frames are composited across processes.

Not used by the hybrid OpenGL ANARI pass, where OpenGL draws overlays.

Definition at line 45 of file vtkAnariOverlayAdapter.h.

Public Member Functions

 vtkAnariOverlayAdapter ()
void Draw (vtkRenderWindow *window, unsigned char *rgba, int width, int height)
 Draw the overlays of window's renderers into rgba, the RGBA8 color buffer (row 0 at the bottom) of the frame just rendered for the window's current tile.
vtkAnariOverlays::Canvas * GetActiveCanvas () const
 The canvas wrapping the frame while Draw runs, else nullptr.
void BindTexture (vtkTexture *texture)
 The texture 2D mappers sample, like OpenGL's bound texture: a vtkTexture binds itself while its prop renders (vtkTextActor, vtkTextMapper, ...).
vtkTexture * GetBoundTexture () const

Constructor & Destructor Documentation

◆ vtkAnariOverlayAdapter()

vtkAnariOverlayAdapter::vtkAnariOverlayAdapter ( )

Member Function Documentation

◆ Draw()

void vtkAnariOverlayAdapter::Draw ( vtkRenderWindow * window,
unsigned char * rgba,
int width,
int height )

Draw the overlays of window's renderers into rgba, the RGBA8 color buffer (row 0 at the bottom) of the frame just rendered for the window's current tile.

◆ GetActiveCanvas()

vtkAnariOverlays::Canvas * vtkAnariOverlayAdapter::GetActiveCanvas ( ) const
inline

The canvas wrapping the frame while Draw runs, else nullptr.

2D mappers draw into it.

Definition at line 61 of file vtkAnariOverlayAdapter.h.

◆ BindTexture()

void vtkAnariOverlayAdapter::BindTexture ( vtkTexture * texture)
inline

The texture 2D mappers sample, like OpenGL's bound texture: a vtkTexture binds itself while its prop renders (vtkTextActor, vtkTextMapper, ...).

Definition at line 67 of file vtkAnariOverlayAdapter.h.

◆ GetBoundTexture()

vtkTexture * vtkAnariOverlayAdapter::GetBoundTexture ( ) const
inline

Definition at line 68 of file vtkAnariOverlayAdapter.h.


The documentation for this class was generated from the following file: