VTK  9.0.1
vtkMergeArrays.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkMergeArrays.h
5 
6  Copyright (c) Kitware, Inc.
7  All rights reserved.
8  See Copyright.txt or http://www.paraview.org/HTML/Copyright.html for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
31 #ifndef vtkMergeArrays_h
32 #define vtkMergeArrays_h
33 
34 #include "vtkFiltersGeneralModule.h" // For export macro
36 
37 #include <string> // Needed for protected method argument
38 
39 class vtkDataSet;
40 class vtkFieldData;
41 
42 class VTKFILTERSGENERAL_EXPORT vtkMergeArrays : public vtkPassInputTypeAlgorithm
43 {
44 public:
45  static vtkMergeArrays* New();
46 
48  void PrintSelf(ostream& os, vtkIndent indent) override;
49 
50 protected:
52  ~vtkMergeArrays() override;
53 
55 
60  virtual bool GetOutputArrayName(
61  vtkFieldData* arrays, const char* inArrayName, int inputIndex, std::string& outArrayName);
63 
65 
69  void MergeArrays(int inputIndex, vtkFieldData* inputFD, vtkFieldData* outputFD);
70 
72 
76  virtual int MergeDataObjectFields(vtkDataObject* input, int inputIndex, vtkDataObject* output);
78 
79  // see algorithm for more info
81 
83 
84 private:
85  vtkMergeArrays(const vtkMergeArrays&) = delete;
86  void operator=(const vtkMergeArrays&) = delete;
87 };
88 
89 #endif
general representation of visualization data
Definition: vtkDataObject.h:60
abstract class to specify dataset behavior
Definition: vtkDataSet.h:57
represent and manipulate fields of data
Definition: vtkFieldData.h:54
a simple class to control print indentation
Definition: vtkIndent.h:34
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Multiple inputs with one output.
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
void MergeArrays(int inputIndex, vtkFieldData *inputFD, vtkFieldData *outputFD)
Add input field arrays to output, mangling output array names as needed based on inputIndex.
virtual int MergeDataObjectFields(vtkDataObject *input, int inputIndex, vtkDataObject *output)
For a given input and index, add data arrays to the output.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called within ProcessRequest when a request asks the algorithm to do its work.
~vtkMergeArrays() override
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkMergeArrays * New()
virtual bool GetOutputArrayName(vtkFieldData *arrays, const char *inArrayName, int inputIndex, std::string &outArrayName)
Given an existing set of output arrays and an array name and input data set index,...
Superclass for algorithms that produce output of the same type as input.
@ info
Definition: vtkX3D.h:382
@ port
Definition: vtkX3D.h:453
@ string
Definition: vtkX3D.h:496