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
25class vtkCommand;
26class vtkRenderer;
27class vtkRenderPass;
28class vtkRenderWindow;
29
30// Define interaction style
32{
33private:
34 vtkRenderer* GLRenderer;
37 int VisibleActor;
38 int VisibleLight;
39 vtkCommand* Looper;
40
41public:
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 void AddName(const char *name)
void OnKeyPress() override
void SetPipelineControlPoints(vtkRenderer *g, vtkRenderPass *_O, vtkRenderPass *_G)
static vtkOSPRayTestInteractor * New()
vtkCommand * GetLooper(vtkRenderWindow *)
Perform part of the rendering of a vtkRenderer.
create a window for renderers to draw into
abstract specification for renderers
Definition vtkRenderer.h:59