VTK  9.2.6
vtkDistributedPointCloudFilter.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkDistributedPointCloudFilter.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=========================================================================*/
15
35#ifndef vtkDistributedPointCloudFilter_h
36#define vtkDistributedPointCloudFilter_h
37
38#include "vtkFiltersParallelMPIModule.h" // For export macro
40
41#include <vector> // for vector
42
45
46class VTKFILTERSPARALLELMPI_EXPORT vtkDistributedPointCloudFilter : public vtkPointSetAlgorithm
47{
48public:
51 void PrintSelf(ostream& os, vtkIndent indent) override;
52
54
58 vtkGetObjectMacro(Controller, vtkMultiProcessController);
60
66 vtkMPIController*, vtkPointSet* input, vtkPointSet* output, const double innerBounds[6]);
67
68protected:
71
72 int FillOutputPortInformation(int port, vtkInformation* info) override;
73
75
84 bool OptimizeBoundingBox(std::vector<vtkMPIController*>&, vtkPointSet*, double bounds[6]);
85
91 bool InitializeKdTree(std::vector<vtkMPIController*>&);
92
93private:
95 void operator=(const vtkDistributedPointCloudFilter&) = delete;
96
97 vtkMultiProcessController* Controller;
98};
99
100#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:40
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:70