VTK  9.3.20240423
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
49VTK_ABI_NAMESPACE_BEGIN
51class vtkDataSet;
52
54{
55public:
57
59 void PrintSelf(ostream& os, vtkIndent indent) override;
60
62
67 vtkSetMacro(AppendFieldData, vtkTypeBool);
68 vtkGetMacro(AppendFieldData, vtkTypeBool);
69 vtkBooleanMacro(AppendFieldData, vtkTypeBool);
71
72protected:
75
81
86
90 int FillInputPortInformation(int port, vtkInformation* info) override;
91
95 virtual void AppendUnstructuredGrids(vtkInformationVector* inputVector, int i, int numInputs,
97
101 virtual void AppendPolyData(vtkInformationVector* inputVector, int i, int numInputs,
103
110 virtual void AppendFieldDataArrays(vtkInformationVector* inputVector, int i, int numInputs,
112
114
115private:
117 void operator=(const vtkAppendCompositeDataLeaves&) = delete;
118};
119
120VTK_ABI_NAMESPACE_END
121#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:166
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