VTK: Infovis/Core/vtkTableToArray.h Source File

| VTK 9.3.1

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();
38 vtkTypeMacro(vtkTableToArray, vtkArrayDataAlgorithm);
39 void PrintSelf(ostream& os, vtkIndent indent) override;
40
45 void ClearColumns();
50 void AddColumn(const char* name);
55 void AddColumn(vtkIdType index);
59 void AddAllColumns();
60
61 protected:
62 vtkTableToArray();
63 ~vtkTableToArray() override;
64
65 int FillInputPortInformation(int, vtkInformation*) override;
66
67 int RequestData(vtkInformation*, vtkInformationVector**, vtkInformationVector*) override;
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
vtkArrayDataAlgorithm
Superclass for algorithms that produce vtkArrayDatas as output.
Definition: vtkArrayDataAlgorithm.h:35
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:38
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:40
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:72
vtkTableToArray
converts a vtkTable to a matrix.
Definition: vtkTableToArray.h:35
vtkTableToArray::vtkTableToArray
vtkTableToArray()
vtkTableToArray::New
static vtkTableToArray * New()
vtkTableToArray::RequestData
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
vtkTableToArray::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkTableToArray::AddColumn
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 ...
vtkTableToArray::ClearColumns
void ClearColumns()
Reset the list of input table columns that will be mapped to columns in the output matrix.
vtkTableToArray::~vtkTableToArray
~vtkTableToArray() override
vtkTableToArray::AddColumn
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...
vtkTableToArray::AddAllColumns
void AddAllColumns()
Add every input table column to the output matrix.
vtkTableToArray::FillInputPortInformation
int FillInputPortInformation(int, vtkInformation *) override
Fill the input port information objects for this algorithm.
vtkX3D::name
@ name
Definition: vtkX3D.h:219
vtkX3D::index
@ index
Definition: vtkX3D.h:246
vtkArrayDataAlgorithm.h
vtkIdType
int vtkIdType
Definition: vtkType.h:315