VTK
9.4.20250102
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
Rendering
Context2D
vtkImageItem.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
16
#ifndef vtkImageItem_h
17
#define vtkImageItem_h
18
19
#include "
vtkContextItem.h
"
20
#include "vtkRenderingContext2DModule.h"
// For export macro
21
#include "
vtkSmartPointer.h
"
// For SP ivars.
22
#include "
vtkWrappingHints.h
"
// For VTK_MARSHALAUTO
23
24
VTK_ABI_NAMESPACE_BEGIN
25
class
vtkImageData
;
26
27
class
VTKRENDERINGCONTEXT2D_EXPORT
VTK_MARSHALAUTO
vtkImageItem
:
public
vtkContextItem
28
{
29
public
:
30
vtkTypeMacro(
vtkImageItem
,
vtkContextItem
);
31
void
PrintSelf
(ostream& os,
vtkIndent
indent)
override
;
32
33
static
vtkImageItem
*
New
();
34
38
bool
Paint
(
vtkContext2D
* painter)
override
;
39
43
void
SetImage
(
vtkImageData
* image);
44
46
49
vtkGetObjectMacro(Image,
vtkImageData
);
51
53
56
vtkSetVector2Macro(Position,
float
);
58
60
63
vtkGetVector2Macro(Position,
float
);
65
66
protected
:
67
vtkImageItem
();
68
~vtkImageItem
()
override
;
69
70
float
Position[2];
71
72
vtkImageData
*
Image
;
73
74
private
:
75
vtkImageItem
(
const
vtkImageItem
&) =
delete
;
76
void
operator=(
const
vtkImageItem
&) =
delete
;
77
};
78
79
VTK_ABI_NAMESPACE_END
80
#endif
// vtkImageItem_h
vtkContext2D
Class for drawing 2D primitives to a graphical context.
Definition
vtkContext2D.h:69
vtkContextItem
base class for items that are part of a vtkContextScene.
Definition
vtkContextItem.h:46
vtkImageData
topologically and geometrically regular array of data
Definition
vtkImageData.h:156
vtkImageItem
a vtkContextItem that draws a supplied image in the scene.
Definition
vtkImageItem.h:28
vtkImageItem::New
static vtkImageItem * New()
vtkImageItem::vtkImageItem
vtkImageItem()
vtkImageItem::Paint
bool Paint(vtkContext2D *painter) override
Paint event for the item.
vtkImageItem::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkImageItem::Image
vtkImageData * Image
Definition
vtkImageItem.h:72
vtkImageItem::~vtkImageItem
~vtkImageItem() override
vtkImageItem::SetImage
void SetImage(vtkImageData *image)
Set the image of the item.
vtkIndent
a simple class to control print indentation
Definition
vtkIndent.h:108
vtkContextItem.h
vtkSmartPointer.h
vtkWrappingHints.h
VTK_MARSHALAUTO
#define VTK_MARSHALAUTO
Definition
vtkWrappingHints.h:50
Generated on Thu Jan 2 2025 09:04:12 for VTK by
1.9.7