VTK
9.4.20250114
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
Rendering
Context2D
vtkPropItem.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
17
#ifndef vtkPropItem_h
18
#define vtkPropItem_h
19
20
#include "
vtkAbstractContextItem.h
"
21
#include "vtkRenderingContext2DModule.h"
// For export macro
22
#include "
vtkWrappingHints.h
"
// For VTK_MARSHALAUTO
23
24
VTK_ABI_NAMESPACE_BEGIN
25
class
vtkProp
;
26
27
class
VTKRENDERINGCONTEXT2D_EXPORT
VTK_MARSHALAUTO
vtkPropItem
:
public
vtkAbstractContextItem
28
{
29
public
:
30
static
vtkPropItem
*
New
();
31
vtkTypeMacro(
vtkPropItem
,
vtkAbstractContextItem
);
32
void
PrintSelf
(ostream& os,
vtkIndent
indent)
override
;
33
34
bool
Paint
(
vtkContext2D
* painter)
override
;
35
void
ReleaseGraphicsResources
()
override
;
36
40
virtual
void
SetPropObject
(
vtkProp
* PropObject);
41
vtkGetObjectMacro(PropObject,
vtkProp
);
42
43
protected
:
44
vtkPropItem
();
45
~vtkPropItem
()
override
;
46
47
// Sync the active vtkCamera with the GL state set by the painter.
48
virtual
void
UpdateTransforms
();
49
50
// Restore the vtkCamera state.
51
virtual
void
ResetTransforms
();
52
53
private
:
54
vtkProp
* PropObject;
55
56
vtkPropItem
(
const
vtkPropItem
&) =
delete
;
57
void
operator=(
const
vtkPropItem
&) =
delete
;
58
};
59
60
VTK_ABI_NAMESPACE_END
61
#endif
// vtkPropItem_h
vtkAbstractContextItem
base class for items that are part of a vtkContextScene.
Definition
vtkAbstractContextItem.h:31
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
vtkPropItem
Embed a vtkProp in a vtkContextScene.
Definition
vtkPropItem.h:28
vtkPropItem::Paint
bool Paint(vtkContext2D *painter) override
Paint event for the item, called whenever the item needs to be drawn.
vtkPropItem::New
static vtkPropItem * New()
vtkPropItem::vtkPropItem
vtkPropItem()
vtkPropItem::UpdateTransforms
virtual void UpdateTransforms()
vtkPropItem::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkPropItem::SetPropObject
virtual void SetPropObject(vtkProp *PropObject)
The actor to render.
vtkPropItem::~vtkPropItem
~vtkPropItem() override
vtkPropItem::ResetTransforms
virtual void ResetTransforms()
vtkPropItem::ReleaseGraphicsResources
void ReleaseGraphicsResources() override
Release graphics resources hold by the item.
vtkProp
abstract superclass for all actors, volumes and annotations
Definition
vtkProp.h:66
vtkAbstractContextItem.h
vtkWrappingHints.h
VTK_MARSHALAUTO
#define VTK_MARSHALAUTO
Definition
vtkWrappingHints.h:50
Generated on Tue Jan 14 2025 14:31:34 for VTK by
1.9.7