VTK  9.7.1
vtkMergeBlocks.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-License-Identifier: BSD-3-Clause
21 #ifndef vtkMergeBlocks_h
22 #define vtkMergeBlocks_h
23 
24 #include "vtkDataObjectAlgorithm.h"
25 #include "vtkFiltersParallelModule.h" // For export macro
26 
27 VTK_ABI_NAMESPACE_BEGIN
28 
29 class VTKFILTERSPARALLEL_EXPORT vtkMergeBlocks : public vtkDataObjectAlgorithm
30 {
31 public:
32  static vtkMergeBlocks* New();
34  void PrintSelf(ostream& os, vtkIndent indent) override;
35 
37 
41  vtkSetMacro(MergePoints, bool);
42  vtkGetMacro(MergePoints, bool);
43  vtkBooleanMacro(MergePoints, bool);
45 
47 
54  vtkSetClampMacro(Tolerance, double, 0.0, VTK_DOUBLE_MAX);
55  vtkGetMacro(Tolerance, double);
57 
59 
63  vtkSetMacro(ToleranceIsAbsolute, bool);
64  vtkGetMacro(ToleranceIsAbsolute, bool);
65  vtkBooleanMacro(ToleranceIsAbsolute, bool);
67 
69 
75  vtkSetMacro(MergePartitionsOnly, bool);
76  vtkGetMacro(MergePartitionsOnly, bool);
77  vtkBooleanMacro(MergePartitionsOnly, bool);
79 
81 
90  vtkSetMacro(OutputDataSetType, int);
91  vtkGetMacro(OutputDataSetType, int);
93 
94 protected:
96  ~vtkMergeBlocks() override;
97 
102  int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
103  vtkInformationVector* outputVector) override;
105  int FillInputPortInformation(int port, vtkInformation* info) override;
106 
108  double Tolerance;
112 
113 private:
114  vtkMergeBlocks(const vtkMergeBlocks&) = delete;
115  void operator=(const vtkMergeBlocks&) = delete;
116 };
117 
118 VTK_ABI_NAMESPACE_END
119 #endif
virtual int RequestDataObject(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
#define VTK_DOUBLE_MAX
Definition: vtkType.h:202
Store vtkAlgorithm input/output information.
static vtkDataObjectAlgorithm * New()
merges blocks in a composite dataset to a dataset.
a simple class to control print indentation
Definition: vtkIndent.h:28
Superclass for algorithms that produce only data object as output.
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
Store zero or more vtkInformation instances.
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.