VTK
9.7.20261203
Main Page
Related Pages
Topics
Namespaces
Classes
Files
File List
File Members
Rendering
ANARI
Core
Private
vtkAnariOverlayAdapter.h
Go to the documentation of this file.
1
// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2
// SPDX-License-Identifier: BSD-3-Clause
3
24
25
#ifndef vtkAnariOverlayAdapter_h
26
#define vtkAnariOverlayAdapter_h
27
28
#include "vtkRenderingAnariCoreModule.h"
// For export macro
29
30
#include <set>
// For std::set
31
#include <string>
// For std::string
32
33
namespace
vtkAnariOverlays
34
{
35
VTK_ABI_NAMESPACE_BEGIN
36
class
Canvas
;
37
VTK_ABI_NAMESPACE_END
38
}
39
40
VTK_ABI_NAMESPACE_BEGIN
41
class
vtkRenderWindow
;
42
class
vtkRenderer
;
43
class
vtkTexture
;
44
45
class
VTKRENDERINGANARICORE_NO_EXPORT
vtkAnariOverlayAdapter
46
{
47
public
:
48
vtkAnariOverlayAdapter
();
49
55
void
Draw
(
vtkRenderWindow
* window,
unsigned
char
* rgba,
int
width,
int
height);
56
61
vtkAnariOverlays::Canvas
*
GetActiveCanvas
()
const
{
return
this->ActiveCanvas; }
62
67
void
BindTexture
(
vtkTexture
* texture) { this->BoundTexture = texture; }
68
vtkTexture
*
GetBoundTexture
()
const
{
return
this->BoundTexture; }
69
70
private
:
71
void
DrawRenderer(
vtkRenderer
* renderer,
bool
isMain);
72
void
ReportSkipped(
const
std::string& what);
73
74
// Whether 2D props get vtkAnariPolyDataMapper2D from the object factory.
75
const
bool
Anari2D;
76
std::set<std::string> ReportedSkips;
77
vtkAnariOverlays::Canvas
* ActiveCanvas =
nullptr
;
78
vtkTexture
* BoundTexture =
nullptr
;
79
};
80
81
VTK_ABI_NAMESPACE_END
82
#endif
83
// VTK-HeaderTest-Exclude: vtkAnariOverlayAdapter.h
vtkAnariOverlayAdapter::BindTexture
void BindTexture(vtkTexture *texture)
The texture 2D mappers sample, like OpenGL's bound texture: a vtkTexture binds itself while its prop ...
Definition
vtkAnariOverlayAdapter.h:67
vtkAnariOverlayAdapter::GetActiveCanvas
vtkAnariOverlays::Canvas * GetActiveCanvas() const
The canvas wrapping the frame while Draw runs, else nullptr.
Definition
vtkAnariOverlayAdapter.h:61
vtkAnariOverlayAdapter::Draw
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 th...
vtkAnariOverlayAdapter::vtkAnariOverlayAdapter
vtkAnariOverlayAdapter()
vtkAnariOverlayAdapter::GetBoundTexture
vtkTexture * GetBoundTexture() const
Definition
vtkAnariOverlayAdapter.h:68
vtkAnariOverlays::Canvas
Draws overlay primitives into a caller-owned RGBA8 image.
Definition
vtkAnariOverlayCanvas.h:91
vtkRenderWindow
create a window for renderers to draw into
Definition
vtkRenderWindow.h:185
vtkRenderer
abstract specification for renderers
Definition
vtkRenderer.h:174
vtkTexture
handles properties associated with a texture map
Definition
vtkTexture.h:168
vtkAnariOverlays
Definition
vtkAnariOverlayAdapter.h:34
Generated on
for VTK by
1.16.1