VTK
9.1.0
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
Rendering
Context2D
vtkPolyDataItem.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkPolyDataItem.h
5
6
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7
All rights reserved.
8
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9
10
This software is distributed WITHOUT ANY WARRANTY; without even
11
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12
PURPOSE. See the above copyright notice for more information.
13
14
=========================================================================*/
24
#ifndef vtkPolyDataItem_h
25
#define vtkPolyDataItem_h
26
27
#include "
vtkContextItem.h
"
28
#include "vtkRenderingContext2DModule.h"
// For export macro
29
30
class
vtkPolyData
;
31
class
vtkUnsignedCharArray
;
32
33
class
VTKRENDERINGCONTEXT2D_EXPORT
vtkPolyDataItem
:
public
vtkContextItem
34
{
35
public
:
36
vtkTypeMacro(
vtkPolyDataItem
,
vtkContextItem
);
37
void
PrintSelf
(ostream& os,
vtkIndent
indent)
override
;
38
39
static
vtkPolyDataItem
*
New
();
40
44
bool
Paint
(
vtkContext2D
* painter)
override
;
45
49
void
SetPolyData
(
vtkPolyData
* polyData);
50
55
void
SetMappedColors
(
vtkUnsignedCharArray
* colors);
56
60
vtkGetObjectMacro(PolyData,
vtkPolyData
);
61
65
vtkSetVector2Macro(
Position
,
float
);
66
70
vtkSetMacro(ScalarMode,
int
);
71
72
protected
:
73
vtkPolyDataItem
();
74
~vtkPolyDataItem
()
override
;
75
76
class
DrawHintsHelper;
77
DrawHintsHelper*
HintHelper
;
78
79
float
Position
[2];
80
81
vtkPolyData
*
PolyData
;
82
83
vtkUnsignedCharArray
*
MappedColors
;
84
85
int
ScalarMode
;
86
87
private
:
88
vtkPolyDataItem
(
const
vtkPolyDataItem
&) =
delete
;
89
void
operator=(
const
vtkPolyDataItem
&) =
delete
;
90
};
91
92
#endif
vtkContext2D
Class for drawing 2D primitives to a graphical context.
Definition:
vtkContext2D.h:73
vtkContextItem
base class for items that are part of a vtkContextScene.
Definition:
vtkContextItem.h:53
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:113
vtkPolyDataItem
Filter that translate a vtkPolyData 2D mesh into vtkContextItems.
Definition:
vtkPolyDataItem.h:34
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:83
vtkPolyDataItem::ScalarMode
int ScalarMode
Definition:
vtkPolyDataItem.h:85
vtkPolyDataItem::Paint
bool Paint(vtkContext2D *painter) override
Paint event for the item.
vtkPolyDataItem::~vtkPolyDataItem
~vtkPolyDataItem() override
vtkPolyDataItem::HintHelper
DrawHintsHelper * HintHelper
Definition:
vtkPolyDataItem.h:77
vtkPolyDataItem::New
static vtkPolyDataItem * New()
vtkPolyDataItem::SetMappedColors
void SetMappedColors(vtkUnsignedCharArray *colors)
Set mapped colors.
vtkPolyDataItem::PolyData
vtkPolyData * PolyData
Definition:
vtkPolyDataItem.h:81
vtkPolyDataItem::vtkPolyDataItem
vtkPolyDataItem()
vtkPolyData
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition:
vtkPolyData.h:195
vtkUnsignedCharArray
dynamic, self-adjusting array of unsigned char
Definition:
vtkUnsignedCharArray.h:145
vtkParticleTracerBaseNamespace::Position
Position_t Position
Definition:
vtkParticleTracerBase.h:63
vtkContextItem.h
Generated on Sat Feb 25 2023 08:59:35 for VTK by
1.9.4