VTK
vtkContextMapper2D.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkContextMapper2D.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
15 
26 #ifndef vtkContextMapper2D_h
27 #define vtkContextMapper2D_h
28 
29 #include "vtkRenderingContext2DModule.h" // For export macro
30 #include "vtkAlgorithm.h"
31 
32 class vtkContext2D;
33 class vtkTable;
34 class vtkDataArray;
35 class vtkAbstractArray;
36 
37 class VTKRENDERINGCONTEXT2D_EXPORT vtkContextMapper2D : public vtkAlgorithm
38 {
39 public:
41  void PrintSelf(ostream &os, vtkIndent indent) override;
42  static vtkContextMapper2D *New();
43 
45 
48  virtual void SetInputData(vtkTable *input);
49  virtual vtkTable * GetInput();
51 
56  vtkDataObject* input)
57  {
58  return this->vtkAlgorithm::GetInputArrayToProcess(idx, input);
59  }
60 
62  vtkDataObject* input)
63  {
64  return this->vtkAlgorithm::GetInputAbstractArrayToProcess(idx, input);
65  }
66 
67 protected:
69  ~vtkContextMapper2D() override;
70 
75 
76 private:
77  vtkContextMapper2D(const vtkContextMapper2D &) = delete;
78  void operator=(const vtkContextMapper2D &) = delete;
79 
80 };
81 
82 #endif //vtkContextMapper2D_h
vtkContextMapper2D
Abstract class for 2D context mappers.
Definition: vtkContextMapper2D.h:37
vtkAlgorithm
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:59
vtkAlgorithm::FillInputPortInformation
virtual int FillInputPortInformation(int port, vtkInformation *info)
Fill the input port information objects for this algorithm.
vtkContextMapper2D::GetInputArrayToProcess
vtkDataArray * GetInputArrayToProcess(int idx, vtkDataObject *input)
Make the arrays accessible to the plot objects.
Definition: vtkContextMapper2D.h:55
vtkTable
A table, which contains similar-typed columns of data.
Definition: vtkTable.h:68
vtkContextMapper2D::GetInputAbstractArrayToProcess
vtkAbstractArray * GetInputAbstractArrayToProcess(int idx, vtkDataObject *input)
Definition: vtkContextMapper2D.h:61
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:58
vtkDataArray
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:54
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.h
vtkX3D::port
Definition: vtkX3D.h:447
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkAbstractArray
Abstract superclass for all arrays.
Definition: vtkAbstractArray.h:78
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkX3D::info
Definition: vtkX3D.h:376
vtkAlgorithm::New
static vtkAlgorithm * New()
vtkAlgorithm::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkDataObject
general representation of visualization data
Definition: vtkDataObject.h:64