VTK  9.0.20210223
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& 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 
84 private:
85  vtkMergeArrays(const vtkMergeArrays&) = delete;
86  void operator=(const vtkMergeArrays&) = delete;
87 };
88 
89 #endif
vtkPassInputTypeAlgorithm.h
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:35
vtkPassInputTypeAlgorithm::FillInputPortInformation
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
vtkFieldData
represent and manipulate fields of data
Definition: vtkFieldData.h:53
vtkX3D::port
Definition: vtkX3D.h:453
vtkPassInputTypeAlgorithm::RequestData
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called within ProcessRequest when a request asks the algorithm to do its work.
Definition: vtkPassInputTypeAlgorithm.h:182
vtkMergeArrays
Multiple inputs with one output.
Definition: vtkMergeArrays.h:42
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkDataSet
abstract class to specify dataset behavior
Definition: vtkDataSet.h:56
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:73
vtkX3D::info
Definition: vtkX3D.h:382
vtkX3D::string
Definition: vtkX3D.h:496
vtkPassInputTypeAlgorithm::New
static vtkPassInputTypeAlgorithm * New()
vtkPassInputTypeAlgorithm::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkDataObject
general representation of visualization data
Definition: vtkDataObject.h:59
vtkPassInputTypeAlgorithm
Superclass for algorithms that produce output of the same type as input.
Definition: vtkPassInputTypeAlgorithm.h:51