VTK  9.7.1
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 
26 VTK_ABI_NAMESPACE_BEGIN
27 
30 {
31 public:
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 
83 protected:
86 
87  int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
88  vtkInformationVector* outputVector) override;
89 
94 
95 private:
97  void operator=(const vtkAppendPartitionedDataSetCollection&) = delete;
98 
99  int AppendMode = AppendModes::APPEND_PARTITIONS;
100  bool AppendFieldData = true;
101 };
102 
103 VTK_ABI_NAMESPACE_END
104 #endif // vtkAppendPartitionedDataSetCollection_h
void SetAppendModeToAppendPartitions()
Set/Get the mode of the append filter.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
Store vtkAlgorithm input/output information.
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
Methods for subclasses to override to handle different pipeline requests.
void SetAppendModeToMergePartitions()
Set/Get the mode of the append filter.
a simple class to control print indentation
Definition: vtkIndent.h:28
AppendModes
AppendModes are used to specify how the append filter should behave.
Superclass for algorithms that produce vtkPartitionedDataSetCollectionAlgorithm.
Store zero or more vtkInformation instances.
static vtkAlgorithm * New()
#define VTK_MARSHALAUTO