VTK  9.5.20250901
vtkAppendDataSets.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
33#ifndef vtkAppendDataSets_h
34#define vtkAppendDataSets_h
35
36#include "vtkFiltersCoreModule.h" // For export macro
38#include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
39
40VTK_ABI_NAMESPACE_BEGIN
41class vtkDataSet;
43
44class VTKFILTERSCORE_EXPORT VTK_MARSHALAUTO vtkAppendDataSets : public vtkPointSetAlgorithm
45{
46public:
49 void PrintSelf(ostream& os, vtkIndent indent) override;
50
52
57 vtkGetMacro(MergePoints, bool);
58 vtkSetMacro(MergePoints, bool);
59 vtkBooleanMacro(MergePoints, bool);
61
63
70 vtkSetClampMacro(Tolerance, double, 0.0, VTK_DOUBLE_MAX);
71 vtkGetMacro(Tolerance, double);
73
75
80 vtkSetMacro(ToleranceIsAbsolute, bool);
81 vtkGetMacro(ToleranceIsAbsolute, bool);
82 vtkBooleanMacro(ToleranceIsAbsolute, bool);
84
86
95 vtkSetMacro(OutputDataSetType, int);
96 vtkGetMacro(OutputDataSetType, int);
98
100
105 vtkSetClampMacro(OutputPointsPrecision, int, SINGLE_PRECISION, DEFAULT_PRECISION);
106 vtkGetMacro(OutputPointsPrecision, int);
108
114
115protected:
118
119 // Usual data generation method
121 vtkInformationVector* outputVector) override;
124 int FillInputPortInformation(int port, vtkInformation* info) override;
125
126 // If true we will attempt to merge points. Must also not have
127 // ghost cells defined.
129
130 // Tolerance used for point merging
131 double Tolerance;
132
133 // If true, tolerance is used as is. If false, tolerance is multiplied by
134 // the diagonal of the bounding box of the input.
136
137 // Output data set type.
139
140 // Precision of output points.
142
143private:
144 vtkAppendDataSets(const vtkAppendDataSets&) = delete;
145 void operator=(const vtkAppendDataSets&) = delete;
146
147 // Get all input data sets that have points, cells, or both.
148 // Caller must delete the returned vtkDataSetCollection.
149 vtkDataSetCollection* GetNonEmptyInputs(vtkInformationVector** inputVector);
150};
151
152VTK_ABI_NAMESPACE_END
153#endif
Appends one or more datasets together into a single output vtkPointSet.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
vtkTypeBool ProcessRequest(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
see vtkAlgorithm for details
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
static vtkAppendDataSets * New()
~vtkAppendDataSets() override
int RequestDataObject(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
This is called by the superclass.
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.
maintain an unordered list of dataset objects
abstract class to specify dataset behavior
Definition vtkDataSet.h:165
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 output of the same type as input.
int vtkTypeBool
Definition vtkABI.h:64
#define VTK_DOUBLE_MAX
Definition vtkType.h:171
#define VTK_MARSHALAUTO