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 vtkCommand;
37 class vtkRenderer;
38 class vtkRenderPass;
39 class vtkRenderWindow;
40 
41 // Define interaction style
43 {
44 private:
45  vtkRenderer *GLRenderer;
46  vtkRenderPass *O;
47  vtkRenderPass *G;
48  int VisibleActor;
49  int VisibleLight;
50  vtkCommand *Looper;
51 
52 public:
53  static vtkOSPRayTestInteractor* New();
58  vtkRenderPass *_O,
59  vtkRenderPass *_G);
60  virtual void OnKeyPress() override;
61 
62  static void AddName(const char *name);
63 
64  //access to a progressive rendering automator
66 };
67 
68 #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:370
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:58
virtual void OnKeyPress() override