VTK  9.3.0
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 <string>
23 #include <vector>
24 
25 class vtkCommand;
26 class vtkRenderer;
27 class vtkRenderPass;
28 class vtkRenderWindow;
29 
30 // Define interaction style
32 {
33 private:
34  vtkRenderer* GLRenderer;
35  vtkRenderPass* O;
36  vtkRenderPass* G;
37  int VisibleActor;
38  int VisibleLight;
39  vtkCommand* Looper;
40 
41 public:
47  void OnKeyPress() override;
48 
49  static void AddName(const char* name);
50 
51  // access to a progressive rendering automator
53 };
54 
55 #endif
superclass for callback/observer methods
Definition: vtkCommand.h:384
interactive manipulation of the camera
static vtkOSPRayTestInteractor * New()
static void AddName(const char *name)
vtkCommand * GetLooper(vtkRenderWindow *)
void OnKeyPress() override
void SetPipelineControlPoints(vtkRenderer *g, vtkRenderPass *_O, vtkRenderPass *_G)
Perform part of the rendering of a vtkRenderer.
Definition: vtkRenderPass.h:49
create a window for renderers to draw into
abstract specification for renderers
Definition: vtkRenderer.h:62
@ name
Definition: vtkX3D.h:219