VTK  9.5.20250903
vtkFieldDataToDataSetAttribute.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-License-Identifier: BSD-3-Clause
22#ifndef vtkFieldDataToDataSetAttribute_h
23#define vtkFieldDataToDataSetAttribute_h
24
25#include "vtkFiltersCoreModule.h" // For export macro
27#include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
28
29#include "vtkDataObject.h" // for vtkDataObject::AttributeType enum
30
31#include <set>
32#include <string>
33
34VTK_ABI_NAMESPACE_BEGIN
37{
38public:
41 void PrintSelf(ostream& os, vtkIndent indent) override;
42
44
49 vtkSetMacro(ProcessAllArrays, bool);
50 vtkGetMacro(ProcessAllArrays, bool);
51 vtkBooleanMacro(ProcessAllArrays, bool);
53
55
58 vtkSetMacro(OutputFieldType, int);
59 vtkGetMacro(OutputFieldType, int);
61
66
71 virtual void AddFieldDataArray(const char* name);
72
78 virtual void RemoveFieldDataArray(const char* name);
79
84 virtual void ClearFieldDataArrays();
85
89 virtual const std::set<std::string>& GetFieldDataArrays();
91
92protected:
94 ~vtkFieldDataToDataSetAttribute() override = default;
95
100 int FillInputPortInformation(int port, vtkInformation* info) override;
101
106 vtkInformationVector* outputVector) override;
107
108private:
110 void operator=(const vtkFieldDataToDataSetAttribute&) = delete;
111
112 bool ProcessAllArrays = true;
113
115 int OutputFieldType = vtkDataObject::POINT;
116
117 std::set<std::string> FieldDataArrays;
118};
119
120VTK_ABI_NAMESPACE_END
121#endif
map field data to other attribute data
virtual void AddFieldDataArray(const char *name)
Arrays to be processed.
virtual void ClearFieldDataArrays()
Removes all arrays to be processed from the list.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
~vtkFieldDataToDataSetAttribute() override=default
int FillInputPortInformation(int port, vtkInformation *info) override
Reimplemented to remove Composite support.
static vtkFieldDataToDataSetAttribute * New()
virtual void RemoveFieldDataArray(const char *name)
Removes an array to be processed.
virtual const std::set< std::string > & GetFieldDataArrays()
Get the names of the arrays to process.
int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
Reimplemented create data arrays as required.
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 output of the same type as input.
#define VTK_MARSHALAUTO