VTK  9.7.1
vtkMergeArrays.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-FileCopyrightText: Copyright (c) Kitware, Inc.
3 // SPDX-License-Identifier: BSD-3-Clause
23 #ifndef vtkMergeArrays_h
24 #define vtkMergeArrays_h
25 
26 #include "vtkFiltersGeneralModule.h" // For export macro
28 
29 #include <string> // Needed for protected method argument
30 
31 VTK_ABI_NAMESPACE_BEGIN
32 class vtkDataSet;
33 class vtkFieldData;
34 
35 class VTKFILTERSGENERAL_EXPORT vtkMergeArrays : public vtkPassInputTypeAlgorithm
36 {
37 public:
38  static vtkMergeArrays* New();
39 
41  void PrintSelf(ostream& os, vtkIndent indent) override;
42 
43 protected:
45  ~vtkMergeArrays() override;
46 
48 
53  virtual bool GetOutputArrayName(
54  vtkFieldData* arrays, const char* inArrayName, int inputIndex, std::string& outputArrayName);
56 
58 
62  void MergeArrays(int inputIndex, vtkFieldData* inputFD, vtkFieldData* outputFD);
63 
65 
69  virtual int MergeDataObjectFields(vtkDataObject* input, int inputIndex, vtkDataObject* output);
71 
76 
80  int RequestInformation(vtkInformation* request, vtkInformationVector** inputVector,
81  vtkInformationVector* outputVector) override;
82 
84 
85 private:
86  vtkMergeArrays(const vtkMergeArrays&) = delete;
87  void operator=(const vtkMergeArrays&) = delete;
88 };
89 
90 VTK_ABI_NAMESPACE_END
91 #endif
virtual int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called within ProcessRequest when a request asks for Information.
Superclass for algorithms that produce output of the same type as input.
Store vtkAlgorithm input/output information.
abstract class to specify dataset behavior
Definition: vtkDataSet.h:56
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.
general representation of visualization data
Definition: vtkDataObject.h:55
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called within ProcessRequest when a request asks the algorithm to do its work.
Multiple inputs with one output.
static vtkPassInputTypeAlgorithm * New()
Represents and manipulates a collection of data arrays.
Definition: vtkFieldData.h:51