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
39 #include "vtkPointSetAlgorithm.h"
40 
41 #include <vector> // for vector
42 
43 class vtkMPIController;
45 
46 class VTKFILTERSPARALLELMPI_EXPORT vtkDistributedPointCloudFilter : public vtkPointSetAlgorithm
47 {
48 public:
51  void PrintSelf(ostream& os, vtkIndent indent) override;
52 
54 
57  void SetController(vtkMultiProcessController*);
58  vtkGetObjectMacro(Controller, vtkMultiProcessController);
60 
65  static void GetPointsInsideBounds(
66  vtkMPIController*, vtkPointSet* input, vtkPointSet* output, const double innerBounds[6]);
67 
68 protected:
71 
73 
75 
84  bool OptimizeBoundingBox(std::vector<vtkMPIController*>&, vtkPointSet*, double bounds[6]);
85 
91  bool InitializeKdTree(std::vector<vtkMPIController*>&);
92 
93 private:
95  void operator=(const vtkDistributedPointCloudFilter&) = delete;
96 
97  vtkMultiProcessController* Controller;
98 };
99 
100 #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:69
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:39
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.