VTK  9.2.6
vtkOSPRayPass.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkOSPRayPass.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
40 #ifndef vtkOSPRayPass_h
41 #define vtkOSPRayPass_h
42 
43 #include "vtkRenderPass.h"
44 #include "vtkRenderingRayTracingModule.h" // For export macro
45 
46 #include <string> // for std::string
47 
48 class vtkCameraPass;
49 class vtkLightsPass;
50 class vtkOSPRayPassInternals;
52 class vtkOverlayPass;
54 class vtkSequencePass;
55 class vtkVolumetricPass;
56 
57 class VTKRENDERINGRAYTRACING_EXPORT vtkOSPRayPass : public vtkRenderPass
58 {
59 public:
60  static vtkOSPRayPass* New();
61  vtkTypeMacro(vtkOSPRayPass, vtkRenderPass);
62  void PrintSelf(ostream& os, vtkIndent indent) override;
63 
67  void Render(const vtkRenderState* s) override;
68 
70 
73  void SetSceneGraph(vtkOSPRayRendererNode*);
74  vtkGetObjectMacro(SceneGraph, vtkOSPRayRendererNode);
76 
80  virtual void RenderInternal(const vtkRenderState* s);
81 
83 
87  static void RTInit();
89  static void RTShutdown();
90 
94  static bool IsSupported();
95 
100  static bool IsBackendAvailable(const char* name);
101 
102 protected:
106  vtkOSPRayPass();
107 
111  ~vtkOSPRayPass() override;
112 
120 
121 private:
122  vtkOSPRayPass(const vtkOSPRayPass&) = delete;
123  void operator=(const vtkOSPRayPass&) = delete;
124 
125  vtkOSPRayPassInternals* Internal;
126  std::string PreviousType;
127  static int RTDeviceRefCount;
128 };
129 
130 #endif
vtkRenderPassCollection * RenderPassCollection
vtkLightsPass * LightsPass
Execute render passes sequentially.
Render the volumetric geometry with property key filtering.
vtkOSPRayRendererNode * SceneGraph
Implement the camera render pass.
Definition: vtkCameraPass.h:41
Render the overlay geometry with property key filtering.
Context in which a vtkRenderPass will render.
vtkCameraPass * CameraPass
a render pass that uses OSPRay instead of GL
Definition: vtkOSPRayPass.h:57
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkOverlayPass * OverlayPass
vtkSequencePass * SequencePass
virtual void Render(const vtkRenderState *s)=0
Perform rendering according to a render state s.
an ordered list of RenderPasses
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
Perform part of the rendering of a vtkRenderer.
Definition: vtkRenderPass.h:59
links vtkRenderers to OSPRay
Implement the lights render pass.
Definition: vtkLightsPass.h:40
vtkVolumetricPass * VolumetricPass
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.