VTK
dox
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 "vtkRenderingContext2DModule.h"
// For export macro
28
#include "
vtkContextItem.h
"
29
30
31
class
vtkPolyData
;
32
class
vtkUnsignedCharArray
;
33
34
class
VTKRENDERINGCONTEXT2D_EXPORT
vtkPolyDataItem
:
public
vtkContextItem
35
{
36
public
:
37
vtkTypeMacro(
vtkPolyDataItem
,
vtkContextItem
);
38
void
PrintSelf
(ostream& os,
vtkIndent
indent)
override
;
39
40
static
vtkPolyDataItem
*
New
();
41
45
bool
Paint
(
vtkContext2D
* painter)
override
;
46
50
void
SetPolyData
(
vtkPolyData
* polyData);
51
56
void
SetMappedColors
(
vtkUnsignedCharArray
* colors);
57
61
vtkGetObjectMacro(PolyData,
vtkPolyData
);
62
66
vtkSetVector2Macro(Position,
float
);
67
71
vtkSetMacro(ScalarMode,
int
);
72
73
protected
:
74
vtkPolyDataItem
();
75
~vtkPolyDataItem
()
override
;
76
77
class
DrawHintsHelper;
78
DrawHintsHelper*
HintHelper
;
79
80
float
Position[2];
81
82
vtkPolyData
*
PolyData
;
83
84
vtkUnsignedCharArray
*
MappedColors
;
85
86
int
ScalarMode
;
87
88
private
:
89
vtkPolyDataItem
(
const
vtkPolyDataItem
&) =
delete
;
90
void
operator=(
const
vtkPolyDataItem
&) =
delete
;
91
};
92
93
#endif
vtkPolyDataItem::HintHelper
DrawHintsHelper * HintHelper
Definition:
vtkPolyDataItem.h:77
vtkPolyDataItem::~vtkPolyDataItem
~vtkPolyDataItem() override
vtkPolyDataItem::SetPolyData
void SetPolyData(vtkPolyData *polyData)
Set the PolyData of the item.
vtkPolyDataItem::Paint
bool Paint(vtkContext2D *painter) override
Paint event for the item.
vtkUnsignedCharArray
dynamic, self-adjusting array of unsigned char
Definition:
vtkUnsignedCharArray.h:42
vtkContext2D
Class for drawing 2D primitives to a graphical context.
Definition:
vtkContext2D.h:59
vtkContextItem.h
vtkPolyDataItem
Filter that translate a vtkPolyData 2D mesh into vtkContextItems.
Definition:
vtkPolyDataItem.h:35
vtkPolyDataItem::MappedColors
vtkUnsignedCharArray * MappedColors
Definition:
vtkPolyDataItem.h:84
vtkPolyDataItem::SetMappedColors
void SetMappedColors(vtkUnsignedCharArray *colors)
Set mapped colors.
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:40
vtkPolyDataItem::vtkPolyDataItem
vtkPolyDataItem()
vtkPolyDataItem::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkContextItem
base class for items that are part of a vtkContextScene.
Definition:
vtkContextItem.h:35
vtkPolyDataItem::PolyData
vtkPolyData * PolyData
Definition:
vtkPolyDataItem.h:82
vtkPolyDataItem::New
static vtkPolyDataItem * New()
vtkPolyData
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition:
vtkPolyData.h:86
vtkPolyDataItem::ScalarMode
int ScalarMode
Definition:
vtkPolyDataItem.h:86
Generated by
1.8.18