VTK  9.3.20240328
vtkTableToArray.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-FileCopyrightText: Copyright 2008 Sandia Corporation
3 // SPDX-License-Identifier: LicenseRef-BSD-3-Clause-Sandia-USGov
4 
27 #ifndef vtkTableToArray_h
28 #define vtkTableToArray_h
29 
30 #include "vtkArrayDataAlgorithm.h"
31 #include "vtkInfovisCoreModule.h" // For export macro
32 
33 VTK_ABI_NAMESPACE_BEGIN
34 class VTKINFOVISCORE_EXPORT vtkTableToArray : public vtkArrayDataAlgorithm
35 {
36 public:
37  static vtkTableToArray* New();
39  void PrintSelf(ostream& os, vtkIndent indent) override;
40 
45  void ClearColumns();
50  void AddColumn(const char* name);
59  void AddAllColumns();
60 
61 protected:
63  ~vtkTableToArray() override;
64 
66 
68 
69 private:
70  vtkTableToArray(const vtkTableToArray&) = delete;
71  void operator=(const vtkTableToArray&) = delete;
72 
73  class implementation;
74  implementation* const Implementation;
75 };
76 
77 VTK_ABI_NAMESPACE_END
78 #endif
Superclass for algorithms that produce vtkArrayDatas as output.
a simple class to control print indentation
Definition: vtkIndent.h:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
converts a vtkTable to a matrix.
static vtkTableToArray * New()
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void AddColumn(const char *name)
Add a column by name to the list of input table columns that will be mapped to columns in the output ...
void ClearColumns()
Reset the list of input table columns that will be mapped to columns in the output matrix.
~vtkTableToArray() override
void AddColumn(vtkIdType index)
Add a column by index to the list of input table columns that will be mapped to columns in the output...
void AddAllColumns()
Add every input table column to the output matrix.
int FillInputPortInformation(int, vtkInformation *) override
Fill the input port information objects for this algorithm.
@ name
Definition: vtkX3D.h:219
@ index
Definition: vtkX3D.h:246
int vtkIdType
Definition: vtkType.h:315