VTK  9.3.1
vtkWebGPUProperty.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
11 #ifndef vtkWebGPUProperty_h
12 #define vtkWebGPUProperty_h
13 
14 #include "vtkProperty.h"
15 
16 #include "vtkRenderingWebGPUModule.h" // For export macro
17 
18 VTK_ABI_NAMESPACE_BEGIN
19 class VTKRENDERINGWEBGPU_EXPORT vtkWebGPUProperty : public vtkProperty
20 {
21 public:
22  static vtkWebGPUProperty* New();
24  void PrintSelf(ostream& os, vtkIndent indent) override;
25 
29  void Render(vtkActor* a, vtkRenderer* ren) override;
30 
34  void BackfaceRender(vtkActor* a, vtkRenderer* ren) override;
35 
41  void PostRender(vtkActor* a, vtkRenderer* r) override;
42 
48  void ReleaseGraphicsResources(vtkWindow* win) override;
49 
50 protected:
52  ~vtkWebGPUProperty() override;
53 
58  bool RenderTextures(vtkActor* actor, vtkRenderer* renderer);
59 
60 private:
61  vtkWebGPUProperty(const vtkWebGPUProperty&) = delete;
62  void operator=(const vtkWebGPUProperty&) = delete;
63 };
64 
65 VTK_ABI_NAMESPACE_END
66 #endif
virtual void Render(vtkActor *, vtkRenderer *)
This method causes the property to set up whatever is required for its instance variables.
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:40
static vtkProperty * New()
Construct object with object color, ambient color, diffuse color, specular color, and edge color whit...
represent surface properties of a geometric object
Definition: vtkProperty.h:56
abstract specification for renderers
Definition: vtkRenderer.h:61
window superclass for vtkRenderWindow
Definition: vtkWindow.h:27
a simple class to control print indentation
Definition: vtkIndent.h:28
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual void PostRender(vtkActor *, vtkRenderer *)
This method is called after the actor has been rendered.
virtual void BackfaceRender(vtkActor *, vtkRenderer *)
This method renders the property as a backface property.
Definition: vtkProperty.h:90
virtual void ReleaseGraphicsResources(vtkWindow *win)
Release any graphics resources that are being consumed by this property.
WebGPU property.