VTK  9.3.1
vtkDistributedPointCloudFilter.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
3 
23 #ifndef vtkDistributedPointCloudFilter_h
24 #define vtkDistributedPointCloudFilter_h
25 
26 #include "vtkFiltersParallelMPIModule.h" // For export macro
27 #include "vtkPointSetAlgorithm.h"
28 
29 #include <vector> // for vector
30 
31 VTK_ABI_NAMESPACE_BEGIN
32 class vtkMPIController;
34 
35 class VTKFILTERSPARALLELMPI_EXPORT vtkDistributedPointCloudFilter : public vtkPointSetAlgorithm
36 {
37 public:
40  void PrintSelf(ostream& os, vtkIndent indent) override;
41 
43 
46  void SetController(vtkMultiProcessController*);
47  vtkGetObjectMacro(Controller, vtkMultiProcessController);
49 
54  static void GetPointsInsideBounds(
55  vtkMPIController*, vtkPointSet* input, vtkPointSet* output, const double innerBounds[6]);
56 
57 protected:
60 
62 
64 
73  bool OptimizeBoundingBox(std::vector<vtkMPIController*>&, vtkPointSet*, double bounds[6]);
74 
80  bool InitializeKdTree(std::vector<vtkMPIController*>&);
81 
82 private:
84  void operator=(const vtkDistributedPointCloudFilter&) = delete;
85 
86  vtkMultiProcessController* Controller;
87 };
88 
89 VTK_ABI_NAMESPACE_END
90 #endif
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
Store vtkAlgorithm input/output information.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
concrete class for storing a set of points
Definition: vtkPointSet.h:58
int FillOutputPortInformation(int port, vtkInformation *info) override
Fill the output port information objects for this algorithm.
a simple class to control print indentation
Definition: vtkIndent.h:28
Superclass for algorithms that produce output of the same type as input.
Process communication using MPI.
Distributes points among MPI processors.
static vtkPointSetAlgorithm * New()
Store zero or more vtkInformation instances.
Multiprocessing communication superclass.