VTK  9.4.20241218
vtkAppendPartitionedDataSetCollection.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
19#ifndef vtkAppendPartitionedDataSetCollection_h
20#define vtkAppendPartitionedDataSetCollection_h
21
22#include "vtkFiltersCoreModule.h"
24
25VTK_ABI_NAMESPACE_BEGIN
26
27class VTKFILTERSCORE_EXPORT vtkAppendPartitionedDataSetCollection
29{
30public:
33 void PrintSelf(ostream& os, vtkIndent indent) override;
34
54 {
55 APPEND_PARTITIONS = 0,
56 MERGE_PARTITIONS = 1,
57 };
58
60
65 vtkSetClampMacro(AppendMode, int, APPEND_PARTITIONS, MERGE_PARTITIONS);
66 void SetAppendModeToAppendPartitions() { this->SetAppendMode(APPEND_PARTITIONS); }
67 void SetAppendModeToMergePartitions() { this->SetAppendMode(MERGE_PARTITIONS); }
68 vtkGetMacro(AppendMode, int);
70
72
77 vtkSetMacro(AppendFieldData, bool);
78 vtkGetMacro(AppendFieldData, bool);
79 vtkBooleanMacro(AppendFieldData, bool);
81
82protected:
85
86 int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
87 vtkInformationVector* outputVector) override;
88
92 int FillInputPortInformation(int port, vtkInformation* info) override;
93
94private:
96 void operator=(const vtkAppendPartitionedDataSetCollection&) = delete;
97
98 int AppendMode = AppendModes::APPEND_PARTITIONS;
99 bool AppendFieldData = true;
100};
101
102VTK_ABI_NAMESPACE_END
103#endif // vtkAppendPartitionedDataSetCollection_h
void SetAppendModeToMergePartitions()
Set/Get the mode of the append filter.
AppendModes
AppendModes are used to specify how the append filter should behave.
int FillInputPortInformation(int port, vtkInformation *info) override
The input is repeatable, so we override the default implementation.
int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
Methods for subclasses to override to handle different pipeline requests.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkAppendPartitionedDataSetCollection * New()
void SetAppendModeToAppendPartitions()
Set/Get the mode of the append filter.
a simple class to control print indentation
Definition vtkIndent.h:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Superclass for algorithms that produce vtkPartitionedDataSetCollectionAlgorithm.