VTK  9.3.1
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 
28 #include "vtkDataObject.h" // for vtkDataObject::AttributeType enum
29 
30 #include <set>
31 #include <string>
32 
33 VTK_ABI_NAMESPACE_BEGIN
34 class VTKFILTERSCORE_EXPORT vtkFieldDataToDataSetAttribute : public vtkPassInputTypeAlgorithm
35 {
36 public:
39  void PrintSelf(ostream& os, vtkIndent indent) override;
40 
42 
47  vtkSetMacro(ProcessAllArrays, bool);
48  vtkGetMacro(ProcessAllArrays, bool);
49  vtkBooleanMacro(ProcessAllArrays, bool);
51 
53 
56  vtkSetMacro(OutputFieldType, int);
57  vtkGetMacro(OutputFieldType, int);
59 
63 
69  virtual void AddFieldDataArray(const char* name);
70 
76  virtual void RemoveFieldDataArray(const char* name);
77 
82  virtual void ClearFieldDataArrays();
83 
87  virtual const std::set<std::string>& GetFieldDataArrays();
89 
90 protected:
92  ~vtkFieldDataToDataSetAttribute() override = default;
93 
99 
103  int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
104  vtkInformationVector* outputVector) override;
105 
106 private:
108  void operator=(const vtkFieldDataToDataSetAttribute&) = delete;
109 
110  bool ProcessAllArrays = true;
111 
113  int OutputFieldType = vtkDataObject::POINT;
114 
115  std::set<std::string> FieldDataArrays;
116 };
117 
118 VTK_ABI_NAMESPACE_END
119 #endif
Superclass for algorithms that produce output of the same type as input.
Store vtkAlgorithm input/output information.
map field data to other attribute data
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.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
Store zero or more vtkInformation instances.
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called within ProcessRequest when a request asks the algorithm to do its work.
static vtkPassInputTypeAlgorithm * New()