VTK  9.1.0
vtkContextMapper2D.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkContextMapper2D.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=========================================================================*/
15
26#ifndef vtkContextMapper2D_h
27#define vtkContextMapper2D_h
28
29#include "vtkAlgorithm.h"
30#include "vtkRenderingContext2DModule.h" // For export macro
31
32class vtkContext2D;
33class vtkTable;
34class vtkDataArray;
36
37class VTKRENDERINGCONTEXT2D_EXPORT vtkContextMapper2D : public vtkAlgorithm
38{
39public:
41 void PrintSelf(ostream& os, vtkIndent indent) override;
43
45
48 virtual void SetInputData(vtkTable* input);
49 virtual vtkTable* GetInput();
51
56 {
57 return this->vtkAlgorithm::GetInputArrayToProcess(idx, input);
58 }
59
61 {
62 return this->vtkAlgorithm::GetInputAbstractArrayToProcess(idx, input);
63 }
64
65protected:
68
73
74private:
76 void operator=(const vtkContextMapper2D&) = delete;
77};
78
79#endif // vtkContextMapper2D_h
Abstract superclass for all arrays.
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:114
vtkAbstractArray * GetInputAbstractArrayToProcess(int idx, vtkInformationVector **inputVector)
Get the actual data array for the input array specified by idx, this is only reasonable during the RE...
vtkDataArray * GetInputArrayToProcess(int idx, vtkInformationVector **inputVector)
Get the actual data array for the input array specified by idx, this is only reasonable during the RE...
Class for drawing 2D primitives to a graphical context.
Definition: vtkContext2D.h:73
Abstract class for 2D context mappers.
static vtkContextMapper2D * New()
int FillInputPortInformation(int port, vtkInformation *info) override
Specify the types of input we can handle.
virtual vtkTable * GetInput()
Set/Get the input for this object - only accepts vtkTable as input.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual void SetInputData(vtkTable *input)
Set/Get the input for this object - only accepts vtkTable as input.
vtkAbstractArray * GetInputAbstractArrayToProcess(int idx, vtkDataObject *input)
vtkDataArray * GetInputArrayToProcess(int idx, vtkDataObject *input)
Make the arrays accessible to the plot objects.
~vtkContextMapper2D() override
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:159
general representation of visualization data
a simple class to control print indentation
Definition: vtkIndent.h:113
Store vtkAlgorithm input/output information.
A table, which contains similar-typed columns of data.
Definition: vtkTable.h:172
@ info
Definition: vtkX3D.h:382
@ port
Definition: vtkX3D.h:453