VTK  9.3.20240418
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 
49 VTK_ABI_NAMESPACE_BEGIN
51 class vtkDataSet;
52 
53 class VTKFILTERSCORE_EXPORT vtkAppendCompositeDataLeaves : public vtkCompositeDataSetAlgorithm
54 {
55 public:
57 
59  void PrintSelf(ostream& os, vtkIndent indent) override;
60 
62 
67  vtkSetMacro(AppendFieldData, vtkTypeBool);
68  vtkGetMacro(AppendFieldData, vtkTypeBool);
69  vtkBooleanMacro(AppendFieldData, vtkTypeBool);
71 
72 protected:
75 
81 
86 
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,
111  vtkCompositeDataIterator* iter, vtkDataSet* dset);
112 
114 
115 private:
117  void operator=(const vtkAppendCompositeDataLeaves&) = delete;
118 };
119 
120 VTK_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.
static vtkAppendCompositeDataLeaves * New()
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.
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.
@ info
Definition: vtkX3D.h:376
@ port
Definition: vtkX3D.h:447
int vtkTypeBool
Definition: vtkABI.h:64