VTK  9.4.20241222
vtkContextMapper2D.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-License-Identifier: BSD-3-Clause
3
14#ifndef vtkContextMapper2D_h
15#define vtkContextMapper2D_h
16
17#include "vtkAlgorithm.h"
18#include "vtkRenderingContext2DModule.h" // For export macro
19#include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
20
21VTK_ABI_NAMESPACE_BEGIN
22class vtkContext2D;
23class vtkTable;
24class vtkDataArray;
26
27class VTKRENDERINGCONTEXT2D_EXPORT VTK_MARSHALAUTO vtkContextMapper2D : public vtkAlgorithm
28{
29public:
31 void PrintSelf(ostream& os, vtkIndent indent) override;
33
35
38 virtual void SetInputData(vtkTable* input);
39 virtual vtkTable* GetInput();
41
46 {
47 return this->vtkAlgorithm::GetInputArrayToProcess(idx, input);
48 }
49
51 {
52 return this->vtkAlgorithm::GetInputAbstractArrayToProcess(idx, input);
53 }
54
55protected:
58
62 int FillInputPortInformation(int port, vtkInformation* info) override;
63
64private:
66 void operator=(const vtkContextMapper2D&) = delete;
67};
68
69VTK_ABI_NAMESPACE_END
70#endif // vtkContextMapper2D_h
Abstract superclass for all arrays.
Superclass for all sources, filters, and sinks in VTK.
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.
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
general representation of visualization data
a simple class to control print indentation
Definition vtkIndent.h:108
Store vtkAlgorithm input/output information.
A table, which contains similar-typed columns of data.
Definition vtkTable.h:169
#define VTK_MARSHALAUTO