VTK
9.2.6
Main Page
Related Pages
Topics
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
=========================================================================*/
27
#ifndef vtkPolyDataItem_h
28
#define vtkPolyDataItem_h
29
30
#include "
vtkContextItem.h
"
31
#include "vtkRenderingContext2DModule.h"
// For export macro
32
33
class
vtkPolyData
;
34
class
vtkUnsignedCharArray
;
35
36
class
VTKRENDERINGCONTEXT2D_EXPORT
vtkPolyDataItem
:
public
vtkContextItem
37
{
38
public
:
39
vtkTypeMacro(
vtkPolyDataItem
,
vtkContextItem
);
40
void
PrintSelf
(ostream& os,
vtkIndent
indent)
override
;
41
42
static
vtkPolyDataItem
*
New
();
43
47
bool
Paint
(
vtkContext2D
* painter)
override
;
48
52
void
SetPolyData
(
vtkPolyData
* polyData);
53
58
void
SetMappedColors
(
vtkUnsignedCharArray
* colors);
59
63
vtkGetObjectMacro(PolyData,
vtkPolyData
);
64
68
vtkSetVector2Macro(Position,
float
);
69
73
vtkSetMacro(ScalarMode,
int
);
74
75
protected
:
76
vtkPolyDataItem
();
77
~vtkPolyDataItem
()
override
;
78
79
class
DrawHintsHelper;
80
DrawHintsHelper*
HintHelper
;
81
82
float
Position[2];
83
84
vtkPolyData
*
PolyData
;
85
86
vtkUnsignedCharArray
*
MappedColors
;
87
88
int
ScalarMode
;
89
90
private
:
91
vtkPolyDataItem
(
const
vtkPolyDataItem
&) =
delete
;
92
void
operator=(
const
vtkPolyDataItem
&) =
delete
;
93
};
94
95
#endif
vtkContext2D
Class for drawing 2D primitives to a graphical context.
Definition
vtkContext2D.h:58
vtkContextItem
base class for items that are part of a vtkContextScene.
Definition
vtkContextItem.h:37
vtkIndent
a simple class to control print indentation
Definition
vtkIndent.h:40
vtkPolyDataItem
Filter that translate a vtkPolyData 2D mesh into vtkContextItems.
Definition
vtkPolyDataItem.h:37
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:86
vtkPolyDataItem::ScalarMode
int ScalarMode
Definition
vtkPolyDataItem.h:88
vtkPolyDataItem::Paint
bool Paint(vtkContext2D *painter) override
Paint event for the item.
vtkPolyDataItem::~vtkPolyDataItem
~vtkPolyDataItem() override
vtkPolyDataItem::HintHelper
DrawHintsHelper * HintHelper
Definition
vtkPolyDataItem.h:80
vtkPolyDataItem::New
static vtkPolyDataItem * New()
vtkPolyDataItem::SetMappedColors
void SetMappedColors(vtkUnsignedCharArray *colors)
Set mapped colors.
vtkPolyDataItem::PolyData
vtkPolyData * PolyData
Definition
vtkPolyDataItem.h:84
vtkPolyDataItem::vtkPolyDataItem
vtkPolyDataItem()
vtkPolyData
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition
vtkPolyData.h:91
vtkUnsignedCharArray
dynamic, self-adjusting array of unsigned char
Definition
vtkUnsignedCharArray.h:39
vtkContextItem.h
Generated on Tue Oct 8 2024 00:00:00 for VTK by
1.12.0