VTK  9.0.3
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 =========================================================================*/
35 #ifndef vtkAppendDataSets_h
36 #define vtkAppendDataSets_h
37 
38 #include "vtkFiltersCoreModule.h" // For export macro
39 #include "vtkPointSetAlgorithm.h"
40 
41 class vtkDataSet;
43 
44 class VTKFILTERSCORE_EXPORT vtkAppendDataSets : public vtkPointSetAlgorithm
45 {
46 public:
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 
115 protected:
117  ~vtkAppendDataSets() override;
118 
119  // Usual data generation method
121  vtkInformationVector* outputVector) 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 
143 private:
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 
152 #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:57
a simple class to control print indentation
Definition: vtkIndent.h:34
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:382
@ port
Definition: vtkX3D.h:453
int vtkTypeBool
Definition: vtkABI.h:69
#define VTK_DOUBLE_MAX
Definition: vtkType.h:165