VTK
dox
Rendering
OpenGL2
vtkOpenGLRenderTimer.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkOpenGLRenderTimer.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
30
#ifndef vtkOpenGLRenderTimer_h
31
#define vtkOpenGLRenderTimer_h
32
33
#include "vtkRenderingOpenGL2Module.h"
// For export macro
34
#include "
vtkType.h
"
// For vtkTypeUint64, etc
35
36
class
VTKRENDERINGOPENGL2_EXPORT
vtkOpenGLRenderTimer
37
{
38
public
:
39
vtkOpenGLRenderTimer
();
40
~
vtkOpenGLRenderTimer
();
41
45
void
Reset();
46
50
void
Start();
51
55
void
Stop();
56
60
bool
Started();
61
65
bool
Stopped();
66
70
bool
Ready();
71
73
76
float
GetElapsedSeconds();
77
float
GetElapsedMilliseconds();
78
vtkTypeUInt64 GetElapsedNanoseconds();
80
81
protected
:
82
bool
StartReady
;
83
bool
EndReady
;
84
85
vtkTypeUInt32
StartQuery
;
86
vtkTypeUInt32
EndQuery
;
87
88
vtkTypeUInt64
StartTime
;
89
vtkTypeUInt64
EndTime
;
90
91
private
:
92
vtkOpenGLRenderTimer
(
const
vtkOpenGLRenderTimer
&) VTK_DELETE_FUNCTION;
93
void
operator=(
const
vtkOpenGLRenderTimer
&) VTK_DELETE_FUNCTION;
94
};
95
96
#endif // vtkOpenGLRenderTimer_h
97
98
// VTK-HeaderTest-Exclude: vtkOpenGLRenderTimer.h
vtkOpenGLRenderTimer::StartReady
bool StartReady
Definition:
vtkOpenGLRenderTimer.h:82
vtkOpenGLRenderTimer::EndQuery
vtkTypeUInt32 EndQuery
Definition:
vtkOpenGLRenderTimer.h:86
vtkOpenGLRenderTimer::StartTime
vtkTypeUInt64 StartTime
Definition:
vtkOpenGLRenderTimer.h:88
vtkType.h
vtkOpenGLRenderTimer
Asynchronously measures GPU execution time.
Definition:
vtkOpenGLRenderTimer.h:36
vtkOpenGLRenderTimer::StartQuery
vtkTypeUInt32 StartQuery
Definition:
vtkOpenGLRenderTimer.h:85
vtkOpenGLRenderTimer::EndTime
vtkTypeUInt64 EndTime
Definition:
vtkOpenGLRenderTimer.h:89
vtkOpenGLRenderTimer::EndReady
bool EndReady
Definition:
vtkOpenGLRenderTimer.h:83
Generated by
1.8.16