VTK  9.3.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 
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;
31  static vtkContextMapper2D* New();
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
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:51
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:58
static vtkAlgorithm * New()
general representation of visualization data
Definition: vtkDataObject.h:54