VTK  9.7.1
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 
21 VTK_ABI_NAMESPACE_BEGIN
22 class vtkContext2D;
23 class vtkTable;
24 class vtkDataArray;
25 class vtkAbstractArray;
26 
27 class VTKRENDERINGCONTEXT2D_EXPORT VTK_MARSHALAUTO vtkContextMapper2D : public vtkAlgorithm
28 {
29 public:
31  void PrintSelf(ostream& os, vtkIndent indent) override;
32  static vtkContextMapper2D* New();
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 
55 protected:
57  ~vtkContextMapper2D() override;
58 
63 
64 private:
65  vtkContextMapper2D(const vtkContextMapper2D&) = delete;
66  void operator=(const vtkContextMapper2D&) = delete;
67 };
68 
69 VTK_ABI_NAMESPACE_END
70 #endif // vtkContextMapper2D_h
Store vtkAlgorithm input/output information.
Abstract superclass for all arrays.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
Abstract class for 2D context mappers.
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...
Class for drawing 2D primitives to a graphical context.
Definition: vtkContext2D.h:49
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:53
a simple class to control print indentation
Definition: vtkIndent.h:28
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:44
virtual int FillInputPortInformation(int port, vtkInformation *info)
Fill the input port information objects for this algorithm.
vtkDataArray * GetInputArrayToProcess(int idx, vtkDataObject *input)
Make the arrays accessible to the plot objects.
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...
vtkAbstractArray * GetInputAbstractArrayToProcess(int idx, vtkDataObject *input)
A table, which contains similar-typed columns of data.
Definition: vtkTable.h:59
static vtkAlgorithm * New()
#define VTK_MARSHALAUTO
general representation of visualization data
Definition: vtkDataObject.h:55