VTK
dox
Rendering
OSPRay
Testing
Cxx
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
31
#include "
vtkInteractorStyleTrackballCamera.h
"
32
33
#include <vector>
34
#include <string>
35
36
class
vtkOpenGLRenderer
;
37
class
vtkRenderPass
;
38
39
// Define interaction style
40
class
vtkOSPRayTestInteractor
:
public
vtkInteractorStyleTrackballCamera
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
();
51
vtkTypeMacro(
vtkOSPRayTestInteractor
,
vtkInteractorStyleTrackballCamera
);
52
vtkOSPRayTestInteractor
();
53
void
SetPipelineControlPoints
(
vtkOpenGLRenderer
*g,
54
vtkRenderPass
*_O,
55
vtkRenderPass
*_G);
56
virtual
void
OnKeyPress
();
57
58
static
void
AddName
(
const
char
*
name
);
59
};
60
61
#endif
vtkOSPRayTestInteractor::vtkOSPRayTestInteractor
vtkOSPRayTestInteractor()
vtkOpenGLRenderer
OpenGL renderer.
Definition:
vtkOpenGLRenderer.h:34
vtkOSPRayTestInteractor::OnKeyPress
virtual void OnKeyPress()
vtkX3D::name
@ name
Definition:
vtkX3D.h:219
vtkInteractorStyleTrackballCamera
interactive manipulation of the camera
Definition:
vtkInteractorStyleTrackballCamera.h:48
vtkOSPRayTestInteractor::AddName
static void AddName(const char *name)
vtkOSPRayTestInteractor
Definition:
vtkOSPRayTestInteractor.h:41
vtkOSPRayTestInteractor::SetPipelineControlPoints
void SetPipelineControlPoints(vtkOpenGLRenderer *g, vtkRenderPass *_O, vtkRenderPass *_G)
vtkOSPRayTestInteractor::New
static vtkOSPRayTestInteractor * New()
vtkRenderPass
Perform part of the rendering of a vtkRenderer.
Definition:
vtkRenderPass.h:59
vtkInteractorStyleTrackballCamera.h
Generated by
1.8.20