VTK  9.6.20260226
vtkWebGPUImageMapper.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
8
9#ifndef vtkWebGPUImageMapper_h
10#define vtkWebGPUImageMapper_h
11
12#include "vtkImageMapper.h"
13#include "vtkRenderingWebGPUModule.h" // For export macro
14#include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
15
16VTK_ABI_NAMESPACE_BEGIN
20class VTKRENDERINGWEBGPU_EXPORT VTK_MARSHALAUTO vtkWebGPUImageMapper : public vtkImageMapper
21{
22public:
27 void PrintSelf(ostream& os, vtkIndent indent) override;
28
29 void ReleaseGraphicsResources(vtkWindow* window) override;
30
31 void RenderOverlay(vtkViewport* viewport, vtkActor2D* actor) override;
32
33 void RenderData(vtkViewport* viewport, vtkImageData* image, vtkActor2D* actor) override;
34
35protected:
38
39private:
41 void operator=(const vtkWebGPUImageMapper&) = delete;
42
44
45 void CreateTextureFromImage(vtkImageData* input, vtkWebGPURenderer* wgpuRenderer);
46};
47#define vtkWebGPUImageMapper_OVERRIDE_ATTRIBUTES vtkWebGPUImageMapper::CreateOverrideAttributes()
48VTK_ABI_NAMESPACE_END
49#endif
a actor that draws 2D data
Definition vtkActor2D.h:145
topologically and geometrically regular array of data
a simple class to control print indentation
Definition vtkIndent.h:108
Allocate and hold a VTK object.
Definition vtkNew.h:167
Attribute for vtkObjectFactory overrides.
actor that draws 2D data with texture support
abstract specification for Viewports
Definition vtkViewport.h:66
void ReleaseGraphicsResources(vtkWindow *window) override
Release any graphics resources that are being consumed by this mapper.
static vtkOverrideAttribute * CreateOverrideAttributes()
void RenderData(vtkViewport *viewport, vtkImageData *image, vtkActor2D *actor) override
Function called by Render to actually draw the image to to the screen.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkWebGPUImageMapper * New()
void RenderOverlay(vtkViewport *viewport, vtkActor2D *actor) override
~vtkWebGPUImageMapper() override
window superclass for vtkRenderWindow
Definition vtkWindow.h:61
#define VTK_MARSHALAUTO
#define VTK_NEWINSTANCE