VTK  9.1.0
vtkOSPRayTestInteractor.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkOSPRayTestInteractor.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=========================================================================*/
15// .SECTION Description
16// A common interactor style for the ospray tests that understands
17// the following key presses.
18// c => switch between OSPRay and GL
19// s => turn shadows on and off
20// n => focuses view on the next actor and hides all others
21// 2/1 => increase/decrease the number of samples per pixel
22// P/p => increase/decrease the number of OSPRay rendering passes
23// l => turns on each light in the scene in turn
24// I/i => increase/decrease the global light intensity scale
25// D/d => increase/decrease the number of ambient occlusion samples
26// t => change renderer type: scivis, pathtracer
27// N => toggle use of openimage denoiser, if applicable
28
29#ifndef vtkOSPRayTestInteractor_h
30#define vtkOSPRayTestInteractor_h
31
33
34#include <string>
35#include <vector>
36
37class vtkCommand;
38class vtkRenderer;
39class vtkRenderPass;
40class vtkRenderWindow;
41
42// Define interaction style
44{
45private:
46 vtkRenderer* GLRenderer;
49 int VisibleActor;
50 int VisibleLight;
51 vtkCommand* Looper;
52
53public:
59 void OnKeyPress() override;
60
61 static void AddName(const char* name);
62
63 // access to a progressive rendering automator
65};
66
67#endif
superclass for callback/observer methods
Definition: vtkCommand.h:394
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.
Definition: vtkRenderPass.h:57
create a window for renderers to draw into
abstract specification for renderers
Definition: vtkRenderer.h:173
@ name
Definition: vtkX3D.h:225