VTK  9.4.20241218
vtkOSPRayPass.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
28#ifndef vtkOSPRayPass_h
29#define vtkOSPRayPass_h
30
31#include "vtkRenderPass.h"
32#include "vtkRenderingRayTracingModule.h" // For export macro
33
34#include <string> // for std::string
35
36VTK_ABI_NAMESPACE_BEGIN
37class vtkCameraPass;
38class vtkLightsPass;
39class vtkOSPRayPassInternals;
41class vtkOverlayPass;
43class vtkSequencePass;
45
46class VTKRENDERINGRAYTRACING_EXPORT vtkOSPRayPass : public vtkRenderPass
47{
48public:
49 static vtkOSPRayPass* New();
51 void PrintSelf(ostream& os, vtkIndent indent) override;
52
56 void Render(const vtkRenderState* s) override;
57
59
63 vtkGetObjectMacro(SceneGraph, vtkOSPRayRendererNode);
65
69 virtual void RenderInternal(const vtkRenderState* s);
70
72
77 static void RTInit();
78 static void RTShutdown();
79
83 static bool IsSupported();
84
89 static bool IsBackendAvailable(const char* name);
90
91protected:
96
100 ~vtkOSPRayPass() override;
101
109
110private:
111 vtkOSPRayPass(const vtkOSPRayPass&) = delete;
112 void operator=(const vtkOSPRayPass&) = delete;
113
114 vtkOSPRayPassInternals* Internal;
115 std::string PreviousType;
116 static int RTDeviceRefCount;
117};
118
119VTK_ABI_NAMESPACE_END
120#endif
Implement the camera render pass.
a simple class to control print indentation
Definition vtkIndent.h:108
Implement the lights render pass.
a render pass that uses OSPRay instead of GL
static bool IsBackendAvailable(const char *name)
A run time query to see if a particular backend is available.
vtkOSPRayPass()
Default constructor.
vtkOSPRayRendererNode * SceneGraph
vtkLightsPass * LightsPass
static vtkOSPRayPass * New()
virtual void RenderInternal(const vtkRenderState *s)
Called by the internals of this class.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkOverlayPass * OverlayPass
vtkCameraPass * CameraPass
vtkSequencePass * SequencePass
vtkRenderPassCollection * RenderPassCollection
void SetSceneGraph(vtkOSPRayRendererNode *)
Tells the pass what it will render.
static bool IsSupported()
A run time query to see if OSPRay can possibly work.
static void RTShutdown()
void Render(const vtkRenderState *s) override
Perform rendering according to a render state s.
vtkVolumetricPass * VolumetricPass
static void RTInit()
Wrapper around ospray's init and shutdown that protect with a reference count.
~vtkOSPRayPass() override
Destructor.
links vtkRenderers to OSPRay
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.
Render the volumetric geometry with property key filtering.