VTK  9.3.20240329
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 
20 VTK_ABI_NAMESPACE_BEGIN
21 class vtkContext2D;
22 class vtkTable;
23 class vtkDataArray;
24 class vtkAbstractArray;
25 
26 class VTKRENDERINGCONTEXT2D_EXPORT vtkContextMapper2D : public vtkAlgorithm
27 {
28 public:
30  void PrintSelf(ostream& os, vtkIndent indent) override;
32 
34 
37  virtual void SetInputData(vtkTable* input);
38  virtual vtkTable* GetInput();
40 
45  {
46  return this->vtkAlgorithm::GetInputArrayToProcess(idx, input);
47  }
48 
50  {
51  return this->vtkAlgorithm::GetInputAbstractArrayToProcess(idx, input);
52  }
53 
54 protected:
56  ~vtkContextMapper2D() override;
57 
62 
63 private:
64  vtkContextMapper2D(const vtkContextMapper2D&) = delete;
65  void operator=(const vtkContextMapper2D&) = delete;
66 };
67 
68 VTK_ABI_NAMESPACE_END
69 #endif // vtkContextMapper2D_h
Abstract superclass for all arrays.
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:162
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:69
Abstract class for 2D context mappers.
int FillInputPortInformation(int port, vtkInformation *info) override
Specify the types of input we can handle.
vtkDataArray * GetInputArrayToProcess(int idx, vtkDataObject *input)
Make the arrays accessible to the plot objects.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual vtkTable * GetInput()
Set/Get the input for this object - only accepts vtkTable as input.
virtual void SetInputData(vtkTable *input)
Set/Get the input for this object - only accepts vtkTable as input.
vtkAbstractArray * GetInputAbstractArrayToProcess(int idx, vtkDataObject *input)
static vtkContextMapper2D * New()
~vtkContextMapper2D() override
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:155
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:168
@ info
Definition: vtkX3D.h:376
@ port
Definition: vtkX3D.h:447