vtkMergeBlocks.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ParaView
4  Module: vtkMergeBlocks.h
5 
6  Copyright (c) Kitware, Inc.
7  All rights reserved.
8  See Copyright.txt or http://www.paraview.org/HTML/Copyright.html 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 =========================================================================*/
29 #ifndef vtkMergeBlocks_h
30 #define vtkMergeBlocks_h
31 
32 #include "vtkDataObjectAlgorithm.h"
33 #include "vtkPVVTKExtensionsMiscModule.h" // needed for export macro
34 
37 {
38 public:
39  static vtkMergeBlocks* New();
41  void PrintSelf(ostream& os, vtkIndent indent) override;
42 
44 
48  vtkSetMacro(MergePoints, bool);
49  vtkGetMacro(MergePoints, bool);
50  vtkBooleanMacro(MergePoints, bool);
52 
54 
61  vtkSetClampMacro(Tolerance, double, 0.0, VTK_DOUBLE_MAX);
62  vtkGetMacro(Tolerance, double);
64 
66 
70  vtkSetMacro(ToleranceIsAbsolute, bool);
71  vtkGetMacro(ToleranceIsAbsolute, bool);
72  vtkBooleanMacro(ToleranceIsAbsolute, bool);
74 
76 
82  vtkSetMacro(MergePartitionsOnly, bool);
83  vtkGetMacro(MergePartitionsOnly, bool);
84  vtkBooleanMacro(MergePartitionsOnly, bool);
86 
88 
97  vtkSetMacro(OutputDataSetType, int);
98  vtkGetMacro(OutputDataSetType, int);
100 
101 protected:
102  vtkMergeBlocks();
103  ~vtkMergeBlocks() override;
104 
109  int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
110  vtkInformationVector* outputVector) override;
112  int FillInputPortInformation(int port, vtkInformation* info) override;
113 
115  double Tolerance;
119 
120 private:
121  vtkMergeBlocks(const vtkMergeBlocks&) = delete;
122  void operator=(const vtkMergeBlocks&) = delete;
123 };
124 
125 #endif
virtual int RequestDataObject(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
static vtkDataObjectAlgorithm * New()
merges blocks in a composite dataset to a dataset.
void PrintSelf(ostream &os, vtkIndent indent) VTK_OVERRIDE
#define VTKPVVTKEXTENSIONSMISC_EXPORT
virtual int FillInputPortInformation(int port, vtkInformation *info)
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
void operator=(const vtkObjectBase &)