VTK  9.6.20260613
vtkWebGPUBatchedLabeledDataMapper.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
25
26#ifndef vtkWebGPUBatchedLabeledDataMapper_h
27#define vtkWebGPUBatchedLabeledDataMapper_h
28
30#include "vtkNew.h" // For vtkNew
31#include "vtkRenderingWebGPUModule.h" // For export macro
32#include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
33
34VTK_ABI_NAMESPACE_BEGIN
35class vtkActor;
38
41{
42public:
45 void PrintSelf(ostream& os, vtkIndent indent) override;
46
48
50 void SetLabelTextProperty(vtkTextProperty* p, int type) override;
51
52 void RenderOpaqueGeometry(vtkViewport* viewport, vtkActor2D* actor) override;
54
55protected:
58
59 void ActivateGlyphTexture() override {}
60 void DeactivateGlyphTexture() override {}
61
62private:
64 void operator=(const vtkWebGPUBatchedLabeledDataMapper&) = delete;
65
67 vtkNew<vtkActor> DummyActor;
68
70
71 void SetupHelper();
72 bool HelperSetup = false;
73};
74
75#define vtkWebGPUBatchedLabeledDataMapper_OVERRIDE_ATTRIBUTES \
76 vtkWebGPUBatchedLabeledDataMapper::CreateOverrideAttributes()
77VTK_ABI_NAMESPACE_END
78
79#endif
a actor that draws 2D data
Definition vtkActor2D.h:145
represents an object (geometry & properties) in a rendered scene
Definition vtkActor.h:151
void SetLabelTextProperty(vtkTextProperty *p) override
Set/Get the text property.
a simple class to control print indentation
Definition vtkIndent.h:108
Allocate and hold a VTK object.
Definition vtkNew.h:168
Attribute for vtkObjectFactory overrides.
represent text properties.
abstract specification for Viewports
Definition vtkViewport.h:66
WebGPU backend for vtkBatchedLabeledDataMapper.
void RenderOpaqueGeometry(vtkViewport *viewport, vtkActor2D *actor) override
No-op: backend subclasses override this to drive the render pipeline.
void SetLabelTextProperty(vtkTextProperty *p, int type) override
Set/Get the text property.
static vtkOverrideAttribute * CreateOverrideAttributes()
static vtkWebGPUBatchedLabeledDataMapper * New()
void ActivateGlyphTexture() override
Called before and after the helper renders to bind/unbind the atlas texture.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void ReleaseGraphicsResources(vtkWindow *) override
Releases any GPU resources held by backend subclasses.
window superclass for vtkRenderWindow
Definition vtkWindow.h:61
#define VTK_MARSHALAUTO