VTK
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 
28 #ifndef vtkOSPRayTestInteractor_h
29 #define vtkOSPRayTestInteractor_h
30 
32 
33 #include <vector>
34 #include <string>
35 
36 class vtkOpenGLRenderer;
37 class vtkRenderPass;
38 
39 // Define interaction style
41 {
42 private:
43  vtkOpenGLRenderer *GLRenderer;
44  vtkRenderPass *O;
45  vtkRenderPass *G;
46  int VisibleActor;
47  int VisibleLight;
48 
49 public:
50  static vtkOSPRayTestInteractor* New();
54  vtkRenderPass *_O,
55  vtkRenderPass *_G);
56  virtual void OnKeyPress();
57 
58  static void AddName(const char *name);
59 };
60 
61 #endif
static vtkOSPRayTestInteractor * New()
virtual void OnKeyPress()
interactive manipulation of the camera
static void AddName(const char *name)
Perform part of the rendering of a vtkRenderer.
Definition: vtkRenderPass.h:58
OpenGL renderer.
void SetPipelineControlPoints(vtkOpenGLRenderer *g, vtkRenderPass *_O, vtkRenderPass *_G)