VTK  9.5.20250909
vtkAppendCompositeDataLeaves.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
43#ifndef vtkAppendCompositeDataLeaves_h
44#define vtkAppendCompositeDataLeaves_h
45
47#include "vtkFiltersCoreModule.h" // For export macro
48#include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
49
50VTK_ABI_NAMESPACE_BEGIN
52class vtkDataSet;
53
56{
57public:
59
61 void PrintSelf(ostream& os, vtkIndent indent) override;
62
64
69 vtkSetMacro(AppendFieldData, vtkTypeBool);
70 vtkGetMacro(AppendFieldData, vtkTypeBool);
71 vtkBooleanMacro(AppendFieldData, vtkTypeBool);
73
74protected:
77
83
88
92 int FillInputPortInformation(int port, vtkInformation* info) override;
93
97 virtual void AppendUnstructuredGrids(vtkInformationVector* inputVector, int i, int numInputs,
99
103 virtual void AppendPolyData(vtkInformationVector* inputVector, int i, int numInputs,
105
112 virtual void AppendFieldDataArrays(vtkInformationVector* inputVector, int i, int numInputs,
114
116
117private:
119 void operator=(const vtkAppendCompositeDataLeaves&) = delete;
120};
121
122VTK_ABI_NAMESPACE_END
123#endif // vtkAppendCompositeDataLeaves_h
appends one or more composite datasets with the same structure together into a single output composit...
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int RequestDataObject(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
Since vtkCompositeDataSet is an abstract class and we output the same types as the input,...
~vtkAppendCompositeDataLeaves() override
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
Iterates over the datasets and appends corresponding notes.
int FillInputPortInformation(int port, vtkInformation *info) override
The input is repeatable, so we override the default implementation.
virtual void AppendPolyData(vtkInformationVector *inputVector, int i, int numInputs, vtkCompositeDataIterator *iter, vtkCompositeDataSet *output)
When leaf nodes are polydata, this uses a vtkAppendPolyData to merge them.
virtual void AppendFieldDataArrays(vtkInformationVector *inputVector, int i, int numInputs, vtkCompositeDataIterator *iter, vtkDataSet *dset)
Both AppendUnstructuredGrids and AppendPolyData call AppendFieldDataArrays.
virtual void AppendUnstructuredGrids(vtkInformationVector *inputVector, int i, int numInputs, vtkCompositeDataIterator *iter, vtkCompositeDataSet *output)
When leaf nodes are unstructured grids, this uses a vtkAppendFilter to merge them.
static vtkAppendCompositeDataLeaves * New()
superclass for composite data iterators
Superclass for algorithms that produce only vtkCompositeDataSet as output.
abstract superclass for composite (multi-block or AMR) datasets
abstract class to specify dataset behavior
Definition vtkDataSet.h:165
a simple class to control print indentation
Definition vtkIndent.h:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
int vtkTypeBool
Definition vtkABI.h:64
#define VTK_MARSHALAUTO