VTK  9.4.20241218
vtkAttributeDataToTableFilter.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-FileCopyrightText: Copyright 2008-2023 Kitware, Inc.
3// SPDX-License-Identifier: BSD-3-Clause
21#ifndef vtkAttributeDataToTableFilter_h
22#define vtkAttributeDataToTableFilter_h
23
24#include "vtkFiltersCoreModule.h" // needed for export macro
25#include "vtkTableAlgorithm.h"
26
27VTK_ABI_NAMESPACE_BEGIN
28class vtkDataSet;
29class vtkFieldData;
30class vtkIdTypeArray;
31
32class VTKFILTERSCORE_EXPORT vtkAttributeDataToTableFilter : public vtkTableAlgorithm
33{
34public:
37 void PrintSelf(ostream& os, vtkIndent indent) override;
38
40
53 vtkSetMacro(FieldAssociation, int);
54 vtkGetMacro(FieldAssociation, int);
56
58
64 vtkSetMacro(AddMetaData, bool);
65 vtkGetMacro(AddMetaData, bool);
66 vtkBooleanMacro(AddMetaData, bool);
68
70
75 vtkSetMacro(GenerateOriginalIds, bool);
76 vtkGetMacro(GenerateOriginalIds, bool);
77 vtkBooleanMacro(GenerateOriginalIds, bool);
79
81
85 vtkSetMacro(GenerateCellConnectivity, bool);
86 vtkGetMacro(GenerateCellConnectivity, bool);
87 vtkBooleanMacro(GenerateCellConnectivity, bool);
89
90protected:
93
99 int FillInputPortInformation(int port, vtkInformation* info) override;
100
105
109 void Decorate(vtkTable* output, vtkDataObject* input);
110
113
114private:
116 void operator=(const vtkAttributeDataToTableFilter&) = delete;
117
122 void ConvertToOriginalIds(vtkDataSet* inputDS, vtkIdTypeArray* indices);
123
124 int FieldAssociation;
125 bool AddMetaData = false;
126 bool GenerateOriginalIds = false;
127 bool GenerateCellConnectivity = false;
128};
129VTK_ABI_NAMESPACE_END
130
131#endif
this filter produces a vtkTable from the chosen attribute in the input data object.
void PassFieldData(vtkFieldData *output, vtkFieldData *input)
~vtkAttributeDataToTableFilter() override
int FillInputPortInformation(int port, vtkInformation *info) override
Overridden to indicate to the executive that we accept non-composite datasets.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
Perform the data processing.
static vtkAttributeDataToTableFilter * New()
void AddCellTypeAndConnectivity(vtkTable *output, vtkDataSet *ds)
void Decorate(vtkTable *output, vtkDataObject *input)
Called when AddMetaData is true.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
general representation of visualization data
abstract class to specify dataset behavior
Definition vtkDataSet.h:165
represent and manipulate fields of data
dynamic, self-adjusting array of vtkIdType
a simple class to control print indentation
Definition vtkIndent.h:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Superclass for algorithms that produce only vtkTables as output.
A table, which contains similar-typed columns of data.
Definition vtkTable.h:169