VTK  9.2.6
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
33class vtkPolyData;
35
36class VTKRENDERINGCONTEXT2D_EXPORT vtkPolyDataItem : public vtkContextItem
37{
38public:
40 void PrintSelf(ostream& os, vtkIndent indent) override;
41
43
47 bool Paint(vtkContext2D* painter) override;
48
52 void SetPolyData(vtkPolyData* polyData);
53
59
63 vtkGetObjectMacro(PolyData, vtkPolyData);
64
68 vtkSetVector2Macro(Position, float);
69
73 vtkSetMacro(ScalarMode, int);
74
75protected:
77 ~vtkPolyDataItem() override;
78
79 class DrawHintsHelper;
80 DrawHintsHelper* HintHelper;
81
82 float Position[2];
83
85
87
89
90private:
91 vtkPolyDataItem(const vtkPolyDataItem&) = delete;
92 void operator=(const vtkPolyDataItem&) = delete;
93};
94
95#endif
Class for drawing 2D primitives to a graphical context.
base class for items that are part of a vtkContextScene.
a simple class to control print indentation
Definition vtkIndent.h:40
Filter that translate a vtkPolyData 2D mesh into vtkContextItems.
void SetPolyData(vtkPolyData *polyData)
Set the PolyData of the item.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkUnsignedCharArray * MappedColors
bool Paint(vtkContext2D *painter) override
Paint event for the item.
~vtkPolyDataItem() override
DrawHintsHelper * HintHelper
static vtkPolyDataItem * New()
void SetMappedColors(vtkUnsignedCharArray *colors)
Set mapped colors.
vtkPolyData * PolyData
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition vtkPolyData.h:91
dynamic, self-adjusting array of unsigned char