VTK  9.1.0
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
39class vtkDataSet;
40class vtkFieldData;
41
42class VTKFILTERSGENERAL_EXPORT vtkMergeArrays : public vtkPassInputTypeAlgorithm
43{
44public:
46
48 void PrintSelf(ostream& os, vtkIndent indent) override;
49
50protected:
52 ~vtkMergeArrays() override;
53
55
60 virtual bool GetOutputArrayName(
61 vtkFieldData* arrays, const char* inArrayName, int inputIndex, std::string& outputArrayName);
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
84private:
85 vtkMergeArrays(const vtkMergeArrays&) = delete;
86 void operator=(const vtkMergeArrays&) = delete;
87};
88
89#endif
general representation of visualization data
abstract class to specify dataset behavior
Definition: vtkDataSet.h:166
represent and manipulate fields of data
Definition: vtkFieldData.h:164
a simple class to control print indentation
Definition: vtkIndent.h:113
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.
static vtkMergeArrays * New()
virtual bool GetOutputArrayName(vtkFieldData *arrays, const char *inArrayName, int inputIndex, std::string &outputArrayName)
Given an existing set of output arrays and an array name and input data set index,...
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.
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