VTK  9.2.20230327
vtkAppendDataSets.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkAppendDataSets.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
45 #ifndef vtkAppendDataSets_h
46 #define vtkAppendDataSets_h
47 
48 #include "vtkFiltersCoreModule.h" // For export macro
49 #include "vtkPointSetAlgorithm.h"
50 
51 VTK_ABI_NAMESPACE_BEGIN
52 class vtkDataSet;
54 
55 class VTKFILTERSCORE_EXPORT vtkAppendDataSets : public vtkPointSetAlgorithm
56 {
57 public:
60  void PrintSelf(ostream& os, vtkIndent indent) override;
61 
63 
68  vtkGetMacro(MergePoints, bool);
69  vtkSetMacro(MergePoints, bool);
70  vtkBooleanMacro(MergePoints, bool);
72 
74 
81  vtkSetClampMacro(Tolerance, double, 0.0, VTK_DOUBLE_MAX);
82  vtkGetMacro(Tolerance, double);
84 
86 
91  vtkSetMacro(ToleranceIsAbsolute, bool);
92  vtkGetMacro(ToleranceIsAbsolute, bool);
93  vtkBooleanMacro(ToleranceIsAbsolute, bool);
95 
97 
106  vtkSetMacro(OutputDataSetType, int);
107  vtkGetMacro(OutputDataSetType, int);
109 
111 
116  vtkSetClampMacro(OutputPointsPrecision, int, SINGLE_PRECISION, DEFAULT_PRECISION);
117  vtkGetMacro(OutputPointsPrecision, int);
119 
125 
126 protected:
128  ~vtkAppendDataSets() override;
129 
130  // Usual data generation method
132  vtkInformationVector* outputVector) override;
136 
137  // If true we will attempt to merge points. Must also not have
138  // ghost cells defined.
140 
141  // Tolerance used for point merging
142  double Tolerance;
143 
144  // If true, tolerance is used as is. If false, tolerance is multiplied by
145  // the diagonal of the bounding box of the input.
147 
148  // Output data set type.
150 
151  // Precision of output points.
153 
154 private:
155  vtkAppendDataSets(const vtkAppendDataSets&) = delete;
156  void operator=(const vtkAppendDataSets&) = delete;
157 
158  // Get all input data sets that have points, cells, or both.
159  // Caller must delete the returned vtkDataSetCollection.
160  vtkDataSetCollection* GetNonEmptyInputs(vtkInformationVector** inputVector);
161 };
162 
163 VTK_ABI_NAMESPACE_END
164 #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
static vtkAppendDataSets * New()
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
~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:174
a simple class to control print indentation
Definition: vtkIndent.h:120
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Superclass for algorithms that produce output of the same type as input.
@ info
Definition: vtkX3D.h:388
@ port
Definition: vtkX3D.h:459
int vtkTypeBool
Definition: vtkABI.h:71
#define VTK_DOUBLE_MAX
Definition: vtkType.h:166