VTK
dox
Rendering
ContextOpenGL
vtkOpenGLPropItem.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkOpenGLPropItem.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
27
#ifndef vtkOpenGLPropItem_h
28
#define vtkOpenGLPropItem_h
29
30
#include "vtkRenderingContextOpenGLModule.h"
// For export macro
31
#include "
vtkPropItem.h
"
32
#include "
vtkNew.h
"
// for vtkNew
33
34
class
vtkCamera
;
35
36
class
VTKRENDERINGCONTEXTOPENGL_EXPORT
vtkOpenGLPropItem
:
public
vtkPropItem
37
{
38
public
:
39
static
vtkOpenGLPropItem
*
New
();
40
vtkTypeMacro(
vtkOpenGLPropItem
,
vtkPropItem
)
41
42
protected
:
43
vtkOpenGLPropItem
();
44
~
vtkOpenGLPropItem
();
45
46
// Sync the active vtkCamera with the GL state set by the painter.
47
virtual
void
UpdateTransforms
();
48
49
// Restore the vtkCamera state.
50
virtual
void
ResetTransforms
();
51
52
private
:
53
vtkNew<vtkCamera>
CameraCache;
54
55
vtkOpenGLPropItem
(
const
vtkOpenGLPropItem
&) VTK_DELETE_FUNCTION;
56
void
operator=(
const
vtkOpenGLPropItem
&) VTK_DELETE_FUNCTION;
57
};
58
59
#endif //vtkOpenGLPropItem_h
vtkPropItem::New
static vtkPropItem * New()
vtkCamera
a virtual camera for 3D rendering
Definition:
vtkCamera.h:50
vtkNew< vtkCamera >
vtkPropItem::UpdateTransforms
virtual void UpdateTransforms()
vtkNew.h
vtkPropItem
Embed a vtkProp in a vtkContextScene.
Definition:
vtkPropItem.h:37
vtkPropItem::ResetTransforms
virtual void ResetTransforms()
vtkPropItem.h
vtkOpenGLPropItem
Sync Context2D state with vtk camera.
Definition:
vtkOpenGLPropItem.h:36
Generated by
1.8.17