VTK  9.4.2
vtkAnariPass.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
24#ifndef vtkAnariPass_h
25#define vtkAnariPass_h
26
27#include "vtkNew.h" // For vtkNew
28#include "vtkRenderPass.h"
29#include "vtkRenderingAnariModule.h" // For export macro
30
31VTK_ABI_NAMESPACE_BEGIN
32
33class vtkAnariPassInternals;
35
36class vtkCameraPass;
37class vtkLightsPass;
38class vtkOverlayPass;
40class vtkSequencePass;
43
44class VTKRENDERINGANARI_EXPORT vtkAnariPass : public vtkRenderPass
45{
46public:
47 static vtkAnariPass* New();
49 void PrintSelf(ostream& os, vtkIndent indent) override;
50
54 virtual void Render(const vtkRenderState* s) override;
55
57
61 vtkGetObjectMacro(SceneGraph, vtkAnariRendererNode);
63
67 virtual void RenderInternal(const vtkRenderState* s);
68
75
76protected:
81
85 virtual ~vtkAnariPass();
86
89
90private:
91 vtkAnariPass(const vtkAnariPass&) = delete;
92 void operator=(const vtkAnariPass&) = delete;
93
94 vtkAnariPassInternals* Internal;
95 const char* PreviousRendererSubtype;
96};
97
98VTK_ABI_NAMESPACE_END
99#endif
a render pass that uses ANARI (ANAlytic Rendering Interface) instead of OpenGL.
virtual void RenderInternal(const vtkRenderState *s)
Called by the internals of this class.
virtual ~vtkAnariPass()
Destructor.
vtkAnariRendererNode * SceneGraph
virtual vtkViewNodeFactory * GetViewNodeFactory()
Get the view node factory that makes ANARI specific translator instances for every VTK rendering pipe...
static vtkAnariPass * New()
void SetSceneGraph(vtkAnariRendererNode *)
Tells the pass what it will render.
vtkAnariPass()
Default constructor.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual void Render(const vtkRenderState *s) override
Perform rendering according to a render state s.
vtkNew< vtkCameraPass > CameraPass
links vtkRenderers to ANARI
Implement the camera render pass.
a simple class to control print indentation
Definition vtkIndent.h:108
Implement the lights render pass.
Allocate and hold a VTK object.
Definition vtkNew.h:167
Render the overlay geometry with property key filtering.
an ordered list of RenderPasses
Perform part of the rendering of a vtkRenderer.
Context in which a vtkRenderPass will render.
Execute render passes sequentially.
factory that chooses vtkViewNodes to create
Render the volumetric geometry with property key filtering.