VTK  9.4.20250210
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
28
29#include <vector> // for vector
30
31VTK_ABI_NAMESPACE_BEGIN
34
35class VTKFILTERSPARALLELMPI_EXPORT vtkDistributedPointCloudFilter : public vtkPointSetAlgorithm
36{
37public:
40 void PrintSelf(ostream& os, vtkIndent indent) override;
41
43
47 vtkGetObjectMacro(Controller, vtkMultiProcessController);
49
55 vtkMPIController*, vtkPointSet* input, vtkPointSet* output, const double innerBounds[6]);
56
57protected:
60
61 int FillOutputPortInformation(int port, vtkInformation* info) override;
62
64
73 bool OptimizeBoundingBox(std::vector<vtkMPIController*>&, vtkPointSet*, double bounds[6]);
74
80 bool InitializeKdTree(std::vector<vtkMPIController*>&);
81
82private:
84 void operator=(const vtkDistributedPointCloudFilter&) = delete;
85
86 vtkMultiProcessController* Controller;
87};
88
89VTK_ABI_NAMESPACE_END
90#endif
Distributes points among MPI processors.
static vtkDistributedPointCloudFilter * New()
static void GetPointsInsideBounds(vtkMPIController *, vtkPointSet *input, vtkPointSet *output, const double innerBounds[6])
Get the points that are inside innerBounds and put them in output DataSet.
bool InitializeKdTree(std::vector< vtkMPIController * > &)
Initialize KdTreeRound: creates subControllers from Controller.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int FillOutputPortInformation(int port, vtkInformation *info) override
Fill the output port information objects for this algorithm.
~vtkDistributedPointCloudFilter() override
bool OptimizeBoundingBox(std::vector< vtkMPIController * > &, vtkPointSet *, double bounds[6])
Optimize bounding box following this rules:
void SetController(vtkMultiProcessController *)
Set/Get the communicator object.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
a simple class to control print indentation
Definition vtkIndent.h:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Process communication using MPI.
Multiprocessing communication superclass.
Superclass for algorithms that produce output of the same type as input.
concrete class for storing a set of points
Definition vtkPointSet.h:98