VTK  9.3.1
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 
27 VTK_ABI_NAMESPACE_BEGIN
28 class vtkDataSet;
29 class vtkFieldData;
30 class vtkIdTypeArray;
31 
32 class VTKFILTERSCORE_EXPORT vtkAttributeDataToTableFilter : public vtkTableAlgorithm
33 {
34 public:
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 
90 protected:
93 
100 
105 
109  void Decorate(vtkTable* output, vtkDataObject* input);
110 
111  void PassFieldData(vtkFieldData* output, vtkFieldData* input);
112  void AddCellTypeAndConnectivity(vtkTable* output, vtkDataSet* ds);
113 
114 private:
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 };
129 VTK_ABI_NAMESPACE_END
130 
131 #endif
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkTableAlgorithm * New()
Store vtkAlgorithm input/output information.
abstract class to specify dataset behavior
Definition: vtkDataSet.h:52
this filter produces a vtkTable from the chosen attribute in the input data object.
dynamic, self-adjusting array of vtkIdType
a simple class to control print indentation
Definition: vtkIndent.h:28
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
A table, which contains similar-typed columns of data.
Definition: vtkTable.h:58
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
Superclass for algorithms that produce only vtkTables as output.
Store zero or more vtkInformation instances.
general representation of visualization data
Definition: vtkDataObject.h:54
represent and manipulate fields of data
Definition: vtkFieldData.h:51