VTK  9.7.1
vtkOSPRayTestInteractor.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
3 // .SECTION Description
4 // A common interactor style for the ospray tests that understands
5 // the following key presses.
6 // c => switch between OSPRay and GL
7 // s => turn shadows on and off
8 // n => focuses view on the next actor and hides all others
9 // 2/1 => increase/decrease the number of samples per pixel
10 // P/p => increase/decrease the number of OSPRay rendering passes
11 // l => turns on each light in the scene in turn
12 // I/i => increase/decrease the global light intensity scale
13 // D/d => increase/decrease the number of ambient occlusion samples
14 // t => change renderer type: scivis, pathtracer
15 // N => toggle use of openimage denoiser, if applicable
16 
17 #ifndef vtkOSPRayTestInteractor_h
18 #define vtkOSPRayTestInteractor_h
19 
21 
22 #include <iostream>
23 #include <string>
24 #include <vector>
25 
26 VTK_ABI_NAMESPACE_BEGIN
27 class vtkCommand;
28 class vtkRenderer;
29 class vtkRenderPass;
30 class vtkRenderWindow;
31 VTK_ABI_NAMESPACE_END
32 
33 // Define interaction style
35 {
36 private:
37  vtkRenderer* GLRenderer;
38  vtkRenderPass* O;
39  vtkRenderPass* G;
40  int VisibleActor;
41  int VisibleLight;
42  vtkCommand* Looper;
43 
44 public:
45  static vtkOSPRayTestInteractor* New();
50  void OnKeyPress() override;
51 
52  static void AddName(const char* name);
53 
54  // access to a progressive rendering automator
56 };
57 
58 #endif
void SetPipelineControlPoints(vtkRenderer *g, vtkRenderPass *_O, vtkRenderPass *_G)
static vtkOSPRayTestInteractor * New()
abstract specification for renderers
Definition: vtkRenderer.h:63
superclass for callback/observer methods
Definition: vtkCommand.h:384
create a window for renderers to draw into
vtkCommand * GetLooper(vtkRenderWindow *)
interactive manipulation of the camera
static void AddName(const char *name)
Perform part of the rendering of a vtkRenderer.
Definition: vtkRenderPass.h:49
void OnKeyPress() override