VTK
9.3.20240419
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
21
VTK_ABI_NAMESPACE_BEGIN
22
class
vtkPolyData
;
23
class
vtkUnsignedCharArray
;
24
25
class
VTKRENDERINGCONTEXT2D_EXPORT
vtkPolyDataItem
:
public
vtkContextItem
26
{
27
public
:
28
vtkTypeMacro(
vtkPolyDataItem
,
vtkContextItem
);
29
void
PrintSelf
(ostream& os,
vtkIndent
indent)
override
;
30
31
static
vtkPolyDataItem
*
New
();
32
36
bool
Paint
(
vtkContext2D
* painter)
override
;
37
41
void
SetPolyData
(
vtkPolyData
* polyData);
42
47
void
SetMappedColors
(
vtkUnsignedCharArray
* colors);
48
52
vtkGetObjectMacro(PolyData,
vtkPolyData
);
53
57
vtkSetVector2Macro(
Position
,
float
);
58
62
vtkSetMacro(ScalarMode,
int
);
63
64
protected
:
65
vtkPolyDataItem
();
66
~vtkPolyDataItem
()
override
;
67
68
class
DrawHintsHelper;
69
DrawHintsHelper*
HintHelper
;
70
71
float
Position
[2];
72
73
vtkPolyData
*
PolyData
;
74
75
vtkUnsignedCharArray
*
MappedColors
;
76
77
int
ScalarMode
;
78
79
private
:
80
vtkPolyDataItem
(
const
vtkPolyDataItem
&) =
delete
;
81
void
operator=(
const
vtkPolyDataItem
&) =
delete
;
82
};
83
84
VTK_ABI_NAMESPACE_END
85
#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:45
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:26
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::New
static vtkPolyDataItem * New()
vtkPolyDataItem::MappedColors
vtkUnsignedCharArray * MappedColors
Definition:
vtkPolyDataItem.h:75
vtkPolyDataItem::ScalarMode
int ScalarMode
Definition:
vtkPolyDataItem.h:77
vtkPolyDataItem::Paint
bool Paint(vtkContext2D *painter) override
Paint event for the item.
vtkPolyDataItem::~vtkPolyDataItem
~vtkPolyDataItem() override
vtkPolyDataItem::HintHelper
DrawHintsHelper * HintHelper
Definition:
vtkPolyDataItem.h:68
vtkPolyDataItem::SetMappedColors
void SetMappedColors(vtkUnsignedCharArray *colors)
Set mapped colors.
vtkPolyDataItem::PolyData
vtkPolyData * PolyData
Definition:
vtkPolyDataItem.h:73
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
vtkParticleTracerBaseNamespace::Position
struct Position_t Position
Definition:
vtkParticleTracerBase.h:54
vtkContextItem.h
Generated on Fri Apr 19 2024 10:38:15 for VTK by
1.9.1