VTK: Rendering/Context2D/vtkContextMapper2D.h Source File

| 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:
29 vtkTypeMacro(vtkContextMapper2D, vtkAlgorithm);
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
44 vtkDataArray* GetInputArrayToProcess(int idx, vtkDataObject* input)
45 {
46 return this->vtkAlgorithm::GetInputArrayToProcess(idx, input);
47 }
48
49 vtkAbstractArray* GetInputAbstractArrayToProcess(int idx, vtkDataObject* input)
50 {
51 return this->vtkAlgorithm::GetInputAbstractArrayToProcess(idx, input);
52 }
53
54 protected:
55 vtkContextMapper2D();
56 ~vtkContextMapper2D() override;
57
61 int FillInputPortInformation(int port, vtkInformation* info) override;
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
vtkAbstractArray
Abstract superclass for all arrays.
Definition: vtkAbstractArray.h:76
vtkAlgorithm
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:61
vtkAlgorithm::GetInputAbstractArrayToProcess
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...
vtkAlgorithm::GetInputArrayToProcess
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...
vtkContext2D
Class for drawing 2D primitives to a graphical context.
Definition: vtkContext2D.h:59
vtkContextMapper2D
Abstract class for 2D context mappers.
Definition: vtkContextMapper2D.h:27
vtkContextMapper2D::FillInputPortInformation
int FillInputPortInformation(int port, vtkInformation *info) override
Specify the types of input we can handle.
vtkContextMapper2D::vtkContextMapper2D
vtkContextMapper2D()
vtkContextMapper2D::GetInputArrayToProcess
vtkDataArray * GetInputArrayToProcess(int idx, vtkDataObject *input)
Make the arrays accessible to the plot objects.
Definition: vtkContextMapper2D.h:44
vtkContextMapper2D::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkContextMapper2D::GetInput
virtual vtkTable * GetInput()
Set/Get the input for this object - only accepts vtkTable as input.
vtkContextMapper2D::SetInputData
virtual void SetInputData(vtkTable *input)
Set/Get the input for this object - only accepts vtkTable as input.
vtkContextMapper2D::GetInputAbstractArrayToProcess
vtkAbstractArray * GetInputAbstractArrayToProcess(int idx, vtkDataObject *input)
Definition: vtkContextMapper2D.h:49
vtkContextMapper2D::New
static vtkContextMapper2D * New()
vtkContextMapper2D::~vtkContextMapper2D
~vtkContextMapper2D() override
vtkDataArray
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:54
vtkDataObject
general representation of visualization data
Definition: vtkDataObject.h:64
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:38
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:72
vtkTable
A table, which contains similar-typed columns of data.
Definition: vtkTable.h:68
vtkX3D::info
@ info
Definition: vtkX3D.h:376
vtkX3D::port
@ port
Definition: vtkX3D.h:447
vtkAlgorithm.h