VTK  9.5.20250911
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#include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
25
26VTK_ABI_NAMESPACE_BEGIN
27
30{
31public:
34 void PrintSelf(ostream& os, vtkIndent indent) override;
35
55 {
56 APPEND_PARTITIONS = 0,
57 MERGE_PARTITIONS = 1,
58 };
59
61
66 vtkSetClampMacro(AppendMode, int, APPEND_PARTITIONS, MERGE_PARTITIONS);
67 void SetAppendModeToAppendPartitions() { this->SetAppendMode(APPEND_PARTITIONS); }
68 void SetAppendModeToMergePartitions() { this->SetAppendMode(MERGE_PARTITIONS); }
69 vtkGetMacro(AppendMode, int);
71
73
78 vtkSetMacro(AppendFieldData, bool);
79 vtkGetMacro(AppendFieldData, bool);
80 vtkBooleanMacro(AppendFieldData, bool);
82
83protected:
86
87 int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
88 vtkInformationVector* outputVector) override;
89
93 int FillInputPortInformation(int port, vtkInformation* info) override;
94
95private:
97 void operator=(const vtkAppendPartitionedDataSetCollection&) = delete;
98
99 int AppendMode = AppendModes::APPEND_PARTITIONS;
100 bool AppendFieldData = true;
101};
102
103VTK_ABI_NAMESPACE_END
104#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.
#define VTK_MARSHALAUTO