VTK  9.7.1
vtkWebGPUPolyDataMapper2D.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
15 #ifndef vtkWebGPUPolyDataMapper2D_h
16 #define vtkWebGPUPolyDataMapper2D_h
17 
18 #include "vtkPolyDataMapper2D.h"
19 #include "vtkRenderingWebGPUModule.h" // For export macro
20 #include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
21 
22 #include <memory> // for unique_ptr
23 
24 VTK_ABI_NAMESPACE_BEGIN
25 class vtkActor2D;
27 class vtkPoints;
29 
30 class VTKRENDERINGWEBGPU_EXPORT VTK_MARSHALAUTO vtkWebGPUPolyDataMapper2D
31  : public vtkPolyDataMapper2D
32 {
33 public:
37  static vtkOverrideAttribute* CreateOverrideAttributes();
38  void PrintSelf(ostream& os, vtkIndent indent) override;
39 
43  void RenderOverlay(vtkViewport* viewport, vtkActor2D* actor) override;
44 
50  void ReleaseGraphicsResources(vtkWindow*) override;
51 
52 protected:
54  ~vtkWebGPUPolyDataMapper2D() override;
55 
56 private:
58  void operator=(const vtkWebGPUPolyDataMapper2D&) = delete;
59 
61  std::unique_ptr<vtkWebGPUPolyDataMapper2DInternals> Internals;
62 };
63 
64 #define vtkWebGPUPolyDataMapper2D_OVERRIDE_ATTRIBUTES \
65  vtkWebGPUPolyDataMapper2D::CreateOverrideAttributes()
66 VTK_ABI_NAMESPACE_END
67 #endif
static vtkPolyDataMapper2D * New()
Attribute for vtkObjectFactory overrides.
virtual void RenderOverlay(vtkViewport *, vtkActor2D *)
Definition: vtkMapper2D.h:31
abstract specification for Viewports
Definition: vtkViewport.h:46
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
a actor that draws 2D data
Definition: vtkActor2D.h:35
2D PolyData support for WebGPU
window superclass for vtkRenderWindow
Definition: vtkWindow.h:41
a simple class to control print indentation
Definition: vtkIndent.h:28
#define VTK_NEWINSTANCE
virtual void ReleaseGraphicsResources(vtkWindow *)
Release any graphics resources that are being consumed by this mapper.
#define VTK_MARSHALAUTO
draw vtkPolyData onto the image plane
represent and manipulate 3D points
Definition: vtkPoints.h:30
Internal implementation details of vtkWebGPUPolyDataMapper2D.