VTK
9.4.20250328
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
Rendering
Context2D
vtkPolyDataItem.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
15
#ifndef vtkPolyDataItem_h
16
#define vtkPolyDataItem_h
17
18
#include "
vtkContextItem.h
"
19
#include "vtkRenderingContext2DModule.h"
// For export macro
20
#include "
vtkWrappingHints.h
"
// For VTK_MARSHALAUTO
21
22
VTK_ABI_NAMESPACE_BEGIN
23
class
vtkPolyData
;
24
class
vtkUnsignedCharArray
;
25
26
class
VTKRENDERINGCONTEXT2D_EXPORT
VTK_MARSHALAUTO
vtkPolyDataItem
:
public
vtkContextItem
27
{
28
public
:
29
vtkTypeMacro(
vtkPolyDataItem
,
vtkContextItem
);
30
void
PrintSelf
(ostream& os,
vtkIndent
indent)
override
;
31
32
static
vtkPolyDataItem
*
New
();
33
37
bool
Paint
(
vtkContext2D
* painter)
override
;
38
42
void
SetPolyData
(
vtkPolyData
* polyData);
43
48
void
SetMappedColors
(
vtkUnsignedCharArray
* colors);
49
53
vtkGetObjectMacro(PolyData,
vtkPolyData
);
54
58
vtkSetVector2Macro(Position,
float
);
59
63
vtkSetMacro(ScalarMode,
int
);
64
65
protected
:
66
vtkPolyDataItem
();
67
~vtkPolyDataItem
()
override
;
68
69
class
DrawHintsHelper;
70
DrawHintsHelper*
HintHelper
;
71
72
float
Position[2];
73
74
vtkPolyData
*
PolyData
;
75
76
vtkUnsignedCharArray
*
MappedColors
;
77
78
int
ScalarMode
;
79
80
private
:
81
vtkPolyDataItem
(
const
vtkPolyDataItem
&) =
delete
;
82
void
operator=(
const
vtkPolyDataItem
&) =
delete
;
83
};
84
85
VTK_ABI_NAMESPACE_END
86
#endif
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
vtkIndent
a simple class to control print indentation
Definition
vtkIndent.h:108
vtkPolyDataItem
Filter that translate a vtkPolyData 2D mesh into vtkContextItems.
Definition
vtkPolyDataItem.h:27
vtkPolyDataItem::SetPolyData
void SetPolyData(vtkPolyData *polyData)
Set the PolyData of the item.
vtkPolyDataItem::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkPolyDataItem::MappedColors
vtkUnsignedCharArray * MappedColors
Definition
vtkPolyDataItem.h:76
vtkPolyDataItem::ScalarMode
int ScalarMode
Definition
vtkPolyDataItem.h:78
vtkPolyDataItem::Paint
bool Paint(vtkContext2D *painter) override
Paint event for the item.
vtkPolyDataItem::~vtkPolyDataItem
~vtkPolyDataItem() override
vtkPolyDataItem::HintHelper
DrawHintsHelper * HintHelper
Definition
vtkPolyDataItem.h:70
vtkPolyDataItem::New
static vtkPolyDataItem * New()
vtkPolyDataItem::SetMappedColors
void SetMappedColors(vtkUnsignedCharArray *colors)
Set mapped colors.
vtkPolyDataItem::PolyData
vtkPolyData * PolyData
Definition
vtkPolyDataItem.h:74
vtkPolyDataItem::vtkPolyDataItem
vtkPolyDataItem()
vtkPolyData
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition
vtkPolyData.h:181
vtkUnsignedCharArray
dynamic, self-adjusting array of unsigned char
Definition
vtkUnsignedCharArray.h:140
vtkContextItem.h
vtkWrappingHints.h
VTK_MARSHALAUTO
#define VTK_MARSHALAUTO
Definition
vtkWrappingHints.h:50
Generated on Fri Mar 28 2025 11:23:38 for VTK by
1.9.7