VTK  9.7.1
vtkHyperTreeGridProbeFilter.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
26 #ifndef vtkHyperTreeGridProbeFilter_h
27 #define vtkHyperTreeGridProbeFilter_h
28 
29 #include "vtkDataSetAlgorithm.h"
30 #include "vtkFiltersCoreModule.h" //For export Macro
31 #include "vtkNew.h" //For init in header
32 #include "vtkSmartPointer.h" //For members
33 #include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
34 
35 VTK_ABI_NAMESPACE_BEGIN
36 class vtkCharArray;
37 class vtkIdList;
38 class vtkIdTypeArray;
39 class vtkDataSet;
40 class vtkHyperTreeGrid;
42 
44 {
45 public:
47 
48  void PrintSelf(ostream& os, vtkIndent indent) override;
49 
51 
53 
59  void SetSourceData(vtkHyperTreeGrid* source);
60  vtkHyperTreeGrid* GetSource();
62 
69  void SetSourceConnection(vtkAlgorithmOutput* algOutput);
70 
72 
75  virtual vtkHyperTreeGridLocator* GetLocator();
76  virtual void SetLocator(vtkHyperTreeGridLocator*);
78 
80 
84  vtkSetMacro(PassCellArrays, bool);
85  vtkBooleanMacro(PassCellArrays, bool);
86  vtkGetMacro(PassCellArrays, bool);
89 
93  vtkSetMacro(PassPointArrays, bool);
94  vtkBooleanMacro(PassPointArrays, bool);
95  vtkGetMacro(PassPointArrays, bool);
97 
99 
103  vtkSetMacro(PassFieldArrays, bool);
104  vtkBooleanMacro(PassFieldArrays, bool);
105  vtkGetMacro(PassFieldArrays, bool);
107 
109 
114  vtkSetMacro(ValidPointMaskArrayName, std::string);
115  vtkGetMacro(ValidPointMaskArrayName, std::string);
117 
119 
123  vtkIdTypeArray* GetValidPoints();
125 
127 
133  vtkSetMacro(Tolerance, double);
134  vtkGetMacro(Tolerance, double);
136 
138 
145  vtkSetMacro(ComputeTolerance, bool);
146  vtkGetMacro(ComputeTolerance, bool);
148 
150 
163  vtkSetMacro(UseImplicitArrays, bool);
164  vtkGetMacro(UseImplicitArrays, bool);
165  vtkBooleanMacro(UseImplicitArrays, bool);
167 
168 protected:
170 
174  ~vtkHyperTreeGridProbeFilter() override;
176 
178 
185 
187 
191  int FillInputPortInformation(int, vtkInformation*) override;
193 
195 
198  bool Initialize(vtkDataSet* input, vtkHyperTreeGrid* source, vtkDataSet* output);
199 
203  bool PassAttributeData(vtkDataSet* input, vtkDataSet* output);
204 
208  bool DoProbing(
209  vtkDataSet* input, vtkHyperTreeGrid* source, vtkDataSet* output, vtkIdList* localPointIds);
210 
214  virtual bool Reduce(vtkHyperTreeGrid* source, vtkDataSet* output, vtkIdList* localPointIds);
215 
221  void DealWithRemote(vtkIdList* remotePointIds, vtkDataSet* remoteOutput, vtkHyperTreeGrid* source,
222  vtkDataSet* totOutput);
224 
231  void DealWithRemoteHandles(
232  vtkIdList* remotePointIds, vtkIdList* remoteHandles, vtkIdList* totHandles);
233 
237  void Finalize(vtkHyperTreeGrid* source, vtkDataSet* output, vtkIdType nanId);
238 
240 
241  bool PassCellArrays = false;
242  bool PassPointArrays = false;
243  bool PassFieldArrays = true;
244  double Tolerance = 0.0;
245  bool ComputeTolerance = true;
246 
247  std::string ValidPointMaskArrayName = "vtkValidPointMask";
250 
251  bool UseImplicitArrays = false;
252 
258 
259 private:
261  void operator=(const vtkHyperTreeGridProbeFilter&) = delete;
262 }; // vtkHyperTreeGridProbeFilter
263 
264 VTK_ABI_NAMESPACE_END
265 #endif // vtkHyperTreeGridProbeFilter_h
vtkSmartPointer< vtkHyperTreeGridLocator > Locator
Store vtkAlgorithm input/output information.
abstract class to specify dataset behavior
Definition: vtkDataSet.h:56
A dataset containing a grid of vtkHyperTree instances arranged as a rectilinear grid.
vtkSmartPointer< vtkIdList > Handles
Used to store vtkIndexedArray handles when UseImplicitArrays is on.
dynamic, self-adjusting array of vtkIdType
int vtkIdType
Definition: vtkType.h:363
Proxy object to connect input/output ports.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
dynamic, self-adjusting array of char
Definition: vtkCharArray.h:44
a simple class to control print indentation
Definition: vtkIndent.h:28
list of point or cell ids
Definition: vtkIdList.h:25
vtkSmartPointer< vtkCharArray > MaskPoints
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called within ProcessRequest when a request asks the algorithm to do its work.
abstract base class for objects that implement accelerated searches through HyperTree Grids (HTGs) ...
boost::graph_traits< vtkGraph * >::vertex_descriptor source(boost::graph_traits< vtkGraph * >::edge_descriptor e, vtkGraph *)
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called within ProcessRequest when each filter in the pipeline decides what portion of its inp...
virtual int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called within ProcessRequest when a request asks for Information.
Store zero or more vtkInformation instances.
#define VTK_MARSHALAUTO
Superclass for algorithms that produce output of the same type as input.
static vtkDataSetAlgorithm * New()
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.