|
VTK
9.7.20261203
|
#include <vtkAnariOverlayAdapter.h>
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 |
| vtkAnariOverlayAdapter::vtkAnariOverlayAdapter | ( | ) |
| 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.
|
inline |
The canvas wrapping the frame while Draw runs, else nullptr.
2D mappers draw into it.
Definition at line 61 of file vtkAnariOverlayAdapter.h.
|
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.
|
inline |
Definition at line 68 of file vtkAnariOverlayAdapter.h.