VTK  9.5.20251120
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
20
21#ifndef vtkAttributeDataToTableFilter_h
22#define vtkAttributeDataToTableFilter_h
23
24#include "vtkFiltersCoreModule.h" // needed for export macro
25#include "vtkTableAlgorithm.h"
26#include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
27
28VTK_ABI_NAMESPACE_BEGIN
29class vtkDataSet;
30class vtkFieldData;
31class vtkIdTypeArray;
32
34{
35public:
38 void PrintSelf(ostream& os, vtkIndent indent) override;
39
41
54 vtkSetMacro(FieldAssociation, int);
55 vtkGetMacro(FieldAssociation, int);
57
59
65 vtkSetMacro(AddMetaData, bool);
66 vtkGetMacro(AddMetaData, bool);
67 vtkBooleanMacro(AddMetaData, bool);
69
71
76 vtkSetMacro(GenerateOriginalIds, bool);
77 vtkGetMacro(GenerateOriginalIds, bool);
78 vtkBooleanMacro(GenerateOriginalIds, bool);
80
82
86 vtkSetMacro(GenerateCellConnectivity, bool);
87 vtkGetMacro(GenerateCellConnectivity, bool);
88 vtkBooleanMacro(GenerateCellConnectivity, bool);
90
91protected:
94
100 int FillInputPortInformation(int port, vtkInformation* info) override;
101
106
110 void Decorate(vtkTable* output, vtkDataObject* input);
111
114
115private:
117 void operator=(const vtkAttributeDataToTableFilter&) = delete;
118
123 void ConvertToOriginalIds(vtkDataSet* inputDS, vtkIdTypeArray* indices);
124
125 int FieldAssociation;
126 bool AddMetaData = false;
127 bool GenerateOriginalIds = false;
128 bool GenerateCellConnectivity = false;
129};
130VTK_ABI_NAMESPACE_END
131
132#endif
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:166
Represents and manipulates a collection of data arrays.
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.
A table, which contains similar-typed columns of data.
Definition vtkTable.h:169
#define VTK_MARSHALAUTO