VTK  9.6.20260329
vtkAnariVolumeMapper.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
16#ifndef vtkAnariVolumeMapper_h
17#define vtkAnariVolumeMapper_h
18
20#include "vtkRenderingAnariModule.h" // For export macro
21
22VTK_ABI_NAMESPACE_BEGIN
23
24class vtkAnariPass;
25class vtkRenderer;
26class vtkWindow;
27
28class VTKRENDERINGANARI_EXPORT vtkAnariVolumeMapper : public vtkAnariVolumeInterface
29{
30public:
33 void PrintSelf(ostream& os, vtkIndent indent) override;
34
41
42 // Initialize internal constructs
43 virtual void Init();
44
49 void Render(vtkRenderer*, vtkVolume*) override;
50
55
59 vtkAnariPass* GetAnariPass() const { return this->InternalAnariPass; }
60
62
66 vtkSetMacro(Initialized, bool);
67 vtkGetMacro(Initialized, bool);
68 vtkBooleanMacro(Initialized, bool);
70
71protected:
74
78
79private:
81 void operator=(const vtkAnariVolumeMapper&) = delete;
82};
83
84VTK_ABI_NAMESPACE_END
85#endif
a render pass that uses ANARI (ANAlytic Rendering Interface) instead of OpenGL.
vtkAnariVolumeInterface()=default
vtkRenderer * GetInternalRenderer() const
Allow vtkAnariSceneGraph properties to be set on the internal vtkRenderer.
~vtkAnariVolumeMapper() override
vtkAnariPass * InternalAnariPass
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void Render(vtkRenderer *, vtkVolume *) override
Render the volume onto the screen.
vtkAnariPass * GetAnariPass() const
Get the internal ANARI render pass.
void ReleaseGraphicsResources(vtkWindow *) override
Release any graphics resources that are being consumed by this mapper.
virtual void Init()
static vtkAnariVolumeMapper * New()
a simple class to control print indentation
Definition vtkIndent.h:108
abstract specification for renderers
represents a volume (data & properties) in a rendered scene
Definition vtkVolume.h:130
window superclass for vtkRenderWindow
Definition vtkWindow.h:61