VTK
9.0.1
Rendering
OpenVR
vtkOpenVRRay.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
5
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
6
All rights reserved.
7
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
8
9
This software is distributed WITHOUT ANY WARRANTY; without even
10
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
11
PURPOSE. See the above copyright notice for more information.
12
13
=========================================================================*/
21
#ifndef vtkOpenVRRay_h
22
#define vtkOpenVRRay_h
23
24
#include "
vtkNew.h
"
// for ivar
25
#include "
vtkObject.h
"
26
#include "
vtkOpenGLHelper.h
"
// ivar
27
#include "vtkRenderingOpenVRModule.h"
// For export macro
28
#include <openvr.h>
// for ivars
29
30
class
vtkOpenGLRenderWindow
;
31
class
vtkRenderWindow
;
32
class
vtkOpenGLVertexBufferObject
;
33
class
vtkMatrix4x4
;
34
35
class
VTKRENDERINGOPENVR_EXPORT
vtkOpenVRRay
:
public
vtkObject
36
{
37
public
:
38
static
vtkOpenVRRay
*
New
();
39
vtkTypeMacro(
vtkOpenVRRay
,
vtkObject
);
40
void
PrintSelf
(ostream& os,
vtkIndent
indent)
override
;
41
42
bool
Build(
vtkOpenGLRenderWindow
* win);
43
void
Render(
vtkOpenGLRenderWindow
* win,
vtkMatrix4x4
* poseMatrix);
44
45
// show the model
46
vtkSetMacro(Show,
bool
);
47
vtkGetMacro(Show,
bool
);
48
49
vtkSetMacro(Length,
float
);
50
51
vtkSetVector3Macro(
Color
,
float
);
52
53
void
ReleaseGraphicsResources(
vtkRenderWindow
* win);
54
55
protected
:
56
vtkOpenVRRay
();
57
~
vtkOpenVRRay
()
override
;
58
59
bool
Show
;
60
bool
Loaded
;
61
62
vtkOpenGLHelper
RayHelper
;
63
vtkOpenGLVertexBufferObject
*
RayVBO
;
64
vtkNew<vtkMatrix4x4>
PoseMatrix
;
65
66
float
Length
;
67
float
Color
[3];
68
69
private
:
70
vtkOpenVRRay
(
const
vtkOpenVRRay
&) =
delete
;
71
void
operator=(
const
vtkOpenVRRay
&) =
delete
;
72
};
73
74
#endif
vtkOpenVRRay
OpenVR device model.
Definition:
vtkOpenVRRay.h:35
vtkObject::New
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
vtkX3D::Color
@ Color
Definition:
vtkX3D.h:52
vtkOpenGLHelper.h
vtkObject
abstract base class for most VTK objects
Definition:
vtkObject.h:62
vtkOpenVRRay::PoseMatrix
vtkNew< vtkMatrix4x4 > PoseMatrix
Definition:
vtkOpenVRRay.h:64
vtkOpenGLHelper
Definition:
vtkOpenGLHelper.h:30
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:33
vtkMatrix4x4
represent and manipulate 4x4 transformation matrices
Definition:
vtkMatrix4x4.h:35
vtkOpenGLVertexBufferObject
Definition:
vtkOpenGLVertexBufferObject.h:36
vtkNew< vtkMatrix4x4 >
vtkObject::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkOpenVRRay::Loaded
bool Loaded
Definition:
vtkOpenVRRay.h:60
vtkObject.h
vtkOpenVRRay::Length
float Length
Definition:
vtkOpenVRRay.h:66
vtkNew.h
vtkOpenGLRenderWindow
OpenGL rendering window.
Definition:
vtkOpenGLRenderWindow.h:51
vtkOpenVRRay::Show
bool Show
Definition:
vtkOpenVRRay.h:59
vtkRenderWindow
create a window for renderers to draw into
Definition:
vtkRenderWindow.h:93
vtkOpenVRRay::RayVBO
vtkOpenGLVertexBufferObject * RayVBO
Definition:
vtkOpenVRRay.h:63
vtkOpenVRRay::RayHelper
vtkOpenGLHelper RayHelper
Definition:
vtkOpenVRRay.h:62
Generated on Thu Jun 24 2021 15:17:26 for VTK by
1.8.17