VTK
9.4.20241227
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
Rendering
ContextOpenGL2
vtkOpenGLPropItem.h
Go to the documentation of this file.
1
// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2
// SPDX-License-Identifier: BSD-3-Clause
3
15
#ifndef vtkOpenGLPropItem_h
16
#define vtkOpenGLPropItem_h
17
18
#include "
vtkNew.h
"
// for vtkNew
19
#include "
vtkPropItem.h
"
20
#include "vtkRenderingContextOpenGL2Module.h"
// For export macro
21
#include "
vtkWrappingHints.h
"
// For VTK_MARSHALAUTO
22
23
VTK_ABI_NAMESPACE_BEGIN
24
class
vtkCamera
;
25
26
class
VTKRENDERINGCONTEXTOPENGL2_EXPORT
VTK_MARSHALAUTO
vtkOpenGLPropItem
:
public
vtkPropItem
27
{
28
public
:
29
static
vtkOpenGLPropItem
*
New
();
30
vtkTypeMacro(
vtkOpenGLPropItem
,
vtkPropItem
);
31
void
PrintSelf
(ostream& os,
vtkIndent
indent)
override
;
32
33
bool
Paint
(
vtkContext2D
* painter)
override
;
34
35
protected
:
36
vtkOpenGLPropItem
();
37
~vtkOpenGLPropItem
()
override
;
38
39
// Sync the active vtkCamera with the GL state set by the painter.
40
void
UpdateTransforms
()
override
;
41
42
// Restore the vtkCamera state.
43
void
ResetTransforms
()
override
;
44
45
private
:
46
vtkNew<vtkCamera>
CameraCache;
47
vtkContext2D
* Painter;
48
49
vtkOpenGLPropItem
(
const
vtkOpenGLPropItem
&) =
delete
;
50
void
operator=(
const
vtkOpenGLPropItem
&) =
delete
;
51
};
52
53
VTK_ABI_NAMESPACE_END
54
#endif
// vtkOpenGLPropItem_h
vtkCamera
a virtual camera for 3D rendering
Definition
vtkCamera.h:151
vtkContext2D
Class for drawing 2D primitives to a graphical context.
Definition
vtkContext2D.h:69
vtkIndent
a simple class to control print indentation
Definition
vtkIndent.h:108
vtkNew
Allocate and hold a VTK object.
Definition
vtkNew.h:167
vtkOpenGLPropItem
Sync Context2D state with vtk camera.
Definition
vtkOpenGLPropItem.h:27
vtkOpenGLPropItem::New
static vtkOpenGLPropItem * New()
vtkOpenGLPropItem::UpdateTransforms
void UpdateTransforms() override
vtkOpenGLPropItem::Paint
bool Paint(vtkContext2D *painter) override
Paint event for the item, called whenever the item needs to be drawn.
vtkOpenGLPropItem::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkOpenGLPropItem::ResetTransforms
void ResetTransforms() override
vtkOpenGLPropItem::vtkOpenGLPropItem
vtkOpenGLPropItem()
vtkOpenGLPropItem::~vtkOpenGLPropItem
~vtkOpenGLPropItem() override
vtkPropItem
Embed a vtkProp in a vtkContextScene.
Definition
vtkPropItem.h:28
vtkNew.h
vtkPropItem.h
vtkWrappingHints.h
VTK_MARSHALAUTO
#define VTK_MARSHALAUTO
Definition
vtkWrappingHints.h:50
Generated on Fri Dec 27 2024 12:03:25 for VTK by
1.9.7